MapGptServiceEvents

Properties

Link copied to clipboard
abstract val conversationState: StateFlow<ConversationState>
Link copied to clipboard
abstract val conversationStatus: SharedFlow<ConversationState>
Link copied to clipboard
abstract val interactionHistory: StateFlow<List<InteractionHistoryElement>>
Link copied to clipboard
abstract val resettableError: StateFlow<Throwable?>

Provides a session error until a new conversation starts.

Link copied to clipboard
abstract val sessionError: SharedFlow<Throwable>
Link copied to clipboard
abstract val sessionFrame: SharedFlow<SessionFrame>
Link copied to clipboard
abstract val sessionState: StateFlow<SessionState>

Functions

Link copied to clipboard
abstract fun <T : SessionFrame.SendEvent.Body> activeConversationEvents(type: KClass<T>): Flow<T>
Link copied to clipboard
inline fun <T : SessionFrame.SendEvent.Body> MapGptServiceEvents.activeConversationEvents(): Flow<T>