ToolChoice
Defines which tools the model should request when invoked. For more information, see Use a tool to complete an Amazon Bedrock model response.
Inheritors
Types
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.
Defines tools. The model automatically decides whether to call a tool or to generate text instead.
Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response.
Functions
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.
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.
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.
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.
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.
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.