Class ToolCallsStepDetails.Builder
-
- All Implemented Interfaces:
public final class ToolCallsStepDetails.BuilderA builder for ToolCallsStepDetails.
-
-
Method Summary
-
-
Method Detail
-
toolCalls
final ToolCallsStepDetails.Builder toolCalls(List<ToolCall> 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 ToolCallsStepDetails.Builder toolCalls(JsonField<List<ToolCall>> toolCalls)
Sets Builder.toolCalls to an arbitrary JSON value.
You should usually call Builder.toolCalls with a well-typed
List<ToolCall>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addToolCall
final ToolCallsStepDetails.Builder addToolCall(ToolCall toolCall)
-
addToolCall
final ToolCallsStepDetails.Builder addToolCall(CodeInterpreterToolCall codeInterpreter)
Alias for calling addToolCall with
ToolCall.ofCodeInterpreter(codeInterpreter).
-
addToolCall
final ToolCallsStepDetails.Builder addToolCall(FileSearchToolCall fileSearch)
Alias for calling addToolCall with
ToolCall.ofFileSearch(fileSearch).
-
addToolCall
final ToolCallsStepDetails.Builder addToolCall(FunctionToolCall function)
Alias for calling addToolCall with
ToolCall.ofFunction(function).
-
type
final ToolCallsStepDetails.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.
-
additionalProperties
final ToolCallsStepDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolCallsStepDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolCallsStepDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolCallsStepDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolCallsStepDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolCallsStepDetails build()
Returns an immutable instance of ToolCallsStepDetails.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.toolCalls()
-
-
-
-