list_recommended_intents
¶
list_recommended_intents(
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
bot_recommendation_id: Id,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListRecommendedIntentsResponse
Gets a list of recommended intents provided by the bot recommendation that you can use in your bot. Intents in the response are ordered by relevance.
Parameters:
-
bot_id(Id) –The unique identifier of the bot associated with the recommended intents.
-
bot_version(DraftBotVersion) –The version of the bot that contains the recommended intents.
-
locale_id(LocaleId) –The identifier of the language and locale of the recommended intents.
-
bot_recommendation_id(Id) –The identifier of the bot recommendation that contains the recommended intents.
-
next_token(Optional[NextToken], default:None) –If the response from the ListRecommendedIntents operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of bot recommendations to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.
Raises:
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
ResourceNotFoundException–You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/lex_models_v2.py
5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 | |