LLMResponseFormat

Type Alias LLMResponseFormat 

Source
pub type LLMResponseFormat = ResponseFormat;

Aliased Type§

pub struct LLMResponseFormat {
    pub name: String,
    pub schema: Value,
}

Fields§

§name: String

Name identifier for this schema.

Used for logging and debugging. Should be descriptive of the expected output.

§schema: Value

JSON Schema specification defining the expected output structure.

The model will attempt to return JSON that validates against this schema. Include type, properties, required, and description fields.