Skip to content

iter_list_recommended_intents async

iter_list_recommended_intents(
    bot_id: Id,
    bot_version: DraftBotVersion,
    locale_id: LocaleId,
    bot_recommendation_id: Id,
    *,
    config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[ListRecommendedIntentsResponse]
Source code in docs_src/capo_lex_models_v2/_services/async_lex_models_v2.py
async def iter_list_recommended_intents(
    self,
    bot_id: "capo_lex_models_v2.types.id.Id",
    bot_version: "capo_lex_models_v2.types.draft_bot_version.DraftBotVersion",
    locale_id: "capo_lex_models_v2.types.locale_id.LocaleId",
    bot_recommendation_id: "capo_lex_models_v2.types.id.Id",
    *,
    config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
    next_token: Optional["capo_lex_models_v2.types.next_token.NextToken"] = None,
    max_results: Optional["capo_lex_models_v2.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_lex_models_v2.types.list_recommended_intents_response.ListRecommendedIntentsResponse]":
    _token = next_token
    while True:
        _response = await self.list_recommended_intents(
            bot_id,
            bot_version,
            locale_id,
            bot_recommendation_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break