SchemaVersion

org.llm4s.agent.graph.SchemaVersion
See theSchemaVersion companion object
final class SchemaVersion

The current version of a persisted JSON shape, with the migrations that bring older versions up to it. A state key's value, a state key's update and a node's input each carry one; their stable codec id is the owner's id with this version (<keyId>@<version>), and every encoded value records the version it was written with (see VersionedJson).

A step keyed n migrates JSON written at version n to version n + 1. Steps are plain functions of the compiled graph, never persisted.

Attributes

Companion
object
Source
SchemaVersion.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def upgrade(from: Int, json: Value): Result[Value]

Migrates JSON written at version from to current, one step at a time.

Migrates JSON written at version from to current, one step at a time.

Attributes

Source
SchemaVersion.scala

Concrete fields

val current: Int

Attributes

Source
SchemaVersion.scala