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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ToolConfiguration.BuildertoolChoice(Consumer<ToolChoice.Builder> toolChoice)If supported by model, forces the model to request a tool.ToolConfiguration.BuildertoolChoice(ToolChoice toolChoice)If supported by model, forces the model to request a tool.ToolConfiguration.Buildertools(Collection<Tool> tools)An array of tools that you want to pass to a model.ToolConfiguration.Buildertools(Consumer<Tool.Builder>... tools)An array of tools that you want to pass to a model.ToolConfiguration.Buildertools(Tool... tools)An array of tools that you want to pass to a model.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
tools
ToolConfiguration.Builder tools(Collection<Tool> 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
ToolConfiguration.Builder tools(Tool... 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
ToolConfiguration.Builder tools(Consumer<Tool.Builder>... 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 to#tools(List.) - 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:
#tools(java.util.Collection)
-
toolChoice
ToolConfiguration.Builder toolChoice(ToolChoice 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
default ToolConfiguration.Builder toolChoice(Consumer<ToolChoice.Builder> 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:
toolChoice(ToolChoice)
-
-