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

Method iter_pages

src/opencode_ai/_base_client.py:255–262  ·  view source on GitHub ↗
(self: SyncPageT)

Source from the content-addressed store, hash-verified

253 yield item
254
255 def iter_pages(self: SyncPageT) -> Iterator[SyncPageT]:
256 page = self
257 while True:
258 yield page
259 if page.has_next_page():
260 page = page.get_next_page()
261 else:
262 return
263
264 def get_next_page(self: SyncPageT) -> SyncPageT:
265 info = self.next_page_info()

Callers 1

__iter__Method · 0.95

Calls 2

has_next_pageMethod · 0.80
get_next_pageMethod · 0.45

Tested by

no test coverage detected