MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / _iter_events

Method _iter_events

src/opencode_ai/_streaming.py:48–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 yield item
47
48 def _iter_events(self) -> Iterator[ServerSentEvent]:
49 yield from self._decoder.iter_bytes(self.response.iter_bytes())
50
51 def __stream__(self) -> Iterator[_T]:
52 cast_to = cast(Any, self._cast_to)

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