Class BetaToolChangeToolDefinitionParam
-
- All Implemented Interfaces:
public final class BetaToolChangeToolDefinitionParamA tool defined by value:
definitionis atoolsentry (any kindtoolsaccepts, an MCP toolset included). Anmcp_toolsetgiven here also requires themcp-client-2026-09-15beta.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChangeToolDefinitionParam.BuilderA builder for BetaToolChangeToolDefinitionParam.
-
Method Summary
Modifier and Type Method Description final BetaToolUniondefinition()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_definition")final JsonField<BetaToolUnion>_definition()Returns the raw JSON value of definition. final Map<String, JsonValue>_additionalProperties()final BetaToolChangeToolDefinitionParam.BuildertoBuilder()final BetaToolChangeToolDefinitionParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChangeToolDefinitionParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChangeToolDefinitionParam. final static BetaToolChangeToolDefinitionParamof(BetaToolUnion definition)Returns an immutable instance of BetaToolChangeToolDefinitionParam with the required definition set to the given value. final static BetaToolChangeToolDefinitionParamof(BetaResponseToolUnion definition)Alias for calling of with definition.toParam().final static BetaToolChangeToolDefinitionParamof(BetaResponseTool betaResponseTool)Alias for calling of with BetaResponseToolUnion.ofBetaResponseTool(betaResponseTool).final static BetaToolChangeToolDefinitionParamof(BetaToolBash20241022 toolBash20241022)Alias for calling of with BetaResponseToolUnion.ofToolBash20241022(toolBash20241022).final static BetaToolChangeToolDefinitionParamof(BetaToolBash20250124 toolBash20250124)Alias for calling of with BetaResponseToolUnion.ofToolBash20250124(toolBash20250124).final static BetaToolChangeToolDefinitionParamof(BetaCodeExecutionTool20250522 codeExecutionTool20250522)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).final static BetaToolChangeToolDefinitionParamof(BetaCodeExecutionTool20250825 codeExecutionTool20250825)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).final static BetaToolChangeToolDefinitionParamof(BetaCodeExecutionTool20260120 codeExecutionTool20260120)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).final static BetaToolChangeToolDefinitionParamof(BetaCodeExecutionTool20260521 codeExecutionTool20260521)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).final static BetaToolChangeToolDefinitionParamof(BetaBrowserToolset20260801 browserToolset20260801)Alias for calling of with BetaResponseToolUnion.ofBrowserToolset20260801(browserToolset20260801).final static BetaToolChangeToolDefinitionParamof(BetaToolComputerUse20241022 toolComputerUse20241022)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20241022(toolComputerUse20241022).final static BetaToolChangeToolDefinitionParamof(BetaMemoryTool20250818 memoryTool20250818)Alias for calling of with BetaResponseToolUnion.ofMemoryTool20250818(memoryTool20250818).final static BetaToolChangeToolDefinitionParamof(BetaToolComputerUse20250124 toolComputerUse20250124)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20250124(toolComputerUse20250124).final static BetaToolChangeToolDefinitionParamof(BetaToolTextEditor20241022 toolTextEditor20241022)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20241022(toolTextEditor20241022).final static BetaToolChangeToolDefinitionParamof(BetaToolComputerUse20251124 toolComputerUse20251124)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20251124(toolComputerUse20251124).final static BetaToolChangeToolDefinitionParamof(BetaComputerToolset20260801 computerToolset20260801)Alias for calling of with BetaResponseToolUnion.ofComputerToolset20260801(computerToolset20260801).final static BetaToolChangeToolDefinitionParamof(BetaToolTextEditor20250124 toolTextEditor20250124)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250124(toolTextEditor20250124).final static BetaToolChangeToolDefinitionParamof(BetaToolTextEditor20250429 toolTextEditor20250429)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250429(toolTextEditor20250429).final static BetaToolChangeToolDefinitionParamof(BetaToolTextEditor20250728 toolTextEditor20250728)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250728(toolTextEditor20250728).final static BetaToolChangeToolDefinitionParamof(BetaWebSearchTool20250305 webSearchTool20250305)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20250305(webSearchTool20250305).final static BetaToolChangeToolDefinitionParamof(BetaWebFetchTool20250910 webFetchTool20250910)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20250910(webFetchTool20250910).final static BetaToolChangeToolDefinitionParamof(BetaWebSearchTool20260209 webSearchTool20260209)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20260209(webSearchTool20260209).final static BetaToolChangeToolDefinitionParamof(BetaWebFetchTool20260209 webFetchTool20260209)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260209(webFetchTool20260209).final static BetaToolChangeToolDefinitionParamof(BetaWebFetchTool20260309 webFetchTool20260309)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260309(webFetchTool20260309).final static BetaToolChangeToolDefinitionParamof(BetaWebSearchTool20260318 webSearchTool20260318)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20260318(webSearchTool20260318).final static BetaToolChangeToolDefinitionParamof(BetaWebFetchTool20260318 webFetchTool20260318)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260318(webFetchTool20260318).final static BetaToolChangeToolDefinitionParamof(BetaAdvisorTool20260301 advisorTool20260301)Alias for calling of with BetaResponseToolUnion.ofAdvisorTool20260301(advisorTool20260301).final static BetaToolChangeToolDefinitionParamof(BetaToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)Alias for calling of with BetaResponseToolUnion.ofToolSearchToolBm25_20251119(toolSearchToolBm25_20251119).final static BetaToolChangeToolDefinitionParamof(BetaToolSearchToolRegex20251119 toolSearchToolRegex20251119)Alias for calling of with BetaResponseToolUnion.ofToolSearchToolRegex20251119(toolSearchToolRegex20251119).final static BetaToolChangeToolDefinitionParamof(BetaMcpToolset mcpToolset)Alias for calling of with BetaResponseToolUnion.ofMcpToolset(mcpToolset).final static BetaToolChangeToolDefinitionParamof(BetaTool betaTool)Alias for calling of with BetaToolUnion.ofBetaTool(betaTool).-
-
Method Detail
-
definition
final BetaToolUnion definition()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_definition")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_definition
final JsonField<BetaToolUnion> _definition()
Returns the raw JSON value of definition.
Unlike definition, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaToolChangeToolDefinitionParam.Builder toBuilder()
-
validate
final BetaToolChangeToolDefinitionParam 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 BetaToolChangeToolDefinitionParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChangeToolDefinitionParam.
The following fields are required:
.definition()
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolUnion definition)
Returns an immutable instance of BetaToolChangeToolDefinitionParam with the required definition set to the given value.
-
of
final static BetaToolChangeToolDefinitionParam of(BetaResponseToolUnion definition)
Alias for calling of with
definition.toParam().
-
of
final static BetaToolChangeToolDefinitionParam of(BetaResponseTool betaResponseTool)
Alias for calling of with
BetaResponseToolUnion.ofBetaResponseTool(betaResponseTool).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolBash20241022 toolBash20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolBash20241022(toolBash20241022).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolBash20250124 toolBash20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolBash20250124(toolBash20250124).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaCodeExecutionTool20250522 codeExecutionTool20250522)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaCodeExecutionTool20250825 codeExecutionTool20250825)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaCodeExecutionTool20260120 codeExecutionTool20260120)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaCodeExecutionTool20260521 codeExecutionTool20260521)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaBrowserToolset20260801 browserToolset20260801)
Alias for calling of with
BetaResponseToolUnion.ofBrowserToolset20260801(browserToolset20260801).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolComputerUse20241022 toolComputerUse20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20241022(toolComputerUse20241022).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaMemoryTool20250818 memoryTool20250818)
Alias for calling of with
BetaResponseToolUnion.ofMemoryTool20250818(memoryTool20250818).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolComputerUse20250124 toolComputerUse20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20250124(toolComputerUse20250124).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolTextEditor20241022 toolTextEditor20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20241022(toolTextEditor20241022).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolComputerUse20251124 toolComputerUse20251124)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20251124(toolComputerUse20251124).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaComputerToolset20260801 computerToolset20260801)
Alias for calling of with
BetaResponseToolUnion.ofComputerToolset20260801(computerToolset20260801).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolTextEditor20250124 toolTextEditor20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250124(toolTextEditor20250124).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolTextEditor20250429 toolTextEditor20250429)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250429(toolTextEditor20250429).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolTextEditor20250728 toolTextEditor20250728)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250728(toolTextEditor20250728).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebSearchTool20250305 webSearchTool20250305)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20250305(webSearchTool20250305).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebFetchTool20250910 webFetchTool20250910)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20250910(webFetchTool20250910).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebSearchTool20260209 webSearchTool20260209)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20260209(webSearchTool20260209).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebFetchTool20260209 webFetchTool20260209)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260209(webFetchTool20260209).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebFetchTool20260309 webFetchTool20260309)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260309(webFetchTool20260309).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebSearchTool20260318 webSearchTool20260318)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20260318(webSearchTool20260318).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaWebFetchTool20260318 webFetchTool20260318)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260318(webFetchTool20260318).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaAdvisorTool20260301 advisorTool20260301)
Alias for calling of with
BetaResponseToolUnion.ofAdvisorTool20260301(advisorTool20260301).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)
Alias for calling of with
BetaResponseToolUnion.ofToolSearchToolBm25_20251119(toolSearchToolBm25_20251119).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaToolSearchToolRegex20251119 toolSearchToolRegex20251119)
Alias for calling of with
BetaResponseToolUnion.ofToolSearchToolRegex20251119(toolSearchToolRegex20251119).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaMcpToolset mcpToolset)
Alias for calling of with
BetaResponseToolUnion.ofMcpToolset(mcpToolset).
-
of
final static BetaToolChangeToolDefinitionParam of(BetaTool betaTool)
Alias for calling of with
BetaToolUnion.ofBetaTool(betaTool).
-
-
-
-