conversation

abstract val conversation: Flow<Result<Conversation>>

An observable stream of the current Conversation state.

Emits Result.Loading initially, then Result.Success with the conversation once available. The conversation object includes metadata such as participants, unread message count, active modalities, and status.

Samples

scope.launch {
    conversationClient.conversation.collect { conversationResult ->
        when (conversationResult) {
            is Result.Success -> { /* Render conversation metadata */ }
            is Result.Error -> { /* Show error state */ }
            Result.Loading -> { /* Show loading indicator */ }
            Result.Empty -> { /* Show empty state */ }
        }
    }
}