Module Values.ChatSyncInputSource

Starts or continues a non-streaming Amazon Q Business conversation.

Sourcetype nonrec t = {
  1. applicationId : ApplicationId.t;
    (*

    The identifier of the Amazon Q Business application linked to the Amazon Q Business conversation.

    *)
  2. userId : UserId.t option;
    (*

    The identifier of the user attached to the chat input.

    *)
  3. userGroups : UserGroups.t option;
    (*

    The group names that a user associated with the chat input belongs to.

    *)
  4. userMessage : UserMessage.t option;
    (*

    A end user message in a conversation.

    *)
  5. attachments : AttachmentsInput.t option;
    (*

    A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.

    *)
  6. actionExecution : ActionExecution.t option;
    (*

    A request from an end user to perform an Amazon Q Business plugin action.

    *)
  7. authChallengeResponse : AuthChallengeResponse.t option;
    (*

    An authentication verification event response by a third party authentication server to Amazon Q Business.

    *)
  8. conversationId : ConversationId.t option;
    (*

    The identifier of the Amazon Q Business conversation.

    *)
  9. parentMessageId : MessageId.t option;
    (*

    The identifier of the previous system message in a conversation.

    *)
  10. attributeFilter : AttributeFilter.t option;
    (*

    Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.

    *)
  11. chatMode : ChatMode.t option;
    (*

    The chatMode parameter determines the chat modes available to Amazon Q Business users: RETRIEVAL_MODE - If you choose this mode, Amazon Q generates responses solely from the data sources connected and indexed by the application. If an answer is not found in the data sources or there are no data sources available, Amazon Q will respond with a "No Answer Found" message, unless LLM knowledge has been enabled. In that case, Amazon Q will generate a response from the LLM knowledge CREATOR_MODE - By selecting this mode, you can choose to generate responses only from the LLM knowledge. You can also attach files and have Amazon Q generate a response based on the data in those files. If the attached files do not contain an answer for the query, Amazon Q will automatically fall back to generating a response from the LLM knowledge. PLUGIN_MODE - By selecting this mode, users can choose to use plugins in chat to get their responses. If none of the modes are selected, Amazon Q will only respond using the information from the attached files. For more information, see Admin controls and guardrails, Plugins, and Response sources.

    *)
  12. chatModeConfiguration : ChatModeConfiguration.t option;
    (*

    The chat mode configuration for an Amazon Q Business application.

    *)
  13. clientToken : ClientToken.t option;
    (*

    A token that you provide to identify a chat request.

    *)
}
Sourceval context_ : string
Sourceval make : ?userId:??? -> ?userGroups:??? -> ?userMessage:??? -> ?attachments:??? -> ?actionExecution:??? -> ?authChallengeResponse:??? -> ?conversationId:??? -> ?parentMessageId:??? -> ?attributeFilter:??? -> ?chatMode:??? -> ?chatModeConfiguration:??? -> ?clientToken:??? -> applicationId:ApplicationId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * Awso.Botodata.value) 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