MessageDelta

@Serializable
data class MessageDelta(val id: MessageId, val object: String, val delta: MessageDeltaData)

Represents a message delta i.e. any changed fields on a message during streaming.

Parameters

id

the identifier of the message, which can be referenced in API endpoints.

object

the object type, which is always thread.message.delta.

delta

the delta containing the fields that have changed on the message.

Constructors

Link copied to clipboard
constructor(id: MessageId, object: String, delta: MessageDeltaData)

Properties

Link copied to clipboard
@SerialName(value = "delta")
val delta: MessageDeltaData
Link copied to clipboard
@SerialName(value = "id")
val id: MessageId
Link copied to clipboard
@SerialName(value = "object")
val object: String