SummaryNode class
SummaryNode represents a cumulative summary stored as a graph node.
Supports reproducibility via asOf and policyVersion fields.
Constructors
-
SummaryNode({required String summaryId, required String workspaceId, required String summaryText, List<
String> coversFactIds = const [], required DateTime asOf, required String policyVersion, String? supersedes, SummaryStatus status = SummaryStatus.active, required SummaryScope scope, Map<String, dynamic> ? metadata, required DateTime createdAt, required DateTime updatedAt}) -
const
-
SummaryNode.fromJson(Map<
String, dynamic> json) -
factory
Properties
- asOf → DateTime
-
Point-in-time snapshot for reproducibility.
Reference: Design Section 2.15.1 - enables time-travel queries.
final
-
coversFactIds
→ List<
String> -
Fact IDs covered by this summary.
Reference: Design Section 2.15.1 - coversFactIds.
final
- createdAt → DateTime
-
When this summary was created.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
metadata
→ Map<
String, dynamic> ? -
Additional metadata.
final
- policyVersion → String
-
Policy version used for generating this summary.
Reference: Design Section 2.15.1 - enables reproducibility.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → SummaryScope
-
Summary scope.
Reference: Design Section 2.15.1 - SummaryScope.
final
- status → SummaryStatus
-
Summary status.
final
- summaryId → String
-
Unique summary node identifier.
final
- summaryText → String
-
Summary text content.
Reference: Design Section 2.15.1 - summaryText.
final
- supersedes → String?
-
ID of the summary this supersedes (latest summary pointer).
Reference: Design Section 2.15.1 - supports incremental updates.
final
- updatedAt → DateTime
-
When this summary was last updated.
final
- workspaceId → String
-
Workspace identifier for multi-tenant isolation.
final
Methods
-
copyWith(
{String? summaryId, String? workspaceId, String? summaryText, List< String> ? coversFactIds, DateTime? asOf, String? policyVersion, String? supersedes, SummaryStatus? status, SummaryScope? scope, Map<String, dynamic> ? metadata, DateTime? createdAt, DateTime? updatedAt}) → SummaryNode -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override