Class AssistantStreamEvent.ThreadRunRequiresAction
-
- All Implemented Interfaces:
public final class AssistantStreamEvent.ThreadRunRequiresActionOccurs when a run moves to a
requires_actionstatus.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAssistantStreamEvent.ThreadRunRequiresAction.BuilderA builder for ThreadRunRequiresAction.
-
Method Summary
Modifier and Type Method Description final Rundata()Represents an execution run on a thread. final JsonValue_event()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thread.run.requires_action")final JsonField<Run>_data()Returns the raw JSON value of data. final Map<String, JsonValue>_additionalProperties()final AssistantStreamEvent.ThreadRunRequiresAction.BuildertoBuilder()final AssistantStreamEvent.ThreadRunRequiresActionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AssistantStreamEvent.ThreadRunRequiresAction.Builderbuilder()Returns a mutable builder for constructing an instance of ThreadRunRequiresAction. -
-
Method Detail
-
_event
final JsonValue _event()
Expected to always return the following:
JsonValue.from("thread.run.requires_action")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_data
final JsonField<Run> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final AssistantStreamEvent.ThreadRunRequiresAction.Builder toBuilder()
-
validate
final AssistantStreamEvent.ThreadRunRequiresAction 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 AssistantStreamEvent.ThreadRunRequiresAction.Builder builder()
Returns a mutable builder for constructing an instance of ThreadRunRequiresAction.
The following fields are required:
.data()
-
-
-
-