ToolRemoval

data class ToolRemoval(val value: ToolRemovalBlock) : ContentBlock

A content block for removing a tool from the available tool set mid-conversation. Each block references a single tool via its tool field. Use within a system role message to remove a tool without re-sending the full tool configuration.

Constructors

Link copied to clipboard
constructor(value: ToolRemovalBlock)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

Casts this ContentBlock as a Audio and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.AudioBlock value. Throws an exception if the ContentBlock is not a Audio.

Link copied to clipboard

Casts this ContentBlock as a Audio and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.AudioBlock value. Returns null if the ContentBlock is not a Audio.

Link copied to clipboard

Casts this ContentBlock as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.CachePointBlock value. Throws an exception if the ContentBlock is not a CachePoint.

Link copied to clipboard
Link copied to clipboard

Casts this ContentBlock as a Document and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.DocumentBlock value. Throws an exception if the ContentBlock is not a Document.

Link copied to clipboard
Link copied to clipboard

Casts this ContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ImageBlock value. Throws an exception if the ContentBlock is not a Image.

Link copied to clipboard

Casts this ContentBlock as a Image and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ImageBlock value. Returns null if the ContentBlock is not a Image.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun asText(): String

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

Link copied to clipboard

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

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

Casts this ContentBlock as a ToolResult and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ToolResultBlock value. Throws an exception if the ContentBlock is not a ToolResult.

Link copied to clipboard
Link copied to clipboard

Casts this ContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ToolUseBlock value. Throws an exception if the ContentBlock is not a ToolUse.

Link copied to clipboard

Casts this ContentBlock as a ToolUse and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ToolUseBlock value. Returns null if the ContentBlock is not a ToolUse.

Link copied to clipboard

Casts this ContentBlock as a Video and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.VideoBlock value. Throws an exception if the ContentBlock is not a Video.

Link copied to clipboard

Casts this ContentBlock as a Video and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.VideoBlock value. Returns null if the ContentBlock is not a Video.