JsonSchemaSpec

JsonSchemaSpec
JsonSchemaSpec

OpenAI-compatible JSON Schema envelope for structured outputs.

Attributes: name: The schema name. schema: A JSON Schema definition. strict: Whether model output should strictly follow the schema.

JSON Example
{
    "name": "string",
    "schema": {},
    "strict": false
}
string
name
Required  

name

object
schema
Required  

schema

boolean
strict
Optional
Constraints: default: true

strict