MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / tool_change_replies

Function tool_change_replies

tests/lib/threads/helpers.py:372–379  ·  view source on GitHub ↗

The replies of a run that calls `get_weather`, then `lookup`, then `get_weather` again, and then ends.

()

Source from the content-addressed store, hash-verified

370
371
372def tool_change_replies() -> list[httpx2.Response]:
373 """The replies of a run that calls `get_weather`, then `lookup`, then `get_weather` again, and then ends."""
374 return [
375 message_response("msg_a", tool_use_id="toolu_a"),
376 message_response("msg_b", tool_use_id="toolu_b", tool_name="lookup"),
377 message_response("msg_c", tool_use_id="toolu_c"),
378 message_response("msg_d", "Sunny."),
379 ]
380
381
382def tool_change_turns(lookup_definition: BetaToolUnionParam) -> list[list[BetaMessageParam]]:

Calls 1

message_responseFunction · 0.85