Interface ToolConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolConfiguration.Builder,
,ToolConfiguration> SdkBuilder<ToolConfiguration.Builder,
,ToolConfiguration> SdkPojo
- Enclosing class:
ToolConfiguration
@Mutable
@NotThreadSafe
public static interface ToolConfiguration.Builder
extends SdkPojo, CopyableBuilder<ToolConfiguration.Builder,ToolConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ToolConfiguration.Builder
toolChoice
(Consumer<ToolChoice.Builder> toolChoice) Defines which tools the model should request when invoked.toolChoice
(ToolChoice toolChoice) Defines which tools the model should request when invoked.tools
(Collection<Tool> tools) An array of tools to pass to a model.tools
(Consumer<Tool.Builder>... tools) An array of tools to pass to a model.An array of tools 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 Details
-
toolChoice
Defines which tools the model should request when invoked.
- Parameters:
toolChoice
- Defines which tools the model should request when invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolChoice
Defines which tools the model should request when invoked.
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:
-
tools
An array of tools to pass to a model.
- Parameters:
tools
- An array of tools 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 to pass to a model.
- Parameters:
tools
- An array of tools 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 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:
-