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

Method _iter_events

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

Source from the content-addressed store, hash-verified

109 yield item
110
111 async def _iter_events(self) -> AsyncIterator[ServerSentEvent]:
112 async for sse in self._decoder.aiter_bytes(self.response.aiter_bytes()):
113 yield sse
114
115 async def __stream__(self) -> AsyncIterator[_T]:
116 cast_to = cast(Any, self._cast_to)

Callers 1

__stream__Method · 0.95

Calls 1

aiter_bytesMethod · 0.45

Tested by

no test coverage detected