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

Method iter_pages

src/opencode_ai/_base_client.py:335–342  ·  view source on GitHub ↗
(self: AsyncPageT)

Source from the content-addressed store, hash-verified

333 yield item
334
335 async def iter_pages(self: AsyncPageT) -> AsyncIterator[AsyncPageT]:
336 page = self
337 while True:
338 yield page
339 if page.has_next_page():
340 page = await page.get_next_page()
341 else:
342 return
343
344 async def get_next_page(self: AsyncPageT) -> AsyncPageT:
345 info = self.next_page_info()

Callers 1

__aiter__Method · 0.95

Calls 2

has_next_pageMethod · 0.80
get_next_pageMethod · 0.45

Tested by

no test coverage detected