Skip to main content

Module diff

Module diff 

Source
Expand description

Structured diff engine — schema-aware, typed diffs between state trees.

Unlike git’s line-based text diffs, AgentStateGraph diffs operate on typed structured data. Each DiffOp describes a specific change (SetValue, AddKey, RemoveKey, etc.) at an exact path in the state tree.

Enums§

DiffOp
A single structured change operation within a diff.
DiffValue
A JSON-serializable representation of a value in a diff. We can’t use Object directly because it contains ObjectIds which aren’t meaningful to external consumers.

Traits§

ObjectResolver
Trait for resolving ObjectIds to Objects during diff computation. This decouples the diff algorithm from the storage backend.

Functions§

diff
Compute a structured diff between two state trees.