Tool

sealed class Tool

Information about a tool that you can use with the Converse API. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Inheritors

Types

Link copied to clipboard
data class CachePoint(val value: CachePointBlock) : Tool

CachePoint to include in the tool configuration.

Link copied to clipboard
object SdkUnknown : Tool
Link copied to clipboard
data class SystemTool(val value: SystemTool) : Tool

Specifies the system-defined tool that you want use.

Link copied to clipboard
data class ToolSpec(val value: ToolSpecification) : Tool

The specfication for the tool.

Functions

Link copied to clipboard

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

Link copied to clipboard

Casts this Tool as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.CachePointBlock value. Returns null if the Tool is not a CachePoint.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this Tool as a ToolSpec and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ToolSpecification value. Throws an exception if the Tool is not a ToolSpec.

Link copied to clipboard

Casts this Tool as a ToolSpec and retrieves its aws.sdk.kotlin.services.bedrockruntime.model.ToolSpecification value. Returns null if the Tool is not a ToolSpec.