ConversationAnalysisRequestEvent

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

Event published after a conversation exchange to trigger async proposition extraction. Used by any application integrating the DICE memory pipeline.

The three-argument constructor is the one that has always existed and carries no provenance. A publisher that has a typed source for the conversation — a thread in a chat system, a transcript file — uses the longer constructor to say so, and the same constructor takes an extraction content profile and a run reference.

sourceLocator is nullable there because the four things are independent: a publisher can name a profile for a conversation it has no typed source for. Only the revision is coupled, and to the locator alone — it names a version of that source, so it needs one.

Constructors

Link copied to clipboard
constructor(source: Any, user: <Error class: unknown class>, conversation: <Error class: unknown class>, sourceLocator: SourceLocator?, sourceRevision: SourceRevisionRef? = null, profile: ExtractionContentProfileRef? = null, currentRun: ExtractionRunRef? = null)
constructor(source: Any, user: <Error class: unknown class>, conversation: <Error class: unknown class>)

Properties

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

Functions

Link copied to clipboard
open override fun currentRun(): ExtractionRunRef?

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

Link copied to clipboard
open override fun incrementalSource(): IncrementalSource<<Error class: unknown class>>
Link copied to clipboard
open override fun profile(): ExtractionContentProfileRef?

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
open override fun sourceLocator(): SourceLocator?

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

Link copied to clipboard
open override fun sourceRevision(): SourceRevisionRef?

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.