Skip to main content

Schema

Type Alias Schema 

Source
pub type Schema = GenerationSchema;
Expand description

Compatibility alias for the oldest structured-generation schema name.

Aliased Type§

pub struct Schema {
    pub name: GenerationSchemaName,
    pub description: Option<SchemaDescription>,
    pub properties: Vec<GenerationSchemaProperty>,
}

Fields§

§name: GenerationSchemaName

Internal type name used by the model’s structured generation system.

§description: Option<SchemaDescription>

Optional description of what this type represents.

§properties: Vec<GenerationSchemaProperty>

The properties the model must populate.