agentskit.js
API@agentskit/coreType aliases

ArgsValidator

ArgsValidator contract for validating TypeScript AI agent tool arguments against JSON Schema before execution.

Type Alias: ArgsValidator

ArgsValidator = (schema, args) => ArgsValidationResult

Defined in: packages/core/src/types/tool.ts:48

Validate parsed tool-call args against the tool's JSON Schema. Returns \{ valid: true \} to allow execution, or \{ valid: false, errors \} to reject it with AK_TOOL_INVALID_INPUT.

#Parameters

#schema

JSONSchema7

#args

Record<string, unknown>

#Returns

ArgsValidationResult

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.