Class BetaResponseItem.AdditionalTools.Builder
-
- All Implemented Interfaces:
public final class BetaResponseItem.AdditionalTools.BuilderA builder for AdditionalTools.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseItem.AdditionalTools.Builder id(String id)
The unique ID of the additional tools item.
-
id
final BetaResponseItem.AdditionalTools.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
role
final BetaResponseItem.AdditionalTools.Builder role(BetaResponseItem.AdditionalTools.Role role)
The role that provided the additional tools.
-
role
final BetaResponseItem.AdditionalTools.Builder role(JsonField<BetaResponseItem.AdditionalTools.Role> role)
Sets Builder.role to an arbitrary JSON value.
You should usually call Builder.role with a well-typed Role value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final BetaResponseItem.AdditionalTools.Builder tools(List<BetaTool> tools)
The additional tool definitions made available at this item.
-
tools
final BetaResponseItem.AdditionalTools.Builder tools(JsonField<List<BetaTool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<BetaTool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaTool tool)
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaFunctionTool function)
Alias for calling addTool with
BetaTool.ofFunction(function).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaFileSearchTool fileSearch)
Alias for calling addTool with
BetaTool.ofFileSearch(fileSearch).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaComputerTool computer)
Alias for calling addTool with
BetaTool.ofComputer(computer).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaComputerUsePreviewTool computerUsePreview)
Alias for calling addTool with
BetaTool.ofComputerUsePreview(computerUsePreview).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaWebSearchTool webSearch)
Alias for calling addTool with
BetaTool.ofWebSearch(webSearch).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaTool.Mcp mcp)
Alias for calling addTool with
BetaTool.ofMcp(mcp).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaTool.CodeInterpreter codeInterpreter)
Alias for calling addTool with
BetaTool.ofCodeInterpreter(codeInterpreter).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaTool.ImageGeneration imageGeneration)
Alias for calling addTool with
BetaTool.ofImageGeneration(imageGeneration).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaFunctionShellTool shell)
Alias for calling addTool with
BetaTool.ofShell(shell).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaCustomTool custom)
Alias for calling addTool with
BetaTool.ofCustom(custom).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaNamespaceTool namespace)
Alias for calling addTool with
BetaTool.ofNamespace(namespace).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaToolSearchTool toolSearch)
Alias for calling addTool with
BetaTool.ofToolSearch(toolSearch).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaWebSearchPreviewTool webSearchPreview)
Alias for calling addTool with
BetaTool.ofWebSearchPreview(webSearchPreview).
-
addTool
final BetaResponseItem.AdditionalTools.Builder addTool(BetaApplyPatchTool applyPatch)
Alias for calling addTool with
BetaTool.ofApplyPatch(applyPatch).
-
addFileSearchTool
final BetaResponseItem.AdditionalTools.Builder addFileSearchTool(List<String> vectorStoreIds)
Alias for calling addTool with the following:
BetaFileSearchTool.builder() .vectorStoreIds(vectorStoreIds) .build()
-
addMcpTool
final BetaResponseItem.AdditionalTools.Builder addMcpTool(String serverLabel)
Alias for calling addTool with the following:
BetaTool.Mcp.builder() .serverLabel(serverLabel) .build()
-
addCodeInterpreterTool
final BetaResponseItem.AdditionalTools.Builder addCodeInterpreterTool(BetaTool.CodeInterpreter.Container container)
Alias for calling addTool with the following:
BetaTool.CodeInterpreter.builder() .container(container) .build()
-
addCodeInterpreterTool
final BetaResponseItem.AdditionalTools.Builder addCodeInterpreterTool(String string)
Alias for calling addCodeInterpreterTool with
BetaTool.CodeInterpreter.Container.ofString(string).
-
addCodeInterpreterTool
final BetaResponseItem.AdditionalTools.Builder addCodeInterpreterTool(BetaTool.CodeInterpreter.Container.CodeInterpreterToolAuto codeInterpreterToolAuto)
Alias for calling addCodeInterpreterTool with
BetaTool.CodeInterpreter.Container.ofCodeInterpreterToolAuto(codeInterpreterToolAuto).
-
addToolProgrammaticToolCalling
final BetaResponseItem.AdditionalTools.Builder addToolProgrammaticToolCalling()
Alias for calling addTool with
BetaTool.ofProgrammaticToolCalling().
-
addToolLocalShell
final BetaResponseItem.AdditionalTools.Builder addToolLocalShell()
Alias for calling addTool with
BetaTool.ofLocalShell().
-
addCustomTool
final BetaResponseItem.AdditionalTools.Builder addCustomTool(String name)
Alias for calling addTool with the following:
BetaCustomTool.builder() .name(name) .build()
-
type
final BetaResponseItem.AdditionalTools.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("additional_tools")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseItem.AdditionalTools.Builder agent(BetaResponseItem.AdditionalTools.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseItem.AdditionalTools.Builder agent(JsonField<BetaResponseItem.AdditionalTools.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseItem.AdditionalTools.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseItem.AdditionalTools.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseItem.AdditionalTools.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseItem.AdditionalTools.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseItem.AdditionalTools.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseItem.AdditionalTools build()
Returns an immutable instance of AdditionalTools.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .role() .tools()
-
-
-
-