Class CodeInterpreterToolCall.CodeInterpreter
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCall.CodeInterpreterThe Code Interpreter tool call definition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCodeInterpreterToolCall.CodeInterpreter.BuilderA builder for CodeInterpreter.
public final classCodeInterpreterToolCall.CodeInterpreter.OutputText output from the Code Interpreter tool call as part of a run step.
-
Method Summary
Modifier and Type Method Description final Stringinput()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.BuildertoBuilder()final CodeInterpreterToolCall.CodeInterpretervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CodeInterpreterToolCall.CodeInterpreter.Builderbuilder()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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CodeInterpreterToolCall.CodeInterpreter.Builder builder()
Returns a mutable builder for constructing an instance of CodeInterpreter.
The following fields are required:
.input() .outputs()
-
-
-
-