Class BetaToolChangeToolDefinition
-
- All Implemented Interfaces:
public final class BetaToolChangeToolDefinitionA tool defined by value, as a
compactionblock'stool_changesentry reports it:definitionis the tool's definition as it was sent, in the form of atoolsentry, withoutcache_control. Send it back unchanged with the block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChangeToolDefinition.BuilderA builder for BetaToolChangeToolDefinition.
-
Method Summary
Modifier and Type Method Description final BetaResponseToolUniondefinition()final BetaToolChangeToolDefinitionParamtoParam()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<BetaResponseToolUnion>_definition()Returns the raw JSON value of definition. final Map<String, JsonValue>_additionalProperties()final BetaToolChangeToolDefinition.BuildertoBuilder()final BetaToolChangeToolDefinitionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChangeToolDefinition.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChangeToolDefinition. final static BetaToolChangeToolDefinitionof(BetaResponseToolUnion definition)Returns an immutable instance of BetaToolChangeToolDefinition with the required definition set to the given value. final static BetaToolChangeToolDefinitionof(BetaResponseTool betaResponseTool)Alias for calling of with BetaResponseToolUnion.ofBetaResponseTool(betaResponseTool).final static BetaToolChangeToolDefinitionof(BetaToolBash20241022 toolBash20241022)Alias for calling of with BetaResponseToolUnion.ofToolBash20241022(toolBash20241022).final static BetaToolChangeToolDefinitionof(BetaToolBash20250124 toolBash20250124)Alias for calling of with BetaResponseToolUnion.ofToolBash20250124(toolBash20250124).final static BetaToolChangeToolDefinitionof(BetaCodeExecutionTool20250522 codeExecutionTool20250522)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).final static BetaToolChangeToolDefinitionof(BetaCodeExecutionTool20250825 codeExecutionTool20250825)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).final static BetaToolChangeToolDefinitionof(BetaCodeExecutionTool20260120 codeExecutionTool20260120)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).final static BetaToolChangeToolDefinitionof(BetaCodeExecutionTool20260521 codeExecutionTool20260521)Alias for calling of with BetaResponseToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).final static BetaToolChangeToolDefinitionof(BetaBrowserToolset20260801 browserToolset20260801)Alias for calling of with BetaResponseToolUnion.ofBrowserToolset20260801(browserToolset20260801).final static BetaToolChangeToolDefinitionof(BetaToolComputerUse20241022 toolComputerUse20241022)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20241022(toolComputerUse20241022).final static BetaToolChangeToolDefinitionof(BetaMemoryTool20250818 memoryTool20250818)Alias for calling of with BetaResponseToolUnion.ofMemoryTool20250818(memoryTool20250818).final static BetaToolChangeToolDefinitionof(BetaToolComputerUse20250124 toolComputerUse20250124)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20250124(toolComputerUse20250124).final static BetaToolChangeToolDefinitionof(BetaToolTextEditor20241022 toolTextEditor20241022)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20241022(toolTextEditor20241022).final static BetaToolChangeToolDefinitionof(BetaToolComputerUse20251124 toolComputerUse20251124)Alias for calling of with BetaResponseToolUnion.ofToolComputerUse20251124(toolComputerUse20251124).final static BetaToolChangeToolDefinitionof(BetaComputerToolset20260801 computerToolset20260801)Alias for calling of with BetaResponseToolUnion.ofComputerToolset20260801(computerToolset20260801).final static BetaToolChangeToolDefinitionof(BetaToolTextEditor20250124 toolTextEditor20250124)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250124(toolTextEditor20250124).final static BetaToolChangeToolDefinitionof(BetaToolTextEditor20250429 toolTextEditor20250429)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250429(toolTextEditor20250429).final static BetaToolChangeToolDefinitionof(BetaToolTextEditor20250728 toolTextEditor20250728)Alias for calling of with BetaResponseToolUnion.ofToolTextEditor20250728(toolTextEditor20250728).final static BetaToolChangeToolDefinitionof(BetaWebSearchTool20250305 webSearchTool20250305)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20250305(webSearchTool20250305).final static BetaToolChangeToolDefinitionof(BetaWebFetchTool20250910 webFetchTool20250910)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20250910(webFetchTool20250910).final static BetaToolChangeToolDefinitionof(BetaWebSearchTool20260209 webSearchTool20260209)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20260209(webSearchTool20260209).final static BetaToolChangeToolDefinitionof(BetaWebFetchTool20260209 webFetchTool20260209)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260209(webFetchTool20260209).final static BetaToolChangeToolDefinitionof(BetaWebFetchTool20260309 webFetchTool20260309)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260309(webFetchTool20260309).final static BetaToolChangeToolDefinitionof(BetaWebSearchTool20260318 webSearchTool20260318)Alias for calling of with BetaResponseToolUnion.ofWebSearchTool20260318(webSearchTool20260318).final static BetaToolChangeToolDefinitionof(BetaWebFetchTool20260318 webFetchTool20260318)Alias for calling of with BetaResponseToolUnion.ofWebFetchTool20260318(webFetchTool20260318).final static BetaToolChangeToolDefinitionof(BetaAdvisorTool20260301 advisorTool20260301)Alias for calling of with BetaResponseToolUnion.ofAdvisorTool20260301(advisorTool20260301).final static BetaToolChangeToolDefinitionof(BetaToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)Alias for calling of with BetaResponseToolUnion.ofToolSearchToolBm25_20251119(toolSearchToolBm25_20251119).final static BetaToolChangeToolDefinitionof(BetaToolSearchToolRegex20251119 toolSearchToolRegex20251119)Alias for calling of with BetaResponseToolUnion.ofToolSearchToolRegex20251119(toolSearchToolRegex20251119).final static BetaToolChangeToolDefinitionof(BetaMcpToolset mcpToolset)Alias for calling of with BetaResponseToolUnion.ofMcpToolset(mcpToolset).-
-
Method Detail
-
definition
final BetaResponseToolUnion definition()
-
toParam
final BetaToolChangeToolDefinitionParam toParam()
-
_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<BetaResponseToolUnion> _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 BetaToolChangeToolDefinition.Builder toBuilder()
-
validate
final BetaToolChangeToolDefinition 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 BetaToolChangeToolDefinition.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChangeToolDefinition.
The following fields are required:
.definition()
-
of
final static BetaToolChangeToolDefinition of(BetaResponseToolUnion definition)
Returns an immutable instance of BetaToolChangeToolDefinition with the required definition set to the given value.
-
of
final static BetaToolChangeToolDefinition of(BetaResponseTool betaResponseTool)
Alias for calling of with
BetaResponseToolUnion.ofBetaResponseTool(betaResponseTool).
-
of
final static BetaToolChangeToolDefinition of(BetaToolBash20241022 toolBash20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolBash20241022(toolBash20241022).
-
of
final static BetaToolChangeToolDefinition of(BetaToolBash20250124 toolBash20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolBash20250124(toolBash20250124).
-
of
final static BetaToolChangeToolDefinition of(BetaCodeExecutionTool20250522 codeExecutionTool20250522)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20250522(codeExecutionTool20250522).
-
of
final static BetaToolChangeToolDefinition of(BetaCodeExecutionTool20250825 codeExecutionTool20250825)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20250825(codeExecutionTool20250825).
-
of
final static BetaToolChangeToolDefinition of(BetaCodeExecutionTool20260120 codeExecutionTool20260120)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20260120(codeExecutionTool20260120).
-
of
final static BetaToolChangeToolDefinition of(BetaCodeExecutionTool20260521 codeExecutionTool20260521)
Alias for calling of with
BetaResponseToolUnion.ofCodeExecutionTool20260521(codeExecutionTool20260521).
-
of
final static BetaToolChangeToolDefinition of(BetaBrowserToolset20260801 browserToolset20260801)
Alias for calling of with
BetaResponseToolUnion.ofBrowserToolset20260801(browserToolset20260801).
-
of
final static BetaToolChangeToolDefinition of(BetaToolComputerUse20241022 toolComputerUse20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20241022(toolComputerUse20241022).
-
of
final static BetaToolChangeToolDefinition of(BetaMemoryTool20250818 memoryTool20250818)
Alias for calling of with
BetaResponseToolUnion.ofMemoryTool20250818(memoryTool20250818).
-
of
final static BetaToolChangeToolDefinition of(BetaToolComputerUse20250124 toolComputerUse20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20250124(toolComputerUse20250124).
-
of
final static BetaToolChangeToolDefinition of(BetaToolTextEditor20241022 toolTextEditor20241022)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20241022(toolTextEditor20241022).
-
of
final static BetaToolChangeToolDefinition of(BetaToolComputerUse20251124 toolComputerUse20251124)
Alias for calling of with
BetaResponseToolUnion.ofToolComputerUse20251124(toolComputerUse20251124).
-
of
final static BetaToolChangeToolDefinition of(BetaComputerToolset20260801 computerToolset20260801)
Alias for calling of with
BetaResponseToolUnion.ofComputerToolset20260801(computerToolset20260801).
-
of
final static BetaToolChangeToolDefinition of(BetaToolTextEditor20250124 toolTextEditor20250124)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250124(toolTextEditor20250124).
-
of
final static BetaToolChangeToolDefinition of(BetaToolTextEditor20250429 toolTextEditor20250429)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250429(toolTextEditor20250429).
-
of
final static BetaToolChangeToolDefinition of(BetaToolTextEditor20250728 toolTextEditor20250728)
Alias for calling of with
BetaResponseToolUnion.ofToolTextEditor20250728(toolTextEditor20250728).
-
of
final static BetaToolChangeToolDefinition of(BetaWebSearchTool20250305 webSearchTool20250305)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20250305(webSearchTool20250305).
-
of
final static BetaToolChangeToolDefinition of(BetaWebFetchTool20250910 webFetchTool20250910)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20250910(webFetchTool20250910).
-
of
final static BetaToolChangeToolDefinition of(BetaWebSearchTool20260209 webSearchTool20260209)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20260209(webSearchTool20260209).
-
of
final static BetaToolChangeToolDefinition of(BetaWebFetchTool20260209 webFetchTool20260209)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260209(webFetchTool20260209).
-
of
final static BetaToolChangeToolDefinition of(BetaWebFetchTool20260309 webFetchTool20260309)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260309(webFetchTool20260309).
-
of
final static BetaToolChangeToolDefinition of(BetaWebSearchTool20260318 webSearchTool20260318)
Alias for calling of with
BetaResponseToolUnion.ofWebSearchTool20260318(webSearchTool20260318).
-
of
final static BetaToolChangeToolDefinition of(BetaWebFetchTool20260318 webFetchTool20260318)
Alias for calling of with
BetaResponseToolUnion.ofWebFetchTool20260318(webFetchTool20260318).
-
of
final static BetaToolChangeToolDefinition of(BetaAdvisorTool20260301 advisorTool20260301)
Alias for calling of with
BetaResponseToolUnion.ofAdvisorTool20260301(advisorTool20260301).
-
of
final static BetaToolChangeToolDefinition of(BetaToolSearchToolBm25_20251119 toolSearchToolBm25_20251119)
Alias for calling of with
BetaResponseToolUnion.ofToolSearchToolBm25_20251119(toolSearchToolBm25_20251119).
-
of
final static BetaToolChangeToolDefinition of(BetaToolSearchToolRegex20251119 toolSearchToolRegex20251119)
Alias for calling of with
BetaResponseToolUnion.ofToolSearchToolRegex20251119(toolSearchToolRegex20251119).
-
of
final static BetaToolChangeToolDefinition of(BetaMcpToolset mcpToolset)
Alias for calling of with
BetaResponseToolUnion.ofMcpToolset(mcpToolset).
-
-
-
-