AssistantStreamEventType

Represents an event type emitted when streaming a Run.

Entries

Link copied to clipboard

Occurs when a new thread is created.

Link copied to clipboard

Occurs when a new run is created.

Link copied to clipboard

Occurs when a run moves to a queued status.

Link copied to clipboard

Occurs when a run moves to an in_progress status.

Link copied to clipboard

Occurs when a run moves to a requires_action status.

Link copied to clipboard

Occurs when a run is completed.

Link copied to clipboard

Occurs when a run ends with status incomplete.

Link copied to clipboard

Occurs when a run fails.

Link copied to clipboard

Occurs when a run moves to a cancelling status.

Link copied to clipboard

Occurs when a run is cancelled.

Link copied to clipboard

Occurs when a run expires.

Link copied to clipboard

Occurs when a run step is created.

Link copied to clipboard

Occurs when a run step moves to an in_progress state.

Link copied to clipboard

Occurs when parts of a run step are being streamed.

Link copied to clipboard

Occurs when a run step is completed.

Link copied to clipboard

Occurs when a run step fails.

Link copied to clipboard

Occurs when a run step is cancelled.

Link copied to clipboard

Occurs when a run step expires.

Link copied to clipboard

Occurs when a message is created.

Link copied to clipboard

Occurs when a message moves to an in_progress state.

Link copied to clipboard

Occurs when parts of a Message are being streamed.

Link copied to clipboard

Occurs when a message is completed.

Link copied to clipboard

Occurs when a message ends before it is completed.

Link copied to clipboard

Occurs when an error occurs. This can happen due to an internal server error or a timeout.

Link copied to clipboard

Occurs when a stream ends. data is DONE

Link copied to clipboard

Occurs when the event type is not recognized

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the type of the data.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

the string representation of event type.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serializer: KSerializer<*>

the serializer corresponding to the data type.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.