mirror of
https://github.com/openai/codex.git
synced 2026-04-26 23:55:25 +00:00
dynamic tool calls: add param exposeToContext to optionally hide tool (#14501)
This extends dynamic_tool_calls to allow us to hide a tool from the model context but still use it as part of the general tool calling runtime (for ex from js_repl/code_mode)
This commit is contained in:
@@ -110,6 +110,7 @@ async fn backfill_scans_existing_rollouts() -> Result<()> {
|
||||
"required": ["city"],
|
||||
"properties": { "city": { "type": "string" } }
|
||||
}),
|
||||
defer_loading: true,
|
||||
},
|
||||
DynamicToolSpec {
|
||||
name: "weather_lookup".to_string(),
|
||||
@@ -119,6 +120,7 @@ async fn backfill_scans_existing_rollouts() -> Result<()> {
|
||||
"required": ["zip"],
|
||||
"properties": { "zip": { "type": "string" } }
|
||||
}),
|
||||
defer_loading: false,
|
||||
},
|
||||
];
|
||||
let dynamic_tools_for_hook = dynamic_tools.clone();
|
||||
|
||||
Reference in New Issue
Block a user