FactFacade class

Thin facade over the fact-graph standard ports.

Constructors

FactFacade({required KnowledgeSystem system})

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
Whether the fact-graph layer is available. L0 is required, so this is always true — a default FactGraphRuntime.inMemory() is auto- wired when no runtime is supplied explicitly.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system → KnowledgeSystem
Access the orchestrator.
no setter

Methods

classifyFragment(String fragment) Future<String>
Classify a fragment.
computeFragmentConfidence(String fragment) Future<double>
Compute confidence for a fragment.
confirmCandidate(String candidateId, {String? reviewerId}) Future<void>
Confirm a candidate, promoting it to a fact.
createCandidates(List<CandidateRecord> candidates) Future<List<String>>
Create a batch of candidate facts pending review.
deleteFacts(List<String> ids) Future<void>
Delete facts by ID.
extractFragments(String content, String mimeType) Future<List<EvidenceFragment>>
Extract evidence fragments from raw content.
getEntity(String entityId) Future<EntityRecord?>
Get an entity by ID.
getFact(String id) Future<FactRecord?>
Get a single fact by ID.
getFactsForEntity(String entityId, {String? workspaceId, Period? period, int? limit}) Future<List<FactRecord>>
Get all facts for an entity.
getPattern(String id) Future<PatternRecord?>
Get a pattern by ID.
getPendingCandidates({String? workspaceId, int? limit}) Future<List<CandidateRecord>>
Get pending candidates for a workspace.
getSummary(String entityId, String summaryType, {Period? period}) Future<SummaryRecord?>
Get a summary for an entity.
markSummariesStale(List<String> entityIds, {String? summaryType}) Future<void>
Mark summaries as stale (worker will refresh asynchronously).
mergeEntities(String surviving, String absorbed) Future<EntityRecord>
Merge two entities.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryClaims(ClaimQuery query) Future<List<Claim>>
Query claims with a typed query.
queryFacts(FactQuery query) Future<List<FactRecord>>
Query facts with a typed query.
queryPatterns(PatternQuery query) Future<List<PatternRecord>>
Query patterns.
refreshSummary(String entityId, String summaryType, {Period? period}) Future<SummaryRecord>
Refresh a summary on demand.
rejectCandidate(String candidateId, String reason, {String? reviewerId}) Future<void>
Reject a candidate.
storePattern(PatternRecord pattern) Future<String>
Store a pattern.
toString() String
A string representation of this object.
inherited
writeClaims(List<Claim> claims, {List<String>? evidenceRefs}) Future<void>
Write claims with optional evidence references.
writeFacts(List<FactRecord> facts) Future<void>
Write a batch of facts.

Operators

operator ==(Object other) bool
The equality operator.
inherited