Interface ToolDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ToolDefinition.Builder,
,ToolDefinition> SdkBuilder<ToolDefinition.Builder,
,ToolDefinition> SdkPojo
- Enclosing class:
ToolDefinition
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the tool.default ToolDefinition.Builder
inputSchema
(Consumer<SchemaDefinition.Builder> inputSchema) The input schema for the tool.inputSchema
(SchemaDefinition inputSchema) The input schema for the tool.The name of the tool.default ToolDefinition.Builder
outputSchema
(Consumer<SchemaDefinition.Builder> outputSchema) The output schema for the tool.outputSchema
(SchemaDefinition outputSchema) The output schema for the tool.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
-
name
The name of the tool. This name identifies the tool in the Model Context Protocol.
- Parameters:
name
- The name of the tool. This name identifies the tool in the Model Context Protocol.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the tool. This description provides information about the purpose and usage of the tool.
- Parameters:
description
- The description of the tool. This description provides information about the purpose and usage of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
- Parameters:
inputSchema
- The input schema for the tool. This schema defines the structure of the input that the tool accepts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
This is a convenience method that creates an instance of theSchemaDefinition.Builder
avoiding the need to create one manually viaSchemaDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputSchema(SchemaDefinition)
.- Parameters:
inputSchema
- a consumer that will call methods onSchemaDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputSchema
The output schema for the tool. This schema defines the structure of the output that the tool produces.
- Parameters:
outputSchema
- The output schema for the tool. This schema defines the structure of the output that the tool produces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputSchema
The output schema for the tool. This schema defines the structure of the output that the tool produces.
This is a convenience method that creates an instance of theSchemaDefinition.Builder
avoiding the need to create one manually viaSchemaDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputSchema(SchemaDefinition)
.- Parameters:
outputSchema
- a consumer that will call methods onSchemaDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-