DiscoverySummaryViewModel

class DiscoverySummaryViewModel(sessionId: Long, discoveryDao: DiscoveryDao, summaryGenerator: DiscoverySummaryGenerator, rankingEngine: DiscoveryRankingEngine, aiProvider: DiscoverySummaryAiProvider, exporter: DiscoveryExporter) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(sessionId: Long, discoveryDao: DiscoveryDao, summaryGenerator: DiscoverySummaryGenerator, rankingEngine: DiscoveryRankingEngine, aiProvider: DiscoverySummaryAiProvider, exporter: DiscoveryExporter)

Properties

Link copied to clipboard
val aiSummary: StateFlow<String?>
Link copied to clipboard
val algorithmicSummary: StateFlow<String?>
Link copied to clipboard
val exportResult: StateFlow<ExportResult?>
Link copied to clipboard
val isGeneratingAi: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
val presetAiSummaries: StateFlow<Map<Long, String>>
Link copied to clipboard
Link copied to clipboard
val rankings: StateFlow<List<PresetRanking>>
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
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Re-run all AI analysis, clearing cached results first.