ConversationEvent
Events scoped to a specific conversation, identified by conversationId.
These events are emitted both through CoreClient.events (for all conversations) and through ConversationClient.events (filtered to one conversation). Use the ConversationClient variant when building per-conversation UI.
Samples
scope.launch {
conversationClient.events.collect { event ->
when (event) {
is ConversationEvent.Entry -> { /* Display the new entry in the chat feed */ }
is ConversationEvent.ProgressIndicator -> { /* Show typing indicator */ }
is ConversationEvent.QueuePosition -> { /* Update queue position UI */ }
else -> {}
}
}
}Content copied to clipboard
Inheritors
Types
Link copied to clipboard
Emitted when a new entry is added to the conversation by any participant.
Link copied to clipboard
data class ProgressIndicator(val conversationEntry: ConversationEntry) : CoreEvent.ConversationEvent
Emitted when the agent is actively composing a response.
Link copied to clipboard
Emitted when the end user's position in the agent queue changes.