Values.ChatOutputStreamSourceThe streaming output for the Chat API.
type nonrec t = {textEvent : TextOutputEvent.t option;Information about the payload of the ChatOutputStream event containing the AI-generated message output.
*)metadataEvent : MetadataEvent.t option;A metadata event for a AI-generated text output message in a Amazon Q Business conversation.
*)actionReviewEvent : ActionReviewEvent.t option;A request from Amazon Q Business to the end user for information Amazon Q Business needs to successfully complete a requested plugin action.
*)failedAttachmentEvent : FailedAttachmentEvent.t option;A failed file upload event during a web experience chat.
*)authChallengeRequestEvent : AuthChallengeRequestEvent.t option;An authentication verification event activated by an end user request to use a custom plugin.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Integer of Integer.t
| `List of
[> `Structure of
(string
* [> `Integer of Integer.t
| `String of SourceAttributionMediaId.t
| `Structure of
(string
* [> `String of SnippetExcerptText.t
| `Structure of
(string
* [> `Enum of string
| `Long of Long.t
| `String of MediaId.t ])
list ])
list ])
list ]
list
| `String of String_.t
| `Timestamp of Timestamp.t ])
list ]
list
| `Map of
([> `String of ActionPayloadFieldKey.t ]
* [> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `Integer of Integer.t
| `List of
[> `Structure of
(string * [> `Structure of 'a list ])
list ]
list
| `String of String_.t
| `Structure of 'b list ])
list ])
list
| `String of ConversationId.t
| `Structure of
(string
* [> `Enum of string
| `String of AttachmentName.t
| `Structure of
(string
* [> `Enum of string | `String of ErrorMessage.t ])
list ])
list ])
list ])
list ]