import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetRecommendationsCommand}. */ export interface GetRecommendationsCommandInput extends GetRecommendationsRequest { } /** * @public * * The output of {@link GetRecommendationsCommand}. */ export interface GetRecommendationsCommandOutput extends GetRecommendationsResponse, __MetadataBearer { } declare const GetRecommendationsCommand_base: { new (input: GetRecommendationsCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetRecommendationsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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 * recommendations already available. To perform a manual query against an assistant, use QueryAssistant.

* * @deprecated 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. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WisdomClient, GetRecommendationsCommand } from "@aws-sdk/client-wisdom"; // ES Modules import * // const { WisdomClient, GetRecommendationsCommand } = require("@aws-sdk/client-wisdom"); // CommonJS import * // import type { WisdomClientConfig } from "@aws-sdk/client-wisdom"; * const config = {}; // type is WisdomClientConfig * const client = new WisdomClient(config); * const input = { // GetRecommendationsRequest * assistantId: "STRING_VALUE", // required * sessionId: "STRING_VALUE", // required * maxResults: Number("int"), * waitTimeSeconds: Number("int"), * }; * const command = new GetRecommendationsCommand(input); * const response = await client.send(command); * // { // GetRecommendationsResponse * // recommendations: [ // RecommendationList // required * // { // RecommendationData * // recommendationId: "STRING_VALUE", // required * // document: { // Document * // contentReference: { // ContentReference * // knowledgeBaseArn: "STRING_VALUE", * // knowledgeBaseId: "STRING_VALUE", * // contentArn: "STRING_VALUE", * // contentId: "STRING_VALUE", * // }, * // title: { // DocumentText * // text: "STRING_VALUE", * // highlights: [ // Highlights * // { // Highlight * // beginOffsetInclusive: Number("int"), * // endOffsetExclusive: Number("int"), * // }, * // ], * // }, * // excerpt: { * // text: "STRING_VALUE", * // highlights: [ * // { * // beginOffsetInclusive: Number("int"), * // endOffsetExclusive: Number("int"), * // }, * // ], * // }, * // }, * // relevanceScore: Number("double"), * // relevanceLevel: "STRING_VALUE", * // type: "STRING_VALUE", * // }, * // ], * // triggers: [ // RecommendationTriggerList * // { // RecommendationTrigger * // id: "STRING_VALUE", // required * // type: "STRING_VALUE", // required * // source: "STRING_VALUE", // required * // data: { // RecommendationTriggerData Union: only one key present * // query: { // QueryRecommendationTriggerData * // text: "STRING_VALUE", * // }, * // }, * // recommendationIds: [ // RecommendationIdList // required * // "STRING_VALUE", * // ], * // }, * // ], * // }; * * ``` * * @param GetRecommendationsCommandInput - {@link GetRecommendationsCommandInput} * @returns {@link GetRecommendationsCommandOutput} * @see {@link GetRecommendationsCommandInput} for command's `input` shape. * @see {@link GetRecommendationsCommandOutput} for command's `response` shape. * @see {@link WisdomClientResolvedConfig | config} for WisdomClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource does not exist.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by a service.

* * @throws {@link WisdomServiceException} *

Base exception class for all service exceptions from Wisdom service.

* * * @public */ export declare class GetRecommendationsCommand extends GetRecommendationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetRecommendationsRequest; output: GetRecommendationsResponse; }; sdk: { input: GetRecommendationsCommandInput; output: GetRecommendationsCommandOutput; }; }; }