MessageData
Types
The message data as a structured JSON document. This is the payload for a message of type DATA, and must be a JSON object at the root level.
The message data in text type.
The result of tool usage in the message.
Functions
Casts this MessageData as a Data and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the MessageData is not a Data.
Casts this MessageData as a Data and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the MessageData is not a Data.
Casts this MessageData as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.TextMessage value. Throws an exception if the MessageData is not a Text.
Casts this MessageData as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.TextMessage value. Returns null if the MessageData is not a Text.
Casts this MessageData as a ToolUseResult and retrieves its aws.sdk.kotlin.services.qconnect.model.ToolUseResultData value. Throws an exception if the MessageData is not a ToolUseResult.
Casts this MessageData as a ToolUseResult and retrieves its aws.sdk.kotlin.services.qconnect.model.ToolUseResultData value. Returns null if the MessageData is not a ToolUseResult.