コンテンツにスキップ

ToolInputParameters

このコンテンツはまだ日本語訳がありません。

type ToolInputParameters = undefined | ZodObjectLike | JsonObjectSchema<any>;

The parameters of a tool.

This can be a Zod schema, a JSON schema or undefined.

If a Zod schema is provided, the arguments to the tool will automatically be parsed and validated against the schema.

If a JSON schema is provided, the arguments to the tool will be passed as is.

If undefined is provided, the arguments to the tool will be passed as a string.