Class BetaResponseToolChangeMcpToolReference
-
- All Implemented Interfaces:
public final class BetaResponseToolChangeMcpToolReferenceReference to a single MCP tool, by its server and its name on that server, as a
`compaction`block's`tool_changes`entry reports it. Send it back unchanged with the block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseToolChangeMcpToolReference.BuilderA builder for BetaResponseToolChangeMcpToolReference.
-
Method Summary
Modifier and Type Method Description final Stringname()final StringserverName()final BetaToolChangeMcpToolReferencetoParam()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 BetaResponseToolChangeMcpToolReference.BuildertoBuilder()final BetaResponseToolChangeMcpToolReferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolChangeMcpToolReference.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolChangeMcpToolReference. -
-
Method Detail
-
serverName
final String serverName()
-
toParam
final BetaToolChangeMcpToolReference toParam()
-
_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 BetaResponseToolChangeMcpToolReference.Builder toBuilder()
-
validate
final BetaResponseToolChangeMcpToolReference 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 BetaResponseToolChangeMcpToolReference.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolChangeMcpToolReference.
The following fields are required:
.name() .serverName()
-
-
-
-