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

Method get_next_page

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

Source from the content-addressed store, hash-verified

342 return
343
344 async def get_next_page(self: AsyncPageT) -> AsyncPageT:
345 info = self.next_page_info()
346 if not info:
347 raise RuntimeError(
348 "No next page expected; please check `.has_next_page()` before calling `.get_next_page()`."
349 )
350
351 options = self._info_to_options(info)
352 return await self._client._request_api_list(self._model, page=self.__class__, options=options)
353
354
355_HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient])

Callers

nothing calls this directly

Calls 3

next_page_infoMethod · 0.80
_info_to_optionsMethod · 0.80
_request_api_listMethod · 0.45

Tested by

no test coverage detected