Interface ToolConfiguration.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<ToolConfiguration.Builder,,ToolConfiguration> SdkBuilder<ToolConfiguration.Builder,,ToolConfiguration> SdkPojo
- Enclosing class:
 ToolConfiguration
public static interface ToolConfiguration.Builder
extends SdkPojo, CopyableBuilder<ToolConfiguration.Builder,ToolConfiguration> 
- 
Method Summary
Modifier and TypeMethodDescriptiondefault ToolConfiguration.BuildertoolChoice(Consumer<ToolChoice.Builder> toolChoice) If supported by model, forces the model to request a tool.toolChoice(ToolChoice toolChoice) If supported by model, forces the model to request a tool.tools(Collection<Tool> tools) An array of tools that you want to pass to a model.tools(Consumer<Tool.Builder>... tools) An array of tools that you want to pass to a model.An array of tools that you want to pass to a model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields 
- 
Method Details
- 
tools
An array of tools that you want to pass to a model.
- Parameters:
 tools- An array of tools that you want to pass to a model.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
tools
An array of tools that you want to pass to a model.
- Parameters:
 tools- An array of tools that you want to pass to a model.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
tools
An array of tools that you want to pass to a model.
This is a convenience method that creates an instance of theTool.Builderavoiding the need to create one manually viaTool.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totools(List<Tool>).- Parameters:
 tools- a consumer that will call methods onTool.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
toolChoice
If supported by model, forces the model to request a tool.
- Parameters:
 toolChoice- If supported by model, forces the model to request a tool.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
toolChoice
If supported by model, forces the model to request a tool.
This is a convenience method that creates an instance of theToolChoice.Builderavoiding the need to create one manually viaToolChoice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolChoice(ToolChoice).- Parameters:
 toolChoice- a consumer that will call methods onToolChoice.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -