Json
A tool result that is JSON format data.
Inherited functions
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Throws an exception if the ToolResultContentBlock is not a Document.
Casts this ToolResultContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Returns null if the ToolResultContentBlock is not a Document.
Casts this ToolResultContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ImageBlock value. Throws an exception if the ToolResultContentBlock is not a Image.
Casts this ToolResultContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ImageBlock value. Returns null if the ToolResultContentBlock is not a Image.
Casts this ToolResultContentBlock as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the ToolResultContentBlock is not a Json.
Casts this ToolResultContentBlock as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the ToolResultContentBlock is not a Json.
Casts this ToolResultContentBlock as a Text and retrieves its kotlin.String value. Throws an exception if the ToolResultContentBlock is not a Text.
Casts this ToolResultContentBlock as a Text and retrieves its kotlin.String value. Returns null if the ToolResultContentBlock is not a Text.
Casts this ToolResultContentBlock as a Video and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.VideoBlock value. Throws an exception if the ToolResultContentBlock is not a Video.
Casts this ToolResultContentBlock as a Video and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.VideoBlock value. Returns null if the ToolResultContentBlock is not a Video.