EventRecord

org.llm4s.agent.graph.EventRecord
See theEventRecord companion object
final case class EventRecord(threadId: String, seq: Long, runId: String, token: FencingToken, checkpointId: Option[String], taskId: Option[String], nodeId: Option[String], timestamp: Instant, event: RunEvent)

A committed durable event. seq is per thread, allocated in the commit that stored the event, contiguous and never reused; an event is delivered to subscribers only after that commit.

token is the FencingToken of the claim the commit was fenced by (Commit.token): one incarnation of a run. A RunId may be reused - a recovery under the same id, or any run given one with RunConfig.withRunId - so two runs on a thread can share an id, but never a token: the store issues each claim a token above every earlier one. A record written before tokens were recorded reads as FencingToken(0), which no store issues.

Attributes

Companion
object
Source
RunEvent.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product