Checkpoint

org.llm4s.agent.graph.Checkpoint
See theCheckpoint companion object
final case class Checkpoint

One durable point in a thread's execution - data only. Closures, codecs and update functions are rebound from the compiled graph on restore; every value inside carries the version of the codec that wrote it (VersionedJson).

parent is the checkpoint this one supersedes. A checkpointer accepts a new checkpoint only if parent is the thread's latest, so two writers cannot both advance one thread: the latest checkpoint's id is the thread's version. fencingToken is the token of the claim whose run wrote it (RunClaim); None on checkpoints written before claims existed (format 4 and earlier).

Persist with Checkpoint.toJson and read with Checkpoint.fromJson, which migrates older formatVersions and refuses newer ones.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withCreatedAt(at: Instant): Checkpoint
def withId(i: String): Checkpoint
def withParent(p: Option[String]): Checkpoint
def withRunId(r: String): Checkpoint
def withTenantId(t: String): Checkpoint
def withTenantId(t: Option[String]): Checkpoint
def withThreadId(t: String): Checkpoint

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product