Interface ToolDefinition.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<ToolDefinition.Builder,,- ToolDefinition> - SdkBuilder<ToolDefinition.Builder,,- ToolDefinition> - SdkPojo
- Enclosing class:
- ToolDefinition
- 
Method SummaryModifier and TypeMethodDescriptiondescription(String description) The description of the tool.default ToolDefinition.BuilderinputSchema(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.BuilderoutputSchema(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
nameThe 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.
 
- 
descriptionThe 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.
 
- 
inputSchemaThe 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.
 
- 
inputSchemaThe 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.Builderavoiding the need to create one manually viaSchemaDefinition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputSchema(SchemaDefinition).- Parameters:
- inputSchema- a consumer that will call methods on- SchemaDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
outputSchemaThe 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.
 
- 
outputSchemaThe 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.Builderavoiding the need to create one manually viaSchemaDefinition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputSchema(SchemaDefinition).- Parameters:
- outputSchema- a consumer that will call methods on- SchemaDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-