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.Builder
toolChoice
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
avoiding the need to create one manually viaTool.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaToolChoice.builder()
.When the
Consumer
completes,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:
-