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.
- Diff
Value - 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§
- Object
Resolver - 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.