Class BetaToolChangeMcpToolReference
-
- All Implemented Interfaces:
public final class BetaToolChangeMcpToolReferenceReference to a single MCP tool by its server and remote name; the same
`server_name`/`name`pair`mcp_tool_use`carries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChangeMcpToolReference.BuilderA builder for BetaToolChangeMcpToolReference.
-
Method Summary
Modifier and Type Method Description final Stringname()final StringserverName()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_tool_reference")final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_serverName()Returns the raw JSON value of serverName. final Map<String, JsonValue>_additionalProperties()final BetaToolChangeMcpToolReference.BuildertoBuilder()final BetaToolChangeMcpToolReferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChangeMcpToolReference.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChangeMcpToolReference. -
-
Method Detail
-
serverName
final String serverName()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_tool_reference")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_serverName
final JsonField<String> _serverName()
Returns the raw JSON value of serverName.
Unlike serverName, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolChangeMcpToolReference.Builder toBuilder()
-
validate
final BetaToolChangeMcpToolReference validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaToolChangeMcpToolReference.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChangeMcpToolReference.
The following fields are required:
.name() .serverName()
-
-
-
-