From ce95cf4c1222b548fd441941aea4727b9eead5f0 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 7 May 2026 19:26:23 -0500 Subject: [PATCH] Remove send_message @tool def: was causing session-history duplicates --- agentclaw/app/agent_claw_main/main.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agentclaw/app/agent_claw_main/main.py b/agentclaw/app/agent_claw_main/main.py index 1fe6015..09a7495 100644 --- a/agentclaw/app/agent_claw_main/main.py +++ b/agentclaw/app/agent_claw_main/main.py @@ -64,11 +64,7 @@ app = BedrockAgentCoreApp() # ── Tool definitions ────────────────────────────────────────────────────── -@tool -def send_message(text: str) -> str: - """Send a message to the user. Use multiple calls to send incrementally - send the direct answer first, then elaboration. Each call delivers immediately to the user.""" - return messaging.send(text) - +# NOTE: send_message tool removed — delivery handled by agent-runner streaming consumer @tool def web_search(query: str) -> str: