From e86266c79419183cd0f50cd91d6042d0df11d057 Mon Sep 17 00:00:00 2001 From: Oleksiy Syvokon Date: Thu, 30 Apr 2026 09:38:26 +0300 Subject: [PATCH] tools: Make time-zones more case-insensitive gpt-5.5 likes to call the `now` tool with upper-case "UTC", leading to this error: Failed to receive tool input: tool input was not fully received --- crates/agent/src/tools/now_tool.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/agent/src/tools/now_tool.rs b/crates/agent/src/tools/now_tool.rs index 04aba44ff3a1f4..9721c923b6e8d2 100644 --- a/crates/agent/src/tools/now_tool.rs +++ b/crates/agent/src/tools/now_tool.rs @@ -13,8 +13,10 @@ use crate::{AgentTool, ToolCallEventStream, ToolInput}; #[schemars(inline)] pub enum Timezone { /// Use UTC for the datetime. + #[serde(alias = "UTC", alias = "Utc")] Utc, /// Use local time for the datetime. + #[serde(alias = "LOCAL", alias = "Local")] Local, }