Enable clock tools from model metadata (#41210)

## What changed

- Register both `clock.curr_time` and `clock.sleep` when a model lists `clock` in `experimental_supported_tools`.
- Keep current-time reminder injection controlled separately by the `current_time_reminder` feature.

## Testing

- Cover a model-advertised clock with reminders disabled, verifying that both tools are available and no reminder is added.

GitOrigin-RevId: c39b5cb6e2da397daaaa4e0ad81f0763b8dd91e9
This commit is contained in:
rka-oai authored and copyberry committed 2026-08-27 21:46:20 +00:00
1 parent 34e74fda0e
commit f6494dc8f5
2 files changed
+24 -4

No files matched your search

+8
View File
@@ -1163,6 +1163,14 @@ fn add_core_utility_tools(context: &CoreToolPlanContext<'_>, registry: &mut Tool
{
registry.add(SleepHandler);
}
} else if context
.model_info
.experimental_supported_tools
.iter()
.any(|tool| tool == "clock")
{
registry.add(CurrentTimeHandler);
registry.add(SleepHandler);
}
if tool_suggest_enabled(turn_context)