Remove send_message @tool def: was causing session-history duplicates

This commit is contained in:
daniel
2026-05-07 19:26:23 -05:00
parent 08ad66a732
commit ce95cf4c12

View File

@@ -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: