Class CodeInterpreterToolCallDelta.CodeInterpreter.Builder
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCallDelta.CodeInterpreter.Builder
A builder for CodeInterpreter.
-
-
Method Summary
-
-
Method Detail
-
input
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder input(String input)
The input to the Code Interpreter tool call.
-
input
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder input(JsonField<String> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputs
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder outputs(List<CodeInterpreterToolCallDelta.CodeInterpreter.Output> outputs)
The outputs from the Code Interpreter tool call. Code Interpreter can output one or more items, including text (
logs
) or images (image
). Each of these are represented by a different object type.
-
outputs
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder outputs(JsonField<List<CodeInterpreterToolCallDelta.CodeInterpreter.Output>> outputs)
Sets Builder.outputs to an arbitrary JSON value.
You should usually call Builder.outputs with a well-typed
List<Output>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOutput
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder addOutput(CodeInterpreterToolCallDelta.CodeInterpreter.Output output)
-
addOutput
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder addOutput(CodeInterpreterLogs logs)
Alias for calling addOutput with
Output.ofLogs(logs)
.
-
addOutput
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder addOutput(CodeInterpreterOutputImage image)
Alias for calling addOutput with
Output.ofImage(image)
.
-
addLogsOutput
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder addLogsOutput(Long index)
Alias for calling addOutput with the following:
CodeInterpreterLogs.builder() .index(index) .build()
-
addImageOutput
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder addImageOutput(Long index)
Alias for calling addOutput with the following:
CodeInterpreterOutputImage.builder() .index(index) .build()
-
additionalProperties
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CodeInterpreterToolCallDelta.CodeInterpreter.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CodeInterpreterToolCallDelta.CodeInterpreter build()
Returns an immutable instance of CodeInterpreter.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-