mirror of
https://github.com/openai/codex.git
synced 2026-11-24 07:20:27 +00:00
Support custom tools in namespaces (#36857)
## What changed - Allow namespace tool specs to contain custom freeform tools alongside function tools. - Include namespaced custom tools in deferred tool search and expose them to code mode with names such as `editor__apply_patch`. - Route custom payloads to matching extension tools while preserving function-only payload validation. ## Testing - Add serialization, tool search, code-mode definition, and end-to-end dispatch coverage for namespaced custom tools. GitOrigin-RevId: be64d35f6ae54685c5a9fcf45a732320742ea7e5
This commit is contained in:
1 parent
12288240b4
commit
d4fb78bfc5
12 files changed
+409
-28
No files matched your search
@@ -582,6 +582,7 @@ fn namespace_function_names(specs: &[ToolSpec], namespace_name: &str) -> Vec<Str
|
||||
.iter()
|
||||
.map(|tool| match tool {
|
||||
ResponsesApiNamespaceTool::Function(tool) => tool.name.clone(),
|
||||
ResponsesApiNamespaceTool::Custom(tool) => tool.name.clone(),
|
||||
})
|
||||
.collect(),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user