ChatJSONSchemaConfig - Go SDK

ChatJSONSchemaConfig type definition

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

JSON Schema configuration object

Fields

FieldTypeRequiredDescriptionExample
Description*stringSchema description for the modelA mathematical response
Namestring✔️Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)math_response
Schemamap[string]anyJSON Schema object{"properties": {"answer": {"type": "number"}
},
“required”: [
“answer”
],
“type”: “object”
}
Strictoptionalnullable.OptionalNullable[bool]Enable strict schema adherencefalse