Reasoning effort support for /effort.
Supported levels and defaults come from LangChain model profiles. Provider
integrations translate the standard reasoning_effort constructor parameter
into their native request shapes.
Provider name for _ChatOpenAICodex models authenticated via ChatGPT OAuth.
Distinct from "openai" (which uses an OPENAI_API_KEY) because the auth
source, model class, and request endpoint all differ. See
deepagents_code.integrations.openai_codex for the OAuth flow.
Load upstream profiles merged with config.toml overrides.
Keyed by provider:model spec string. Each entry contains the
merged profile dict and the set of keys overridden by config.toml.
Unlike get_available_models(), this includes all models from upstream
profiles regardless of capability filters (tool calling, text I/O).
Results are cached; use clear_caches() to reset. When cli_override is
provided the result is stored in a single-slot cache keyed by
id(cli_override). This relies on the caller retaining the same dict
object for the session (the app stores it once on the app instance);
passing a different dict with the same contents will bypass the cache
and overwrite the previous entry.
Return the ordered reasoning effort levels supported by model_spec.
Return the profile's reasoning effort default independently of its levels.
Return whether effort is a supported level for model_spec.
Return whether canonical or native effort parameters are present.
Read canonical or native effort settings using integration precedence.
This compatibility reader does not modify the supplied parameters. It only
reports settings that may come from --model-params, /model, or a resumed
thread.
Remove canonical and native effort settings without changing siblings.
Replace existing effort settings with the standard flat parameter.