Skip to main content

ResponseField

Type Alias ResponseField 

Source
pub type ResponseField = GenerationSchemaProperty;
Expand description

Compatibility alias for the older structured-generation property name.

Aliased Type§

pub struct ResponseField {
    pub name: GenerationSchemaPropertyName,
    pub description: Option<SchemaDescription>,
    pub property_type: GenerationSchemaPropertyType,
    pub requirement: GenerationSchemaPropertyRequirement,
}

Fields§

§name: GenerationSchemaPropertyName

Property name (matches the JSON key in the model output).

§description: Option<SchemaDescription>

Optional human-readable hint that guides the model.

§property_type: GenerationSchemaPropertyType

The expected type of this property.

§requirement: GenerationSchemaPropertyRequirement

Whether the model must include or may omit this property.