Class CodeInterpreterToolCall.CodeInterpreter
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCall.CodeInterpreter
The Code Interpreter tool call definition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CodeInterpreterToolCall.CodeInterpreter.Builder
A builder for CodeInterpreter.
public final class
CodeInterpreterToolCall.CodeInterpreter.Output
Text output from the Code Interpreter tool call as part of a run step.
-
Method Summary
Modifier and Type Method Description final String
input()
The input to the Code Interpreter tool call. final List<CodeInterpreterToolCall.CodeInterpreter.Output>
outputs()
The outputs from the Code Interpreter tool call. final JsonField<String>
_input()
Returns the raw JSON value of input. final JsonField<List<CodeInterpreterToolCall.CodeInterpreter.Output>>
_outputs()
Returns the raw JSON value of outputs. final Map<String, JsonValue>
_additionalProperties()
final CodeInterpreterToolCall.CodeInterpreter.Builder
toBuilder()
final CodeInterpreterToolCall.CodeInterpreter
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CodeInterpreterToolCall.CodeInterpreter.Builder
builder()
Returns a mutable builder for constructing an instance of CodeInterpreter. -
-
Method Detail
-
outputs
final 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.
-
_input
final JsonField<String> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_outputs
final JsonField<List<CodeInterpreterToolCall.CodeInterpreter.Output>> _outputs()
Returns the raw JSON value of outputs.
Unlike outputs, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CodeInterpreterToolCall.CodeInterpreter.Builder toBuilder()
-
validate
final CodeInterpreterToolCall.CodeInterpreter validate()
-
builder
final static CodeInterpreterToolCall.CodeInterpreter.Builder builder()
Returns a mutable builder for constructing an instance of CodeInterpreter.
The following fields are required:
.input() .outputs()
-
-
-
-