Proposition Query
Composable query specification for propositions.
Important: Always start with a scoped factory method to avoid accidentally querying all propositions. Use againstContext or forContextId as the entry point.
Kotlin usage (direct construction with defaults):
val query = PropositionQuery(
contextId = sessionContext,
entityId = "user-123",
minLevel = 0,
orderBy = OrderBy.EFFECTIVE_CONFIDENCE_DESC,
)Java usage (builder pattern via withers):
PropositionQuery query = PropositionQuery.againstContext("session-123")
.withEntityId("user-123")
.withMinLevel(0)
.withOrderBy(OrderBy.EFFECTIVE_CONFIDENCE_DESC);Constructors
Types
Properties
Functions
Filter to propositions accessed within the given duration from now.
Filter to propositions created within the given duration from now.
Get the context ID value as a String (Java-friendly).
Filter to propositions revised within the given duration from now.
Keep only propositions whose effective confidence is strictly below threshold.
Filter on raw (un-decayed) confidence — "was this ever reliable?". Use this for membership / eager-inclusion gates; use withMinEffectiveConfidence (or orderedByEffectiveConfidence) for ranking, so decay lowers a fact's position without evicting it.
Restrict to pinned (true) or unpinned (false) propositions.