ReasoningEffort

Constrains the amount of effort a reasoning-capable model spends on internal reasoning.

Lower settings can yield faster responses and fewer reasoning tokens; higher settings may improve performance on multistep or complex tasks at the cost of additional latency and token usage. Exact effects are model-dependent. If not set, the model/provider default applies.

Serialized as "minimal" | "low" | "medium" | "high".

Entries

Link copied to clipboard
@SerialName(value = "minimal")
MINIMAL

Strongly limits internal reasoning to minimize latency and cost. Best for simple, well-specified tasks where extra deliberation is unnecessary. Serialized as "minimal".

Link copied to clipboard
@SerialName(value = "low")
LOW

Allows a small amount of reasoning while prioritizing speed and efficiency. Suitable for straightforward prompts with occasional light chaining. Serialized as "low".

Link copied to clipboard
@SerialName(value = "medium")
MEDIUM

Balanced allowance for reasoning to handle typical multi-step tasks without excessive overhead. Serialized as "medium".

Link copied to clipboard
@SerialName(value = "high")
HIGH

Maximizes the model’s reasoning depth for complex or ambiguous problems. Expect higher latency and token usage. Serialized as "high".

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.