format: Optional[TextFormatParam]

The output format. Omission uses ordinary text ({"type": "text"}).

One of the following:
class TextFormatParamText: …

Generates ordinary text without a structured-output constraint.

type: Literal["text"]

The type of the object. Always text.

class TextFormatParamJSONSchema: …

Constrains generated text to a JSON Schema.

schema: Dict[str, object]

The JSON Schema that generated text must match.

type: Literal["json_schema"]

The type of the object. Always json_schema.

verbosity: Optional[Literal["low", "medium", "high"]]

The amount of text the model should produce. Defaults to medium, matching Responses.

One of the following:
"low"

Produces less text.

"medium"

Uses the default amount of text.

"high"

Produces more text.