asImage
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. Throws an exception if the ToolResultContentBlock is not a Image.