SdkUnknown

Inherited functions

Link copied to clipboard
fun asText(): String

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
fun asToolUse(): <Error class: unknown class>

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
fun asToolUseOrNull(): <Error class: unknown class>?

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.