org.llm4s.agent.graph.GraphSnapshot
See theGraphSnapshot companion object
final case class GraphSnapshot(graphId: String, graphVersion: String, fingerprint: String, superstep: Int, state: Map[String, VersionedJson], frontier: Vector[PendingTask], staticJoins: Vector[StaticArrivals], dynamicJoins: Vector[Activation], parked: Vector[ParkedContinuation], paused: Boolean, shape: Option[GraphShape])
A serializable picture of an Execution - data only, no closures or codecs. Node inputs, questions and state values are encoded with the codecs of the graph that wrote them, and decoded and checked against the graph that restores them.
Each value records its codec's version and is migrated on restore; the snapshot itself is versioned by the Checkpoint that carries it. shape is the writing graph's declared structure, which CompiledGraph.restore compares with its own; None on a snapshot written before shapes were recorded (#1934), which is matched by fingerprint alone.
Attributes
- Companion
- object
- Source
- Execution.scala
- Graph
-
- Supertypes
Members list
In this article
