Remove send_message @tool def: was causing session-history duplicates
This commit is contained in:
@@ -64,11 +64,7 @@ app = BedrockAgentCoreApp()
|
|||||||
|
|
||||||
# ── Tool definitions ──────────────────────────────────────────────────────
|
# ── Tool definitions ──────────────────────────────────────────────────────
|
||||||
|
|
||||||
@tool
|
# NOTE: send_message tool removed — delivery handled by agent-runner streaming consumer
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
@tool
|
@tool
|
||||||
def web_search(query: str) -> str:
|
def web_search(query: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user