FactRecord class

Canonical fact record used by FactsPort.

Constructors

FactRecord({required String id, required String workspaceId, required String type, String? entityId, required Map<String, dynamic> content, double? confidence, Period? period, List<String> evidenceRefs = const [], required DateTime createdAt})
const
FactRecord.fromJson(Map<String, dynamic> json)
Reconstruct from toJson.
factory

Properties

confidence → double?
Confidence score (0.0 – 1.0).
final
content → Map<String, dynamic>
Fact content payload.
final
createdAt → DateTime
Creation timestamp.
final
entityId → String?
Optional entity reference.
final
evidenceRefs → List<String>
Evidence references.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Fact identifier.
final
period → Period?
Valid period.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
Fact type.
final
workspaceId → String
Workspace identifier.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
JSON form so a FactRecord round-trips through persistent KvStoragePort adapters (e.g. agent fork storage). Brings FactRecord in line with the peer section models (SkillModule / ProfileDefinition / Philosophy), which already serialize.
toString() → String
A string representation of this object.
inherited

Operators

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