mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Classify clock tools as built-in control tools (#41331)
## What changed - Mark `clock.curr_time` and `clock.sleep` as built-in control tools so their calls emit control-tool analytics. - Cover completed, failed, and interrupted calls, verify analytics omit tool arguments and output, and keep the calls out of the dynamic-tool count. GitOrigin-RevId: 489c8015f836be146ccc2c7e96ef7243b0599e16
This commit is contained in:
1 parent
5eea8d0dd3
commit
430d26b543
3 files changed
+144
-2
No files matched your search
@@ -107,4 +107,8 @@ impl ToolExecutor<ToolInvocation> for CurrentTimeHandler {
|
||||
}
|
||||
}
|
||||
|
||||
impl CoreToolRuntime for CurrentTimeHandler {}
|
||||
impl CoreToolRuntime for CurrentTimeHandler {
|
||||
fn is_builtin_control_tool(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
@@ -156,4 +156,8 @@ impl ToolExecutor<ToolInvocation> for SleepHandler {
|
||||
}
|
||||
}
|
||||
|
||||
impl CoreToolRuntime for SleepHandler {}
|
||||
impl CoreToolRuntime for SleepHandler {
|
||||
fn is_builtin_control_tool(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user