From e7c58be366bc063466f46182d65b9d3a80d32b57 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 10 Jan 2024 19:15:57 +0000 Subject: [PATCH] feat(client-wisdom): QueryAssistant and GetRecommendations will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications. --- .../client-wisdom/src/commands/GetRecommendationsCommand.ts | 2 ++ clients/client-wisdom/src/commands/QueryAssistantCommand.ts | 2 ++ codegen/sdk-codegen/aws-models/wisdom.json | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/clients/client-wisdom/src/commands/GetRecommendationsCommand.ts b/clients/client-wisdom/src/commands/GetRecommendationsCommand.ts index 0e03e2fff001..fb7d9375f640 100644 --- a/clients/client-wisdom/src/commands/GetRecommendationsCommand.ts +++ b/clients/client-wisdom/src/commands/GetRecommendationsCommand.ts @@ -32,6 +32,8 @@ export interface GetRecommendationsCommandOutput extends GetRecommendationsRespo /** * @public + * @deprecated + * *

Retrieves recommendations for the specified session. To avoid retrieving the same * recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the * waitTimeSeconds parameter. Short poll is the default behavior and only returns diff --git a/clients/client-wisdom/src/commands/QueryAssistantCommand.ts b/clients/client-wisdom/src/commands/QueryAssistantCommand.ts index a24670cb2882..bf233dda958a 100644 --- a/clients/client-wisdom/src/commands/QueryAssistantCommand.ts +++ b/clients/client-wisdom/src/commands/QueryAssistantCommand.ts @@ -33,6 +33,8 @@ export interface QueryAssistantCommandOutput extends QueryAssistantResponse, __M /** * @public + * @deprecated + * *

Performs a manual search against the specified assistant. To retrieve recommendations for * an assistant, use GetRecommendations. *

diff --git a/codegen/sdk-codegen/aws-models/wisdom.json b/codegen/sdk-codegen/aws-models/wisdom.json index ebb19d9d56f4..5126ca71f553 100644 --- a/codegen/sdk-codegen/aws-models/wisdom.json +++ b/codegen/sdk-codegen/aws-models/wisdom.json @@ -2427,6 +2427,9 @@ } ], "traits": { + "smithy.api#deprecated": { + "message": "GetRecommendations API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications." + }, "smithy.api#documentation": "

Retrieves recommendations for the specified session. To avoid retrieving the same\n recommendations in subsequent calls, use NotifyRecommendationsReceived. This API supports long-polling behavior with the\n waitTimeSeconds parameter. Short poll is the default behavior and only returns\n recommendations already available. To perform a manual query against an assistant, use QueryAssistant.

", "smithy.api#http": { "uri": "/assistants/{assistantId}/sessions/{sessionId}/recommendations", @@ -3903,6 +3906,9 @@ } ], "traits": { + "smithy.api#deprecated": { + "message": "QueryAssistant API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications." + }, "smithy.api#documentation": "

Performs a manual search against the specified assistant. To retrieve recommendations for\n an assistant, use GetRecommendations.\n

", "smithy.api#http": { "uri": "/assistants/{assistantId}/query",