Class ToolCallDeltaObject.Builder
-
- All Implemented Interfaces:
public final class ToolCallDeltaObject.BuilderA builder for ToolCallDeltaObject.
-
-
Method Summary
-
-
Method Detail
-
type
final ToolCallDeltaObject.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_calls")This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolCalls
final ToolCallDeltaObject.Builder toolCalls(List<ToolCallDelta> toolCalls)
An array of tool calls the run step was involved in. These can be associated with one of three types of tools:
code_interpreter,file_search, orfunction.
-
toolCalls
final ToolCallDeltaObject.Builder toolCalls(JsonField<List<ToolCallDelta>> toolCalls)
Sets Builder.toolCalls to an arbitrary JSON value.
You should usually call Builder.toolCalls with a well-typed
List<ToolCallDelta>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addToolCall
final ToolCallDeltaObject.Builder addToolCall(ToolCallDelta toolCall)
Adds a single ToolCallDelta to toolCalls.
-
addToolCall
final ToolCallDeltaObject.Builder addToolCall(CodeInterpreterToolCallDelta codeInterpreter)
Alias for calling addToolCall with
ToolCallDelta.ofCodeInterpreter(codeInterpreter).
-
addToolCall
final ToolCallDeltaObject.Builder addToolCall(FileSearchToolCallDelta fileSearch)
Alias for calling addToolCall with
ToolCallDelta.ofFileSearch(fileSearch).
-
addToolCall
final ToolCallDeltaObject.Builder addToolCall(FunctionToolCallDelta function)
Alias for calling addToolCall with
ToolCallDelta.ofFunction(function).
-
addCodeInterpreterToolCall
final ToolCallDeltaObject.Builder addCodeInterpreterToolCall(Long index)
Alias for calling addToolCall with the following:
CodeInterpreterToolCallDelta.builder() .index(index) .build()
-
addFunctionToolCall
final ToolCallDeltaObject.Builder addFunctionToolCall(Long index)
Alias for calling addToolCall with the following:
FunctionToolCallDelta.builder() .index(index) .build()
-
additionalProperties
final ToolCallDeltaObject.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolCallDeltaObject.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolCallDeltaObject.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolCallDeltaObject.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolCallDeltaObject.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolCallDeltaObject build()
Returns an immutable instance of ToolCallDeltaObject.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-