From 81aee610010a8787d43bc52c982579aa3550773b Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 19 Dec 2024 19:10:40 +0000 Subject: [PATCH] feat(client-qconnect): Amazon Q in Connect enables agents to ask Q for assistance in multiple languages and Q will provide answers and recommended step-by-step guides in those languages. Qs default language is English (United States) and you can switch this by setting the locale configuration on the AI Agent. --- .../src/commands/CreateAIAgentCommand.ts | 4 ++++ .../commands/CreateAIAgentVersionCommand.ts | 2 ++ .../src/commands/GetAIAgentCommand.ts | 2 ++ .../commands/ListAIAgentVersionsCommand.ts | 2 ++ .../src/commands/ListAIAgentsCommand.ts | 2 ++ .../src/commands/UpdateAIAgentCommand.ts | 4 ++++ .../client-qconnect/src/models/models_0.ts | 21 ++++++++++++++++++- codegen/sdk-codegen/aws-models/qconnect.json | 14 ++++++++++++- 8 files changed, 49 insertions(+), 2 deletions(-) diff --git a/clients/client-qconnect/src/commands/CreateAIAgentCommand.ts b/clients/client-qconnect/src/commands/CreateAIAgentCommand.ts index 32e04009cb32..3e8f103599f0 100644 --- a/clients/client-qconnect/src/commands/CreateAIAgentCommand.ts +++ b/clients/client-qconnect/src/commands/CreateAIAgentCommand.ts @@ -76,6 +76,7 @@ export interface CreateAIAgentCommandOutput extends CreateAIAgentResponse, __Met * }, * }, * ], + * locale: "STRING_VALUE", * }, * answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -108,6 +109,7 @@ export interface CreateAIAgentCommandOutput extends CreateAIAgentResponse, __Met * }, * }, * ], + * locale: "STRING_VALUE", * }, * selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * selfServicePreProcessingAIPromptId: "STRING_VALUE", @@ -191,6 +193,7 @@ export interface CreateAIAgentCommandOutput extends CreateAIAgentResponse, __Met * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -223,6 +226,7 @@ export interface CreateAIAgentCommandOutput extends CreateAIAgentResponse, __Met * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/commands/CreateAIAgentVersionCommand.ts b/clients/client-qconnect/src/commands/CreateAIAgentVersionCommand.ts index d838e219bb37..9a08bcf16db1 100644 --- a/clients/client-qconnect/src/commands/CreateAIAgentVersionCommand.ts +++ b/clients/client-qconnect/src/commands/CreateAIAgentVersionCommand.ts @@ -87,6 +87,7 @@ export interface CreateAIAgentVersionCommandOutput extends CreateAIAgentVersionR * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -119,6 +120,7 @@ export interface CreateAIAgentVersionCommandOutput extends CreateAIAgentVersionR * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/commands/GetAIAgentCommand.ts b/clients/client-qconnect/src/commands/GetAIAgentCommand.ts index b8da060e56cb..08ae3a5383d7 100644 --- a/clients/client-qconnect/src/commands/GetAIAgentCommand.ts +++ b/clients/client-qconnect/src/commands/GetAIAgentCommand.ts @@ -85,6 +85,7 @@ export interface GetAIAgentCommandOutput extends GetAIAgentResponse, __MetadataB * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -117,6 +118,7 @@ export interface GetAIAgentCommandOutput extends GetAIAgentResponse, __MetadataB * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/commands/ListAIAgentVersionsCommand.ts b/clients/client-qconnect/src/commands/ListAIAgentVersionsCommand.ts index 09a6a9e378c1..66c91b7fe55a 100644 --- a/clients/client-qconnect/src/commands/ListAIAgentVersionsCommand.ts +++ b/clients/client-qconnect/src/commands/ListAIAgentVersionsCommand.ts @@ -92,6 +92,7 @@ export interface ListAIAgentVersionsCommandOutput extends ListAIAgentVersionsRes * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -124,6 +125,7 @@ export interface ListAIAgentVersionsCommandOutput extends ListAIAgentVersionsRes * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/commands/ListAIAgentsCommand.ts b/clients/client-qconnect/src/commands/ListAIAgentsCommand.ts index 351ec448e2bf..dedd98e28e80 100644 --- a/clients/client-qconnect/src/commands/ListAIAgentsCommand.ts +++ b/clients/client-qconnect/src/commands/ListAIAgentsCommand.ts @@ -90,6 +90,7 @@ export interface ListAIAgentsCommandOutput extends ListAIAgentsResponse, __Metad * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -122,6 +123,7 @@ export interface ListAIAgentsCommandOutput extends ListAIAgentsResponse, __Metad * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/commands/UpdateAIAgentCommand.ts b/clients/client-qconnect/src/commands/UpdateAIAgentCommand.ts index fee9f4aedfaf..7a885e751945 100644 --- a/clients/client-qconnect/src/commands/UpdateAIAgentCommand.ts +++ b/clients/client-qconnect/src/commands/UpdateAIAgentCommand.ts @@ -76,6 +76,7 @@ export interface UpdateAIAgentCommandOutput extends UpdateAIAgentResponse, __Met * }, * }, * ], + * locale: "STRING_VALUE", * }, * answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -108,6 +109,7 @@ export interface UpdateAIAgentCommandOutput extends UpdateAIAgentResponse, __Met * }, * }, * ], + * locale: "STRING_VALUE", * }, * selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * selfServicePreProcessingAIPromptId: "STRING_VALUE", @@ -187,6 +189,7 @@ export interface UpdateAIAgentCommandOutput extends UpdateAIAgentResponse, __Met * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // answerRecommendationAIAgentConfiguration: { // AnswerRecommendationAIAgentConfiguration * // intentLabelingGenerationAIPromptId: "STRING_VALUE", @@ -219,6 +222,7 @@ export interface UpdateAIAgentCommandOutput extends UpdateAIAgentResponse, __Met * // }, * // }, * // ], + * // locale: "STRING_VALUE", * // }, * // selfServiceAIAgentConfiguration: { // SelfServiceAIAgentConfiguration * // selfServicePreProcessingAIPromptId: "STRING_VALUE", diff --git a/clients/client-qconnect/src/models/models_0.ts b/clients/client-qconnect/src/models/models_0.ts index e009db5c879a..e40713e9238d 100644 --- a/clients/client-qconnect/src/models/models_0.ts +++ b/clients/client-qconnect/src/models/models_0.ts @@ -486,6 +486,18 @@ export interface AnswerRecommendationAIAgentConfiguration { * @public */ associationConfigurations?: AssociationConfiguration[] | undefined; + + /** + *

The locale to which specifies the language and region settings that determine the response + * language for QueryAssistant.

+ * + *

Changing this locale to anything other than en_US will turn off + * recommendations triggered by contact transcripts for agent assistance, as this feature is + * not supported in multiple languages.

+ *
+ * @public + */ + locale?: string | undefined; } /** @@ -512,6 +524,13 @@ export interface ManualSearchAIAgentConfiguration { * @public */ associationConfigurations?: AssociationConfiguration[] | undefined; + + /** + *

The locale to which specifies the language and region settings that determine the response + * language for QueryAssistant.

+ * @public + */ + locale?: string | undefined; } /** @@ -1602,7 +1621,7 @@ export interface GuardrailPiiEntityConfig { *