SuggestedProposition

data class SuggestedProposition(val text: String, val mentions: List<SuggestedMention> = emptyList(), val confidence: <Error class: unknown class>, val decay: <Error class: unknown class> = 0.0, val importance: <Error class: unknown class> = 0.5, val reasoning: String = "", val grounding: List<String> = emptyList(), val source: String = "propose_facts") : Suggestion

A proposition suggested by the LLM from chunk analysis. This is the output type from the propose_facts prompt.

Constructors

Link copied to clipboard
constructor(text: String, mentions: List<SuggestedMention> = emptyList(), confidence: <Error class: unknown class>, decay: <Error class: unknown class> = 0.0, importance: <Error class: unknown class> = 0.5, reasoning: String = "", grounding: List<String> = emptyList(), source: String = "propose_facts")

Properties

Link copied to clipboard
open override val confidence: <Error class: unknown class>

LLM's certainty (0.0-1.0)

Link copied to clipboard
open override val decay: <Error class: unknown class> = 0.0

How quickly this information becomes stale (0.0-1.0)

Link copied to clipboard
open override val grounding: List<String>

Source IDs that ground this derivation.

Link copied to clipboard
open override val importance: <Error class: unknown class> = 0.5

How much this fact matters to remember (0.0-1.0)

Link copied to clipboard

Entities referenced in the statement

Link copied to clipboard

LLM's explanation for extracting this

Link copied to clipboard
open override val source: String

Stable identifier of the source that produced this suggestion — e.g. "email", "calendar", "osx", "stripe-receipts", "propose_facts". Powers dedup-by-source, provenance display, and source-scoped retraction.

Link copied to clipboard

The factual statement in natural language

Functions

Link copied to clipboard
fun toProposition(chunkIds: List<String>, contextId: <Error class: unknown class>): Proposition

Convert to a Proposition with the given chunk grounding. Entity resolution happens separately.