Class ToolDefinition.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ToolDefinition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ToolDefinition>
- Enclosing interface:
ToolDefinition
@Stability(Stable)
public static final class ToolDefinition.Builder
extends Object
implements software.amazon.jsii.Builder<ToolDefinition>
A builder for
ToolDefinition-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofToolDefinition.getDescription()inputSchema(SchemaDefinition inputSchema) Sets the value ofToolDefinition.getInputSchema()Sets the value ofToolDefinition.getName()outputSchema(SchemaDefinition outputSchema) Sets the value ofToolDefinition.getOutputSchema()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofToolDefinition.getDescription()- Parameters:
description- The description of the tool. This parameter is required. This description provides information about the purpose and usage of the tool.- Returns:
this
-
inputSchema
Sets the value ofToolDefinition.getInputSchema()- Parameters:
inputSchema- The input schema for the tool. This parameter is required. This schema defines the structure of the input that the tool accepts.- Returns:
this
-
name
Sets the value ofToolDefinition.getName()- Parameters:
name- The name of the tool. This parameter is required. This name identifies the tool in the Model Context Protocol.- Returns:
this
-
outputSchema
Sets the value ofToolDefinition.getOutputSchema()- Parameters:
outputSchema- The output schema for the tool. This schema defines the structure of the output that the tool produces.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ToolDefinition>- Returns:
- a new instance of
ToolDefinition - Throws:
NullPointerException- if any required attribute was not provided
-