Interface ToolSpec.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolSpec.Builder,,ToolSpec> SdkBuilder<ToolSpec.Builder,,ToolSpec> SdkPojo
- Enclosing class:
ToolSpec
@Mutable
@NotThreadSafe
public static interface ToolSpec.Builder
extends SdkPojo, CopyableBuilder<ToolSpec.Builder,ToolSpec>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of what the tool does and how it should be used.default ToolSpec.BuilderinputSchema(Consumer<ToolInputSchema.Builder> inputSchema) The JSON schema that defines the expected input format for the tool.inputSchema(ToolInputSchema inputSchema) The JSON schema that defines the expected input format for the tool.The unique name of the tool that acts will use to invoke it.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The unique name of the tool that acts will use to invoke it.
- Parameters:
name- The unique name of the tool that acts will use to invoke it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of what the tool does and how it should be used.
- Parameters:
description- A description of what the tool does and how it should be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The JSON schema that defines the expected input format for the tool.
- Parameters:
inputSchema- The JSON schema that defines the expected input format for the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSchema
The JSON schema that defines the expected input format for the tool.
This is a convenience method that creates an instance of theToolInputSchema.Builderavoiding the need to create one manually viaToolInputSchema.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputSchema(ToolInputSchema).- Parameters:
inputSchema- a consumer that will call methods onToolInputSchema.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-