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

Function first_reply

tests/lib/tools/test_runner_eager_tools.py:868–870  ·  view source on GitHub ↗

The timeline up to the second request, which is everything about the first reply.

(timeline: list[str])

Source from the content-addressed store, hash-verified

866
867
868def first_reply(timeline: list[str]) -> list[str]:
869 """The timeline up to the second request, which is everything about the first reply."""
870 return timeline[: timeline.index("request 2")] if "request 2" in timeline else timeline
871
872
873def tool_results(message: BetaMessageParam | None) -> list[Any]:

Calls

no outgoing calls

Tested by

no test coverage detected