Reasoning interface

gpt-5 and o-series models only Configuration options for reasoning models.

Properties

context
effort
generate_summary
mode

Controls the reasoning execution mode for the request. When returned on a response, this is the effective execution mode.

summary

Property Details

context

context?: "auto" | "current_turn" | "all_turns"

Property Value

"auto" | "current_turn" | "all_turns"

effort

effort?: ReasoningEffort

Property Value

generate_summary

generate_summary?: "auto" | "concise" | "detailed"

Property Value

"auto" | "concise" | "detailed"

mode

Controls the reasoning execution mode for the request. When returned on a response, this is the effective execution mode.

mode?: string

Property Value

string

summary

summary?: "auto" | "concise" | "detailed"

Property Value

"auto" | "concise" | "detailed"