get_next_page() — anthropic-sdk-python Function Reference
Architecture documentation for the get_next_page() function in _base_client.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 3373294a_f5ae_b05d_174c_724dcb380905["get_next_page()"] 974ecd7e_1e02_c86a_c8bf_b2cfbc7e936e["BaseAsyncPage"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|defined in| 974ecd7e_1e02_c86a_c8bf_b2cfbc7e936e f2d28c81_dfd4_1ffe_b1b5_5248a43a1ab5["get_next_page()"] f2d28c81_dfd4_1ffe_b1b5_5248a43a1ab5 -->|calls| 3373294a_f5ae_b05d_174c_724dcb380905 9848b028_9275_79a1_d720_3c9c5ece84b0["next_page_info()"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|calls| 9848b028_9275_79a1_d720_3c9c5ece84b0 8431fb55_0370_3fd9_40c1_7e9f3735691f["_info_to_options()"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|calls| 8431fb55_0370_3fd9_40c1_7e9f3735691f f2d28c81_dfd4_1ffe_b1b5_5248a43a1ab5["get_next_page()"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|calls| f2d28c81_dfd4_1ffe_b1b5_5248a43a1ab5 c2d68dcc_755d_a64a_1980_a7bccf454598["has_next_page()"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|calls| c2d68dcc_755d_a64a_1980_a7bccf454598 fd93a81d_e05c_b682_aed9_45b0ae941ae3["_request_api_list()"] 3373294a_f5ae_b05d_174c_724dcb380905 -->|calls| fd93a81d_e05c_b682_aed9_45b0ae941ae3 style 3373294a_f5ae_b05d_174c_724dcb380905 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/_base_client.py lines 353–361
async def get_next_page(self: AsyncPageT) -> AsyncPageT:
info = self.next_page_info()
if not info:
raise RuntimeError(
"No next page expected; please check `.has_next_page()` before calling `.get_next_page()`."
)
options = self._info_to_options(info)
return await self._client._request_api_list(self._model, page=self.__class__, options=options)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_next_page() do?
get_next_page() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_base_client.py.
Where is get_next_page() defined?
get_next_page() is defined in src/anthropic/_base_client.py at line 353.
What does get_next_page() call?
get_next_page() calls 5 function(s): _info_to_options, _request_api_list, get_next_page, has_next_page, next_page_info.
What calls get_next_page()?
get_next_page() is called by 1 function(s): get_next_page.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free