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

Method aiter_bytes

src/anthropic/_streaming.py:453–455  ·  view source on GitHub ↗

Given an async iterator that yields raw binary data, iterate over it & yield every event encountered

(self, iterator: AsyncIterator[bytes])

Source from the content-addressed store, hash-verified

451 ...
452
453 def aiter_bytes(self, iterator: AsyncIterator[bytes]) -> AsyncIterator[ServerSentEvent]:
454 """Given an async iterator that yields raw binary data, iterate over it & yield every event encountered"""
455 ...
456
457
458def is_stream_class_type(typ: type) -> TypeGuard[type[Stream[object]] | type[AsyncStream[object]]]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected