GraphSnapshot

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

The tasks that can still run from this snapshot, by id: the frontier's, and the tasks the frontier's and the parked continuations stand in for. Their effect records are kept; every other task of the thread has finished, or will be planned again (Commit.releasesEffect).

The tasks that can still run from this snapshot, by id: the frontier's, and the tasks the frontier's and the parked continuations stand in for. Their effect records are kept; every other task of the thread has finished, or will be planned again (Commit.releasesEffect).

Attributes

Source
Execution.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product