Interface ToolSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolSpecification.Builder,,ToolSpecification> SdkBuilder<ToolSpecification.Builder,,ToolSpecification> SdkPojo
- Enclosing class:
ToolSpecification
@Mutable
@NotThreadSafe
public static interface ToolSpecification.Builder
extends SdkPojo, CopyableBuilder<ToolSpecification.Builder,ToolSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description of the tool.default ToolSpecification.BuilderinputSchema(Consumer<ToolInputSchema.Builder> inputSchema) The input schema for the tool.inputSchema(ToolInputSchema inputSchema) The input schema for the tool.The name of the tool.Whether to enforce strict JSON schema adherence for the tool inputMethods 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 name of the tool.
- Parameters:
name- The name of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the tool.
- Parameters:
description- The description 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.
- Parameters:
inputSchema- The input schema for 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 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:
-
strict
Whether to enforce strict JSON schema adherence for the tool input
- Parameters:
strict- Whether to enforce strict JSON schema adherence for the tool input- Returns:
- Returns a reference to this object so that method calls can be chained together.
-