Class RunStreamEvent
java.lang.Object
com.azure.core.util.ExpandableStringEnum<RunStreamEvent>
com.azure.ai.openai.assistants.models.RunStreamEvent
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Run operation related streaming events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RunStreamEvent
Event sent when a run is cancelled.static final RunStreamEvent
Event sent when a run moves to `cancelling` status.static final RunStreamEvent
Event sent when a run is completed.static final RunStreamEvent
Event sent when a new run is created.static final RunStreamEvent
Event sent when a run is expired.static final RunStreamEvent
Event sent when a run fails.static final RunStreamEvent
Event sent when a run moves to `in_progress` status.static final RunStreamEvent
Event sent when a run moves to `queued` status.static final RunStreamEvent
Event sent when a run moves to `requires_action` status. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RunStreamEvent
fromString
(String name) Creates or finds a RunStreamEvent from its string representation.static Collection
<RunStreamEvent> values()
Gets known RunStreamEvent values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
THREAD_RUN_CREATED
Event sent when a new run is created. The data of this event is of type ThreadRun. -
THREAD_RUN_QUEUED
Event sent when a run moves to `queued` status. The data of this event is of type ThreadRun. -
THREAD_RUN_IN_PROGRESS
Event sent when a run moves to `in_progress` status. The data of this event is of type ThreadRun. -
THREAD_RUN_REQUIRES_ACTION
Event sent when a run moves to `requires_action` status. The data of this event is of type ThreadRun. -
THREAD_RUN_COMPLETED
Event sent when a run is completed. The data of this event is of type ThreadRun. -
THREAD_RUN_FAILED
Event sent when a run fails. The data of this event is of type ThreadRun. -
THREAD_RUN_CANCELLING
Event sent when a run moves to `cancelling` status. The data of this event is of type ThreadRun. -
THREAD_RUN_CANCELLED
Event sent when a run is cancelled. The data of this event is of type ThreadRun. -
THREAD_RUN_EXPIRED
Event sent when a run is expired. The data of this event is of type ThreadRun.
-
-
Constructor Details
-
RunStreamEvent
Deprecated.Use thefromString(String)
factory method.Creates a new instance of RunStreamEvent value.
-
-
Method Details
-
fromString
Creates or finds a RunStreamEvent from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding RunStreamEvent.
-
values
Gets known RunStreamEvent values.- Returns:
- known RunStreamEvent values.
-
fromString(String)
factory method.