Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_iterator
Function · 0.45
Calls
1
iter_bytes
Method · 0.45
Tested by
1
make_event_iterator
Function · 0.36