JsonResponseOptions
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
tagRequiredstringTag name without angle brackets: a letter followed by letters, digits, _ or -. Another form fails with code configuration.repairsOptionalnumber | undefinedCorrection turns allowed after an invalid answer, default 0; must be a nonnegative integer. Above 0, the agent must be able to resume its conversation. Exact injected text and customization limits.schemaRequiredStandardJsonSchema<T> | StandardValidator<T> | ((input: unknown) => T | Promise<T>)Standard Schema validator or a function receiving parsed JSON as unknown and returning the typed value, possibly transformed. Issues or thrown errors reject the answer. Automatic input-schema conversion requires Standard JSON Schema; otherwise jsonSchema is required.jsonSchemaVariant-dependentReadonly<Record<string, unknown>> | undefined | Readonly<Record<string, unknown>>Explicit input JSON Schema object included in automatic final-answer instructions. Required unless schema supports Standard JSON Schema conversion; takes precedence over conversion. Captured as a deeply frozen lossless JSON copy, excluding non-enumerable ~standard protocol metadata; schema remains the validator. No remote references are fetched.

