콘텐츠로 이동

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.