AssistantStreamEvent

@Serializable
data class AssistantStreamEvent(val rawType: String?, val type: AssistantStreamEventType, val data: String?)

Represents an event emitted when streaming a run.

Constructors

Link copied to clipboard
constructor(rawType: String?, type: AssistantStreamEventType, data: String?)

Properties

Link copied to clipboard
@SerialName(value = "data")
val data: String?

the string serialized representation of the data for the event.

Link copied to clipboard
@SerialName(value = "rawType")
val rawType: String?

the raw string of the event type.

Link copied to clipboard
@SerialName(value = "type")
val type: AssistantStreamEventType

the type of the event or AssistantStreamEventType.UNKNOWN if unrecognized.