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

Function read_events

tests/test_open_telemetry.py:7942–7945  ·  view source on GitHub ↗
(sync: bool, stream: Any)

Source from the content-addressed store, hash-verified

7940
7941
7942async def read_events(sync: bool, stream: Any) -> list[str]:
7943 if sync:
7944 return [event.type for event in stream]
7945 return [event.type async for event in stream]
7946
7947
7948async def final_text(sync: bool, spans: Spans, **options: Any) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected