Video

data class Video(val value: VideoBlock) : ToolResultContentBlock

A tool result that is video.

Constructors

Link copied to clipboard
constructor(value: VideoBlock)

Properties

Link copied to clipboard

Inherited functions

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

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.

Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
fun asText(): String

Casts this ToolResultContentBlock as a Text and retrieves its kotlin.String value. Throws an exception if the ToolResultContentBlock is not a Text.

Link copied to clipboard

Casts this ToolResultContentBlock as a Text and retrieves its kotlin.String value. Returns null if the ToolResultContentBlock is not a Text.

Link copied to clipboard

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.

Link copied to clipboard