Any

data class Any(val value: AnyToolChoice) : ToolChoice

Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response.

Constructors

Link copied to clipboard
constructor(value: AnyToolChoice)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard

Casts this ToolChoice as a Any and retrieves its aws.sdk.kotlin.services.bedrockagent.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.bedrockagent.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.bedrockagent.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.bedrockagent.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.bedrockagent.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.bedrockagent.model.SpecificToolChoice value. Returns null if the ToolChoice is not a Tool.