A schema accepted for tool inputs and ctx.generate structured output: any Standard Schema that can also convert to JSON Schema (Zod natively, or a vendor toJsonSchema() method). Zod object schemas are the documented default.
ctx.generate
toJsonSchema()
A schema accepted for tool inputs and
ctx.generatestructured output: any Standard Schema that can also convert to JSON Schema (Zod natively, or a vendortoJsonSchema()method). Zod object schemas are the documented default.