Skip to content

OutputConfig

Structure Class

OutputConfig dataclass

Bases: _SerdeShape

Output configuration for a model response in a call to Converse or ConverseStream.

Attributes

effort class-attribute instance-attribute
effort: str | None = ...

The effort level for the model to use when generating a response. Higher effort levels allow the model to spend more time reasoning before responding. Supported values are low, medium, high, xhigh, and max.

Note

When extended thinking is disabled, the effort level is capped at high. Use effort high or below, or enable thinking to use higher effort levels.

text_format class-attribute instance-attribute
text_format: OutputFormat | None = ...

Structured output parameters to control the model's text response.