Tool

data class Tool(val value: SpecificToolChoice) : ToolChoice

The Model must request the specified tool. Only supported by Anthropic Claude 3 models.

Constructors

Link copied to clipboard
constructor(value: SpecificToolChoice)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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