Class ToolReference
java.lang.Object
software.amazon.awssdk.services.bedrockruntime.model.ToolReference
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ToolReference.Builder,ToolReference>
@Generated("software.amazon.awssdk:codegen")
public final class ToolReference
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ToolReference.Builder,ToolReference>
A reference to a tool in the tool configuration. Used with ToolAdditionBlock and
ToolRemovalBlock to identify which tool to add or remove mid-conversation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ToolReference.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the tool.static Class<? extends ToolReference.Builder>final StringThe name of the MCP server that provides the tool.final StringtoString()Returns a string representation of this object.final Stringtype()The type of tool reference.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of tool reference.
- Returns:
- The type of tool reference.
-
name
The name of the tool. Must match the name of a tool declared in the top-level tool configuration.
- Returns:
- The name of the tool. Must match the name of a tool declared in the top-level tool configuration.
-
serverName
The name of the MCP server that provides the tool. Required when referencing an MCP tool.
- Returns:
- The name of the MCP server that provides the tool. Required when referencing an MCP tool.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ToolReference.Builder,ToolReference>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-