Either a Zod schema (the equivalent of a Pydantic model — the final answer is
parsed and validated into the inferred type), or a plain object holding a
Draft 2020-12 JSON Schema (the final answer is parsed as JSON). Pass nothing
for no structured output.
A structured output format for the ask mode.
Either a Zod schema (the equivalent of a Pydantic model — the final answer is parsed and validated into the inferred type), or a plain object holding a Draft 2020-12 JSON Schema (the final answer is parsed as JSON). Pass nothing for no structured output.