Tool
Contains configurations for a tool that a model can use when generating a response. For more information, see Use a tool to complete an Amazon Bedrock model response.
Inheritors
Types
Functions
Casts this Tool as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockagent.model.CachePointBlock value. Throws an exception if the Tool is not a CachePoint.
Casts this Tool as a CachePoint and retrieves its aws.sdk.kotlin.services.bedrockagent.model.CachePointBlock value. Returns null if the Tool is not a CachePoint.
Casts this Tool as a ToolSpec and retrieves its aws.sdk.kotlin.services.bedrockagent.model.ToolSpecification value. Throws an exception if the Tool is not a ToolSpec.
Casts this Tool as a ToolSpec and retrieves its aws.sdk.kotlin.services.bedrockagent.model.ToolSpecification value. Returns null if the Tool is not a ToolSpec.