Class ResponseCodeInterpreterCallCodeDeltaEvent
-
- All Implemented Interfaces:
public final class ResponseCodeInterpreterCallCodeDeltaEvent
Emitted when a partial code snippet is added by the code interpreter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseCodeInterpreterCallCodeDeltaEvent.Builder
A builder for ResponseCodeInterpreterCallCodeDeltaEvent.
-
Method Summary
Modifier and Type Method Description final String
delta()
The partial code snippet added by the code interpreter. final Long
outputIndex()
The index of the output item that the code interpreter call is in progress. final JsonValue
_type()
The type of the event. final JsonField<String>
_delta()
Returns the raw JSON value of delta. final JsonField<Long>
_outputIndex()
Returns the raw JSON value of outputIndex. final Map<String, JsonValue>
_additionalProperties()
final ResponseCodeInterpreterCallCodeDeltaEvent.Builder
toBuilder()
final ResponseCodeInterpreterCallCodeDeltaEvent
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseCodeInterpreterCallCodeDeltaEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseCodeInterpreterCallCodeDeltaEvent. -
-
Method Detail
-
outputIndex
final Long outputIndex()
The index of the output item that the code interpreter call is in progress.
-
_type
final JsonValue _type()
The type of the event. Always
response.code_interpreter_call.code.delta
.Expected to always return the following:
JsonValue.from("response.code_interpreter_call.code.delta")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_delta
final JsonField<String> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_outputIndex
final JsonField<Long> _outputIndex()
Returns the raw JSON value of outputIndex.
Unlike outputIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseCodeInterpreterCallCodeDeltaEvent.Builder toBuilder()
-
validate
final ResponseCodeInterpreterCallCodeDeltaEvent validate()
-
builder
final static ResponseCodeInterpreterCallCodeDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseCodeInterpreterCallCodeDeltaEvent.
The following fields are required:
.delta() .outputIndex()
-
-
-
-