MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / _iter_events

Method _iter_events

src/anthropic/_streaming.py:74–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 yield item
73
74 def _iter_events(self) -> Iterator[ServerSentEvent]:
75 yield from self._decoder.iter_bytes(self.response.iter_bytes())
76
77 @staticmethod
78 def raw_events(response: httpx.Response) -> Iterator[ServerSentEvent]:

Callers 2

__stream__Method · 0.95
make_event_iteratorFunction · 0.45

Calls 1

iter_bytesMethod · 0.45

Tested by 1

make_event_iteratorFunction · 0.36