openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
6 lines (5 loc) • 383 B
TypeScript
import type { Tool, ToolCall } from "./types.js";
/** Finds the target tool and validates/coerces a model-emitted tool call. */
export declare function validateToolCall(tools: Tool[], toolCall: ToolCall): unknown;
/** Validates tool arguments against TypeBox or plain JSON-schema parameters. */
export declare function validateToolArguments(tool: Tool, toolCall: ToolCall): unknown;