list_recommended_intents
async
¶
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,
) -> 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/async_lex_models_v2.py
5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 | |