# ResponseFormatTextGrammar Custom grammar response format ## Fields | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | | `type` | [components.ResponseFormatTextGrammarType](../components/responseformattextgrammartype.md) | :heavy_check_mark: | N/A | | | `grammar` | *str* | :heavy_check_mark: | Custom grammar for text generation | root ::= "yes" \| "no" |