fix: patch summarizers for integration_test_send_message.py (#4919)

* fix: integration_test_send_message.py

* patch summarizer

* remove print
This commit is contained in:
Sarah Wooders
2025-09-25 17:41:57 -07:00
committed by Caren Thomas
parent 155fa9c734
commit b5de42fefd
2 changed files with 15 additions and 13 deletions

View File

@@ -291,10 +291,11 @@ class AnthropicClient(LLMClientBase):
# Both drop heartbeats in the payload
data["messages"] = drop_heartbeats(data["messages"])
# And drop heartbeats in the tools
for tool in data["tools"]:
tool["input_schema"]["properties"].pop(REQUEST_HEARTBEAT_PARAM, None)
if REQUEST_HEARTBEAT_PARAM in tool["input_schema"]["required"]:
tool["input_schema"]["required"].remove(REQUEST_HEARTBEAT_PARAM)
if "tools" in data:
for tool in data["tools"]:
tool["input_schema"]["properties"].pop(REQUEST_HEARTBEAT_PARAM, None)
if REQUEST_HEARTBEAT_PARAM in tool["input_schema"]["required"]:
tool["input_schema"]["required"].remove(REQUEST_HEARTBEAT_PARAM)
else:
# Strip heartbeat pings if extended thinking