Interface ToolConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolConfiguration.Builder,,ToolConfiguration> SdkBuilder<ToolConfiguration.Builder,,ToolConfiguration> SdkPojo
- Enclosing class:
ToolConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault ToolConfiguration.Builderannotations(Consumer<Annotation.Builder> annotations) Annotations for the tool configuration.annotations(Annotation annotations) Annotations for the tool configuration.description(String description) The description of the tool configuration.inputSchema(Document inputSchema) The input schema for the tool configuration.default ToolConfiguration.Builderinstruction(Consumer<ToolInstruction.Builder> instruction) Instructions for using the tool.instruction(ToolInstruction instruction) Instructions for using the tool.outputFilters(Collection<ToolOutputFilter> outputFilters) Output filters applies to the tool result.outputFilters(Consumer<ToolOutputFilter.Builder>... outputFilters) Output filters applies to the tool result.outputFilters(ToolOutputFilter... outputFilters) Output filters applies to the tool result.outputSchema(Document outputSchema) The output schema for the tool configuration.overrideInputValues(Collection<ToolOverrideInputValue> overrideInputValues) Override input values for the tool configuration.overrideInputValues(Consumer<ToolOverrideInputValue.Builder>... overrideInputValues) Override input values for the tool configuration.overrideInputValues(ToolOverrideInputValue... overrideInputValues) Override input values for the tool configuration.The title of the tool configuration.The identifier of the tool, for example toolName from Model Context Provider server.The name of the tool.The type of the tool.The type of the tool.default ToolConfiguration.BuilderuserInteractionConfiguration(Consumer<UserInteractionConfiguration.Builder> userInteractionConfiguration) Configuration for user interaction with the tool.userInteractionConfiguration(UserInteractionConfiguration userInteractionConfiguration) Configuration for user interaction with the tool.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
-
toolName
The name of the tool.
- Parameters:
toolName- The name of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolType
The type of the tool.
- Parameters:
toolType- The type of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toolType
The type of the tool.
- Parameters:
toolType- The type of the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
The title of the tool configuration.
- Parameters:
title- The title of the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolId
The identifier of the tool, for example toolName from Model Context Provider server.
- Parameters:
toolId- The identifier of the tool, for example toolName from Model Context Provider server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the tool configuration.
- Parameters:
description- The description of the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
Instructions for using the tool.
- Parameters:
instruction- Instructions for using the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instruction
Instructions for using the tool.
This is a convenience method that creates an instance of theToolInstruction.Builderavoiding the need to create one manually viaToolInstruction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstruction(ToolInstruction).- Parameters:
instruction- a consumer that will call methods onToolInstruction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideInputValues
ToolConfiguration.Builder overrideInputValues(Collection<ToolOverrideInputValue> overrideInputValues) Override input values for the tool configuration.
- Parameters:
overrideInputValues- Override input values for the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideInputValues
Override input values for the tool configuration.
- Parameters:
overrideInputValues- Override input values for the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideInputValues
ToolConfiguration.Builder overrideInputValues(Consumer<ToolOverrideInputValue.Builder>... overrideInputValues) Override input values for the tool configuration.
This is a convenience method that creates an instance of theToolOverrideInputValue.Builderavoiding the need to create one manually viaToolOverrideInputValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooverrideInputValues(List<ToolOverrideInputValue>).- Parameters:
overrideInputValues- a consumer that will call methods onToolOverrideInputValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputFilters
Output filters applies to the tool result.
- Parameters:
outputFilters- Output filters applies to the tool result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFilters
Output filters applies to the tool result.
- Parameters:
outputFilters- Output filters applies to the tool result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFilters
Output filters applies to the tool result.
This is a convenience method that creates an instance of theToolOutputFilter.Builderavoiding the need to create one manually viaToolOutputFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputFilters(List<ToolOutputFilter>).- Parameters:
outputFilters- a consumer that will call methods onToolOutputFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputSchema
The input schema for the tool configuration.
- Parameters:
inputSchema- The input schema for the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputSchema
The output schema for the tool configuration.
- Parameters:
outputSchema- The output schema for the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
annotations
Annotations for the tool configuration.
- Parameters:
annotations- Annotations for the tool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
annotations
Annotations for the tool configuration.
This is a convenience method that creates an instance of theAnnotation.Builderavoiding the need to create one manually viaAnnotation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toannotations(Annotation).- Parameters:
annotations- a consumer that will call methods onAnnotation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userInteractionConfiguration
ToolConfiguration.Builder userInteractionConfiguration(UserInteractionConfiguration userInteractionConfiguration) Configuration for user interaction with the tool.
- Parameters:
userInteractionConfiguration- Configuration for user interaction with the tool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userInteractionConfiguration
default ToolConfiguration.Builder userInteractionConfiguration(Consumer<UserInteractionConfiguration.Builder> userInteractionConfiguration) Configuration for user interaction with the tool.
This is a convenience method that creates an instance of theUserInteractionConfiguration.Builderavoiding the need to create one manually viaUserInteractionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserInteractionConfiguration(UserInteractionConfiguration).- Parameters:
userInteractionConfiguration- a consumer that will call methods onUserInteractionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-