Skip to content

iter_list_supported_models async

iter_list_supported_models(
    *,
    config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
    max_results: Optional[Limit100] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[ModelSummary]
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
async def iter_list_supported_models(
    self,
    *,
    config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
    max_results: Optional["capo_workspaces.types.limit100.Limit100"] = None,
    next_token: Optional[
        "capo_workspaces.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_workspaces.types.model_summary.ModelSummary]":
    _token = next_token
    while True:
        _response = await self.list_supported_models(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("model_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break