ChatFormatGrammarConfig - Python SDK

ChatFormatGrammarConfig method reference

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

Custom grammar response format

Fields

FieldTypeRequiredDescriptionExample
grammarstr✔️Custom grammar for text generationroot ::= “yes” | “no”
typecomponents.ChatFormatGrammarConfigType✔️N/A