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

Method get_next_page

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

Source from the content-addressed store, hash-verified

262 return
263
264 def get_next_page(self: SyncPageT) -> SyncPageT:
265 info = self.next_page_info()
266 if not info:
267 raise RuntimeError(
268 "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`."
269 )
270
271 options = self._info_to_options(info)
272 return self._client._request_api_list(self._model, page=self.__class__, options=options)
273
274
275class AsyncPaginator(Generic[_T, AsyncPageT]):

Callers 2

iter_pagesMethod · 0.45
iter_pagesMethod · 0.45

Calls 3

next_page_infoMethod · 0.80
_info_to_optionsMethod · 0.80
_request_api_listMethod · 0.45

Tested by

no test coverage detected