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

Function events_without_a_delta

tests/test_open_telemetry.py:719–722  ·  view source on GitHub ↗

The events of `stream_events`, with the text block whole in its `content_block_start`.

()

Source from the content-addressed store, hash-verified

717
718
719def events_without_a_delta() -> list[dict[str, Any]]:
720 """The events of `stream_events`, with the text block whole in its `content_block_start`."""
721 start, block_start, _, *rest = stream_events()
722 return [start, {**block_start, "content_block": {"type": "text", "text": "Hi there"}}, *rest]
723
724
725def iteration(

Calls 1

stream_eventsFunction · 0.85

Tested by

no test coverage detected