assistant_stream_event
Classes:
Attributes:
Name | Type | Description |
---|---|---|
AssistantStreamEvent |
|
AssistantStreamEvent
module-attribute
AssistantStreamEvent = Union[
ThreadCreated,
ThreadRunCreated,
ThreadRunQueued,
ThreadRunInProgress,
ThreadRunRequiresAction,
ThreadRunCompleted,
ThreadRunFailed,
ThreadRunCancelling,
ThreadRunCancelled,
ThreadRunExpired,
ThreadRunStepCreated,
ThreadRunStepInProgress,
ThreadRunStepDelta,
ThreadRunStepCompleted,
ThreadRunStepFailed,
ThreadRunStepCancelled,
ThreadRunStepExpired,
ThreadMessageCreated,
ThreadMessageInProgress,
ThreadMessageDelta,
ThreadMessageCompleted,
ThreadMessageIncomplete,
ErrorEvent,
]
ErrorEvent
ThreadCreated
ThreadMessageCompleted
ThreadMessageCreated
ThreadMessageDelta
Attributes:
Name | Type | Description |
---|---|---|
data |
MessageDeltaEvent
|
Represents a message delta i.e. |
event |
Literal['thread.message.delta']
|
|
data
instance-attribute
data: MessageDeltaEvent
Represents a message delta i.e.
any changed fields on a message during streaming.
ThreadMessageInProgress
ThreadMessageIncomplete
ThreadRunCancelled
ThreadRunCancelling
ThreadRunCompleted
ThreadRunCreated
ThreadRunExpired
ThreadRunFailed
ThreadRunInProgress
ThreadRunQueued
ThreadRunRequiresAction
ThreadRunStepCancelled
ThreadRunStepCompleted
ThreadRunStepCreated
ThreadRunStepDelta
Attributes:
Name | Type | Description |
---|---|---|
data |
RunStepDeltaEvent
|
Represents a run step delta i.e. |
event |
Literal['thread.run.step.delta']
|
|
data
instance-attribute
data: RunStepDeltaEvent
Represents a run step delta i.e.
any changed fields on a run step during streaming.