Interface ResolvedStructuredReply

interface ResolvedStructuredReply {
    name: string;
    description?: string;
    zod?: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>;
    jsonSchema: JsonSchemaObject;
    maxRetries: number;
    onExhausted: "error" | "return_invalid";
    streamDeltas: boolean;
    instruction: string;
    checkValue(value): StructuredCheck;
}

Methods

Properties

name: string
description?: string
zod?: ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

The Zod schema when the spec gave one: the gateway lowers it per provider.

jsonSchema: JsonSchemaObject
maxRetries: number
onExhausted: "error" | "return_invalid"
streamDeltas: boolean
instruction: string

The instruction the system prompt carries: the schema in words the model follows.