mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Allow hosts to customize wait_for_environment descriptions (#35106)
## What changed - Add `WaitForEnvironmentToolConfig` as thread extension data for overriding the model-visible tool and `environment_id` descriptions. - Preserve the default descriptions when no override is provided or when the configured descriptions exceed the input or serialized tool-spec limits. - Keep `wait_for_environment` availability gated by the deferred executor feature independently of whether a host override is present. ## Testing - Cover default, custom, oversized, and feature-disabled tool configurations. - Verify the custom descriptions in the deferred-environment integration flow. GitOrigin-RevId: 6b49a73a434becd99ea5df911be53f3706a17c0a
This commit is contained in:
1 parent
a28374e0db
commit
81da9deb06
12 files changed
+317
-42
No files matched your search
@@ -44,6 +44,7 @@ pub(crate) struct ToolRouterParams<'a> {
|
||||
pub(crate) tool_runtimes: Vec<Arc<dyn CoreToolRuntime>>,
|
||||
pub(crate) tool_suggest_candidates: Option<ToolSuggestCandidates>,
|
||||
pub(crate) extension_tool_executors: Vec<Arc<dyn ToolExecutor<ExtensionToolCall>>>,
|
||||
pub(crate) wait_for_environment_tool_config: Option<Arc<crate::WaitForEnvironmentToolConfig>>,
|
||||
pub(crate) dynamic_tools: &'a [DynamicToolSpec],
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user