Skip to content

iter_list_functions async

iter_list_functions(
    *,
    config_overrides: Optional[AsyncElementalInferenceClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> AsyncIterator[FunctionSummary]
Source code in docs_src/capo_elementalinference/_services/async_elemental_inference.py
async def iter_list_functions(
    self,
    *,
    config_overrides: Optional[AsyncElementalInferenceClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> (
    "AsyncIterator[capo_elementalinference.types.function_summary.FunctionSummary]"
):
    _token = next_token
    while True:
        _response = await self.list_functions(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("functions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break