Class CodeInterpreterToolCall.CodeInterpreter.Builder
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCall.CodeInterpreter.Builder
A builder for CodeInterpreter.
-
-
Method Summary
-
-
Method Detail
-
input
final CodeInterpreterToolCall.CodeInterpreter.Builder input(String input)
The input to the Code Interpreter tool call.
-
input
final CodeInterpreterToolCall.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 CodeInterpreterToolCall.CodeInterpreter.Builder outputs(List<CodeInterpreterToolCall.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 CodeInterpreterToolCall.CodeInterpreter.Builder outputs(JsonField<List<CodeInterpreterToolCall.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 CodeInterpreterToolCall.CodeInterpreter.Builder addOutput(CodeInterpreterToolCall.CodeInterpreter.Output output)
-
addOutput
final CodeInterpreterToolCall.CodeInterpreter.Builder addOutput(CodeInterpreterToolCall.CodeInterpreter.Output.LogsOutput logs)
Alias for calling addOutput with
Output.ofLogs(logs)
.
-
addOutput
final CodeInterpreterToolCall.CodeInterpreter.Builder addOutput(CodeInterpreterToolCall.CodeInterpreter.Output.ImageOutput image)
Alias for calling addOutput with
Output.ofImage(image)
.
-
addLogsOutput
final CodeInterpreterToolCall.CodeInterpreter.Builder addLogsOutput(String logs)
Alias for calling addOutput with the following:
Output.LogsOutput.builder() .logs(logs) .build()
-
addImageOutput
final CodeInterpreterToolCall.CodeInterpreter.Builder addImageOutput(CodeInterpreterToolCall.CodeInterpreter.Output.ImageOutput.Image image)
Alias for calling addOutput with the following:
Output.ImageOutput.builder() .image(image) .build()
-
additionalProperties
final CodeInterpreterToolCall.CodeInterpreter.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CodeInterpreterToolCall.CodeInterpreter.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CodeInterpreterToolCall.CodeInterpreter.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CodeInterpreterToolCall.CodeInterpreter.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CodeInterpreterToolCall.CodeInterpreter.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CodeInterpreterToolCall.CodeInterpreter build()
Returns an immutable instance of CodeInterpreter.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.input() .outputs()
-
-
-
-