콘텐츠로 이동

ToolInputParameters

이 콘텐츠는 아직 번역되지 않았습니다.

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

The parameters of a tool.

This can be a supported Standard Schema, a Zod schema, a JSON schema or undefined.

If a supported Standard Schema or 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.