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

Method iter_bytes

tests/test_open_telemetry.py:640–641  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

638 """What an application's test may give a stream in place of a response. It has no `stream`."""
639
640 def iter_bytes(self) -> Iterator[bytes]:
641 yield sse(stream_events())
642
643 async def aiter_bytes(self) -> AsyncIterator[bytes]:
644 yield sse(stream_events())

Calls 2

stream_eventsFunction · 0.85
sseFunction · 0.70

Tested by

no test coverage detected