pub struct Controls {
pub model_id: Option<ModelId>,
pub locale: Option<String>,
pub reasoning: Option<ReasoningConfig>,
pub speed: Option<String>,
pub verbosity: Option<String>,
pub error_disclosure: Option<String>,
pub hints: Option<HashMap<String, Value>>,
}Expand description
Runtime controls for message processing
Fields§
§model_id: Option<ModelId>Model ID to use for this message (format: model_{32-hex}). Overrides session and agent model settings.
locale: Option<String>Locale override for this message turn (BCP 47, e.g. uk-UA).
Overrides the session locale for backend-authored strings and prompts.
reasoning: Option<ReasoningConfig>Reasoning configuration
speed: Option<String>Speed (service tier) for this message turn: “flex”, “default”, or
“priority”. Only sent to providers whose model profile advertises a
speed config (OpenAI service_tier).
verbosity: Option<String>Verbosity for this message turn: “low”, “medium”, or “high”. Only sent
to providers whose model profile advertises a verbosity config (OpenAI
verbosity).
error_disclosure: Option<String>Error disclosure override for this turn: “generic”, “standard”, or
“detailed”. Clamped to at most the mode allowed by the agent’s
error_disclosure capability (capability absent => “standard”), so a
client can narrow but never widen disclosure.
hints: Option<HashMap<String, Value>>Generic client hints — arbitrary key-value pairs declared by the client. Session-level defaults are set at session creation; per-message values override session hints key-by-key (shallow merge).
Examples: {"setup_connection": true, "rich_media": true}