Class BetaResponseToolRemovalBlock
-
- All Implemented Interfaces:
public final class BetaResponseToolRemovalBlockAn entry of a
compactionblock'stool_changes: a tool of the request'stools(or an MCP tool or toolset) that the compacted range withdrew. Send it back unchanged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseToolRemovalBlock.BuilderA builder for BetaResponseToolRemovalBlock.
public final classBetaResponseToolRemovalBlock.ToolA reference to the withdrawn
toolsentry, MCP tool or MCP toolset.
-
Method Summary
Modifier and Type Method Description final BetaResponseToolRemovalBlock.Tooltool()A reference to the withdrawn toolsentry, MCP tool or MCP toolset.final BetaRequestToolRemovalBlocktoParam()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_removal")final JsonField<BetaResponseToolRemovalBlock.Tool>_tool()Returns the raw JSON value of tool. final Map<String, JsonValue>_additionalProperties()final BetaResponseToolRemovalBlock.BuildertoBuilder()final BetaResponseToolRemovalBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolRemovalBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolRemovalBlock. final static BetaResponseToolRemovalBlockof(BetaResponseToolRemovalBlock.Tool tool)Returns an immutable instance of BetaResponseToolRemovalBlock with the required tool set to the given value. final static BetaResponseToolRemovalBlockof(BetaResponseToolChangeToolReference reference)Alias for calling of with Tool.ofReference(reference).final static BetaResponseToolRemovalBlockof(BetaResponseToolChangeMcpToolReference mcpToolReference)Alias for calling of with Tool.ofMcpToolReference(mcpToolReference).final static BetaResponseToolRemovalBlockof(BetaResponseToolChangeMcpToolsetReference mcpToolsetReference)Alias for calling of with Tool.ofMcpToolsetReference(mcpToolsetReference).-
-
Method Detail
-
tool
final BetaResponseToolRemovalBlock.Tool tool()
A reference to the withdrawn
toolsentry, MCP tool or MCP toolset.
-
toParam
final BetaRequestToolRemovalBlock toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_removal")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_tool
final JsonField<BetaResponseToolRemovalBlock.Tool> _tool()
Returns the raw JSON value of tool.
Unlike tool, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseToolRemovalBlock.Builder toBuilder()
-
validate
final BetaResponseToolRemovalBlock 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 BetaResponseToolRemovalBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolRemovalBlock.
The following fields are required:
.tool()
-
of
final static BetaResponseToolRemovalBlock of(BetaResponseToolRemovalBlock.Tool tool)
Returns an immutable instance of BetaResponseToolRemovalBlock with the required tool set to the given value.
-
of
final static BetaResponseToolRemovalBlock of(BetaResponseToolChangeToolReference reference)
Alias for calling of with
Tool.ofReference(reference).
-
of
final static BetaResponseToolRemovalBlock of(BetaResponseToolChangeMcpToolReference mcpToolReference)
Alias for calling of with
Tool.ofMcpToolReference(mcpToolReference).
-
of
final static BetaResponseToolRemovalBlock of(BetaResponseToolChangeMcpToolsetReference mcpToolsetReference)
Alias for calling of with
Tool.ofMcpToolsetReference(mcpToolsetReference).
-
-
-
-