SpanMessageValue

sealed class SpanMessageValue

Message content value - can be text, tool invocation, tool result, or reasoning

Inheritors

Types

Link copied to clipboard

Model reasoning and it's internal decision making process

Link copied to clipboard
Link copied to clipboard
data class Text(val value: SpanTextValue) : SpanMessageValue

Text message content

Link copied to clipboard

Tool result message content

Link copied to clipboard
data class ToolUse(val value: SpanToolUseValue) : SpanMessageValue

Tool invocation message content

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Casts this SpanMessageValue as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanTextValue value. Throws an exception if the SpanMessageValue is not a Text.

Link copied to clipboard

Casts this SpanMessageValue as a Text and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanTextValue value. Returns null if the SpanMessageValue is not a Text.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Casts this SpanMessageValue as a ToolUse and retrieves its aws.sdk.kotlin.services.qconnect.model.SpanToolUseValue value. Throws an exception if the SpanMessageValue is not a ToolUse.

Link copied to clipboard