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

Function read_events

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected