IncrementalAnalyzer

interface IncrementalAnalyzer<T, R>

Analyzes incremental sources (conversations, listening history, etc.) and produces results of type R.

Parameters

T

The type of items in the source

R

The type of result produced by analysis

Inheritors

Functions

Link copied to clipboard
abstract fun analyze(source: IncrementalSource<T>, context: SourceAnalysisContext): R?

Analyze the source if enough new content has accumulated.

Link copied to clipboard
abstract fun analyzeNow(source: IncrementalSource<T>, context: SourceAnalysisContext): R?

Force analysis regardless of trigger interval. Implementations may still skip if content was already processed.