Class BetaResponseToolChangeMcpToolsetReference
-
- All Implemented Interfaces:
public final class BetaResponseToolChangeMcpToolsetReferenceReference to every tool in the named MCP server's toolset, 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 classBetaResponseToolChangeMcpToolsetReference.BuilderA builder for BetaResponseToolChangeMcpToolsetReference.
-
Method Summary
Modifier and Type Method Description final StringserverName()final BetaToolChangeMcpToolsetReferencetoParam()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("mcp_toolset_reference")final JsonField<String>_serverName()Returns the raw JSON value of serverName. final Map<String, JsonValue>_additionalProperties()final BetaResponseToolChangeMcpToolsetReference.BuildertoBuilder()final BetaResponseToolChangeMcpToolsetReferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolChangeMcpToolsetReference.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolChangeMcpToolsetReference. final static BetaResponseToolChangeMcpToolsetReferenceof(String serverName)Returns an immutable instance of BetaResponseToolChangeMcpToolsetReference with the required serverName set to the given value. -
-
Method Detail
-
serverName
final String serverName()
-
toParam
final BetaToolChangeMcpToolsetReference toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("mcp_toolset_reference")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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 BetaResponseToolChangeMcpToolsetReference.Builder toBuilder()
-
validate
final BetaResponseToolChangeMcpToolsetReference 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 BetaResponseToolChangeMcpToolsetReference.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolChangeMcpToolsetReference.
The following fields are required:
.serverName()
-
of
final static BetaResponseToolChangeMcpToolsetReference of(String serverName)
Returns an immutable instance of BetaResponseToolChangeMcpToolsetReference with the required serverName set to the given value.
-
-
-
-