ChatJSONSchemaConfig - Python SDK

ChatJSONSchemaConfig method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

JSON Schema configuration object

Fields

FieldTypeRequiredDescriptionExample
descriptionOptional[str]Schema description for the modelA mathematical response
namestr✔️Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)math_response
schema_Dict[str, Nullable[Any]]JSON Schema object{"properties": {"answer": {"type": "number"}
},
“required”: [
“answer”
],
“type”: “object”
}
strictOptionalNullable[bool]Enable strict schema adherencefalse