Class: Aws::BedrockRuntime::Types::ToolChoice
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::ToolChoice
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
Overview
ToolChoice is a union - when making an API calls you must set exactly one of the members.
Determines which tools the model should request in a call to ‘Converse` or `ConverseStream`. For more information, see [Call a tool with the Converse API] in the Amazon Bedrock User Guide.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html
Defined Under Namespace
Classes: Any, Auto, Tool, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#any ⇒ Types::AnyToolChoice
The model must request at least one tool (no text is generated).
-
#auto ⇒ Types::AutoToolChoice
(Default).
-
#tool ⇒ Types::SpecificToolChoice
The Model must request the specified tool.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#any ⇒ Types::AnyToolChoice
The model must request at least one tool (no text is generated).
4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4198 class ToolChoice < Struct.new( :auto, :any, :tool, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Auto < ToolChoice; end class Any < ToolChoice; end class Tool < ToolChoice; end class Unknown < ToolChoice; end end |
#auto ⇒ Types::AutoToolChoice
(Default). The Model automatically decides if a tool should be called or whether to generate text instead.
4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4198 class ToolChoice < Struct.new( :auto, :any, :tool, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Auto < ToolChoice; end class Any < ToolChoice; end class Tool < ToolChoice; end class Unknown < ToolChoice; end end |
#tool ⇒ Types::SpecificToolChoice
The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.
4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4198 class ToolChoice < Struct.new( :auto, :any, :tool, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class Auto < ToolChoice; end class Any < ToolChoice; end class Tool < ToolChoice; end class Unknown < ToolChoice; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
4198 4199 4200 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 4198 def unknown @unknown end |