Module Values.GetRecommendationsRequestSource

This 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 Amazon Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications. 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.

Sourcetype nonrec t = {
  1. assistantId : UuidOrArn.t;
    (*

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    *)
  2. sessionId : UuidOrArn.t;
    (*

    The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

    *)
  3. maxResults : MaxResults.t option;
    (*

    The maximum number of results to return per page.

    *)
  4. waitTimeSeconds : WaitTimeSeconds.t option;
    (*

    The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list.

    *)
  5. nextChunkToken : NextToken.t option;
    (*

    The token for the next set of chunks. Use the value returned in the previous response in the next request to retrieve the next set of chunks.

    *)
  6. recommendationType : RecommendationType.t option;
    (*

    The type of recommendation being requested.

    *)
}
Sourceval context_ : string
Sourceval make : ?maxResults:??? -> ?waitTimeSeconds:??? -> ?nextChunkToken:??? -> ?recommendationType:??? -> assistantId:UuidOrArn.t -> sessionId:UuidOrArn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of MaxResults.t | `String of UuidOrArn.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t