Class BetaResponseToolSearchOutputItem.Builder
-
- All Implemented Interfaces:
public final class BetaResponseToolSearchOutputItem.BuilderA builder for BetaResponseToolSearchOutputItem.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaResponseToolSearchOutputItem.Builder id(String id)
The unique ID of the tool search output item.
-
id
final BetaResponseToolSearchOutputItem.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.
-
callId
final BetaResponseToolSearchOutputItem.Builder callId(String callId)
The unique ID of the tool search call generated by the model.
-
callId
final BetaResponseToolSearchOutputItem.Builder callId(Optional<String> callId)
Alias for calling Builder.callId with
callId.orElse(null).
-
callId
final BetaResponseToolSearchOutputItem.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
execution
final BetaResponseToolSearchOutputItem.Builder execution(BetaResponseToolSearchOutputItem.Execution execution)
Whether tool search was executed by the server or by the client.
-
execution
final BetaResponseToolSearchOutputItem.Builder execution(JsonField<BetaResponseToolSearchOutputItem.Execution> execution)
Sets Builder.execution to an arbitrary JSON value.
You should usually call Builder.execution with a well-typed Execution value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaResponseToolSearchOutputItem.Builder status(BetaResponseToolSearchOutputItem.Status status)
The status of the tool search output item that was recorded.
-
status
final BetaResponseToolSearchOutputItem.Builder status(JsonField<BetaResponseToolSearchOutputItem.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final BetaResponseToolSearchOutputItem.Builder tools(List<BetaTool> tools)
The loaded tool definitions returned by tool search.
-
tools
final BetaResponseToolSearchOutputItem.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 BetaResponseToolSearchOutputItem.Builder addTool(BetaTool tool)
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaFunctionTool function)
Alias for calling addTool with
BetaTool.ofFunction(function).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaFileSearchTool fileSearch)
Alias for calling addTool with
BetaTool.ofFileSearch(fileSearch).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaComputerTool computer)
Alias for calling addTool with
BetaTool.ofComputer(computer).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaComputerUsePreviewTool computerUsePreview)
Alias for calling addTool with
BetaTool.ofComputerUsePreview(computerUsePreview).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaWebSearchTool webSearch)
Alias for calling addTool with
BetaTool.ofWebSearch(webSearch).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaTool.Mcp mcp)
Alias for calling addTool with
BetaTool.ofMcp(mcp).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaTool.CodeInterpreter codeInterpreter)
Alias for calling addTool with
BetaTool.ofCodeInterpreter(codeInterpreter).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaTool.ImageGeneration imageGeneration)
Alias for calling addTool with
BetaTool.ofImageGeneration(imageGeneration).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaFunctionShellTool shell)
Alias for calling addTool with
BetaTool.ofShell(shell).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaCustomTool custom)
Alias for calling addTool with
BetaTool.ofCustom(custom).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaNamespaceTool namespace)
Alias for calling addTool with
BetaTool.ofNamespace(namespace).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaToolSearchTool toolSearch)
Alias for calling addTool with
BetaTool.ofToolSearch(toolSearch).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaWebSearchPreviewTool webSearchPreview)
Alias for calling addTool with
BetaTool.ofWebSearchPreview(webSearchPreview).
-
addTool
final BetaResponseToolSearchOutputItem.Builder addTool(BetaApplyPatchTool applyPatch)
Alias for calling addTool with
BetaTool.ofApplyPatch(applyPatch).
-
addFileSearchTool
final BetaResponseToolSearchOutputItem.Builder addFileSearchTool(List<String> vectorStoreIds)
Alias for calling addTool with the following:
BetaFileSearchTool.builder() .vectorStoreIds(vectorStoreIds) .build()
-
addMcpTool
final BetaResponseToolSearchOutputItem.Builder addMcpTool(String serverLabel)
Alias for calling addTool with the following:
BetaTool.Mcp.builder() .serverLabel(serverLabel) .build()
-
addCodeInterpreterTool
final BetaResponseToolSearchOutputItem.Builder addCodeInterpreterTool(BetaTool.CodeInterpreter.Container container)
Alias for calling addTool with the following:
BetaTool.CodeInterpreter.builder() .container(container) .build()
-
addCodeInterpreterTool
final BetaResponseToolSearchOutputItem.Builder addCodeInterpreterTool(String string)
Alias for calling addCodeInterpreterTool with
BetaTool.CodeInterpreter.Container.ofString(string).
-
addCodeInterpreterTool
final BetaResponseToolSearchOutputItem.Builder addCodeInterpreterTool(BetaTool.CodeInterpreter.Container.CodeInterpreterToolAuto codeInterpreterToolAuto)
Alias for calling addCodeInterpreterTool with
BetaTool.CodeInterpreter.Container.ofCodeInterpreterToolAuto(codeInterpreterToolAuto).
-
addToolProgrammaticToolCalling
final BetaResponseToolSearchOutputItem.Builder addToolProgrammaticToolCalling()
Alias for calling addTool with
BetaTool.ofProgrammaticToolCalling().
-
addToolLocalShell
final BetaResponseToolSearchOutputItem.Builder addToolLocalShell()
Alias for calling addTool with
BetaTool.ofLocalShell().
-
addCustomTool
final BetaResponseToolSearchOutputItem.Builder addCustomTool(String name)
Alias for calling addTool with the following:
BetaCustomTool.builder() .name(name) .build()
-
type
final BetaResponseToolSearchOutputItem.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("tool_search_output")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseToolSearchOutputItem.Builder agent(BetaResponseToolSearchOutputItem.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseToolSearchOutputItem.Builder agent(JsonField<BetaResponseToolSearchOutputItem.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.
-
createdBy
final BetaResponseToolSearchOutputItem.Builder createdBy(String createdBy)
The identifier of the actor that created the item.
-
createdBy
final BetaResponseToolSearchOutputItem.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseToolSearchOutputItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseToolSearchOutputItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseToolSearchOutputItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseToolSearchOutputItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseToolSearchOutputItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseToolSearchOutputItem build()
Returns an immutable instance of BetaResponseToolSearchOutputItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .callId() .execution() .status() .tools()
-
-
-
-