SourceAnalysisRequestEvent

abstract class SourceAnalysisRequestEvent(source: Any, val user: <Error class: unknown class>)

Base event for requesting proposition extraction from any incremental source. The user is typed as NamedEntity so that any application's user type (e.g., UrbotUser, Customer) can be used directly.

A publisher that knows where its material came from can say so by overriding sourceLocator and sourceRevision. The extraction listener collects both into an ExtractionRequest and puts them onto the SourceAnalysisContext it builds, so the async path grounds propositions exactly the way a direct rememberText call carrying a request does. Both default to null, so an existing subclass carries no provenance and behaves as it always did.

profile and currentRun work the same way and reach the same context through the same call, so an async publisher can attribute its extraction to a content profile and a run without the listener growing a second code path. Both also default to null.

Inheritors

Constructors

Link copied to clipboard
constructor(source: Any, user: <Error class: unknown class>)

Properties

Link copied to clipboard
val user: <Error class: unknown class>

Functions

Link copied to clipboard

The extraction run this event's analysis belongs to, when the publisher is running one.

Link copied to clipboard
abstract fun incrementalSource(): IncrementalSource<<Error class: unknown class>>
Link copied to clipboard

The extraction content profile this event's analysis should be attributed to, when the publisher has one. EXPERIMENTAL. DICE carries it and routes nothing on it.

Link copied to clipboard

Where this event's material lives, when the publisher knows.

Link copied to clipboard

The revision of sourceLocator this event's material was read at, when the publisher knows. Its source key must match the locator's, and the listener checks that when it builds the context.