AssistantMessageBlock
A block of content in an assistant message.
Inheritors
Types
Functions
Link copied to clipboard
Casts this AssistantMessageBlock as a Text and retrieves its kotlin.String value. Throws an exception if the AssistantMessageBlock is not a Text.
Link copied to clipboard
Casts this AssistantMessageBlock as a Text and retrieves its kotlin.String value. Returns null if the AssistantMessageBlock is not a Text.
Link copied to clipboard
Casts this AssistantMessageBlock as a ToolUse and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the AssistantMessageBlock is not a ToolUse.
Link copied to clipboard
Casts this AssistantMessageBlock as a ToolUse and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the AssistantMessageBlock is not a ToolUse.