Class RunStepDeltaEvent
-
- All Implemented Interfaces:
public final class RunStepDeltaEvent
Represents a run step delta i.e. any changed fields on a run step during streaming.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RunStepDeltaEvent.Builder
A builder for RunStepDeltaEvent.
-
Method Summary
Modifier and Type Method Description final String
id()
The identifier of the run step, which can be referenced in API endpoints. final RunStepDelta
delta()
The delta containing the fields that have changed on the run step. final JsonValue
_object_()
The object type, which is always thread.run.step.delta
.final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<RunStepDelta>
_delta()
Returns the raw JSON value of delta. final Map<String, JsonValue>
_additionalProperties()
final RunStepDeltaEvent.Builder
toBuilder()
final RunStepDeltaEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunStepDeltaEvent.Builder
builder()
Returns a mutable builder for constructing an instance of RunStepDeltaEvent. -
-
Method Detail
-
delta
final RunStepDelta delta()
The delta containing the fields that have changed on the run step.
-
_object_
final JsonValue _object_()
The object type, which is always
thread.run.step.delta
.Expected to always return the following:
JsonValue.from("thread.run.step.delta")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_delta
final JsonField<RunStepDelta> _delta()
Returns the raw JSON value of delta.
Unlike delta, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RunStepDeltaEvent.Builder toBuilder()
-
validate
final RunStepDeltaEvent validate()
-
builder
final static RunStepDeltaEvent.Builder builder()
Returns a mutable builder for constructing an instance of RunStepDeltaEvent.
The following fields are required:
.id() .delta()
-
-
-
-