ChirpyViewModel

Chirpy state for one docs pane. The conversation and its requests live in the app-scoped ChirpySessionHolder, so they outlive this ViewModel.

Constructors

Link copied to clipboard
constructor(aiAssistant: AIDocAssistant, holder: ChirpySessionHolder)

Properties

Link copied to clipboard
val isSupported: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun introduce()
Link copied to clipboard
fun onDraftChange(draft: String)
Link copied to clipboard
fun submit(currentPageId: String?)
Link copied to clipboard