Class ToolConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.ToolConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ToolConfiguration>
- Enclosing interface:
ToolConfiguration
@Stability(Experimental)
public static final class ToolConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<ToolConfiguration>
A builder for
ToolConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.toolChoice
(ToolChoice toolChoice) Sets the value ofToolConfiguration.getToolChoice()
Sets the value ofToolConfiguration.getTools()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
toolChoice
Sets the value ofToolConfiguration.getToolChoice()
- Parameters:
toolChoice
- How the model should choose which tool to use. This parameter is required.- Returns:
this
-
tools
Sets the value ofToolConfiguration.getTools()
- Parameters:
tools
- The tools available to the model. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ToolConfiguration>
- Returns:
- a new instance of
ToolConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-