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:
jif authored and copyberry committed 2026-08-28 12:40:10 +00:00
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
}
}
+5 -1
View File
@@ -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
}
}