AIConversationRequest
data class AIConversationRequest<out M : AIMessage>(val kind: AIConversationRequestKind, val text: String, val attachments: List<Uri> = emptyList(), val message: M? = null, val uiAction: AIUIAction? = null, val messageId: String = UUID.randomUUID().toString())
What the person asks of the agent, which an AIConversationState hands to its AIConversationTransport.
Parameters
kind
What the person asks for.
text
What the person wrote. For a AIUIAction, its label. When a reply is written again, the text of the message it answers.
attachments
The files the person picked, on this device, to upload with their message.
message
The message it is about, such as the reply to write again.
uiAction
What the person did in a reply's generated UI, which their message carries for the agent, such as under AIUIAction.customData. Null for a message they wrote.
messageId
An id for the person's message. A transport that creates the message with it lets the conversation find its copy by it. A retry of the request keeps it.
Constructors
Link copied to clipboard
constructor(kind: AIConversationRequestKind, text: String, attachments: List<Uri> = emptyList(), message: M? = null, uiAction: AIUIAction? = null, messageId: String = UUID.randomUUID().toString())