RunOrigin

org.llm4s.agent.graph.RunOrigin
See theRunOrigin companion object
@Experimental
final case class RunOrigin

Where a child thread came from (design 4.41): the thread whose run started it (parent), the tool call of that run that started it (call, the call's IdempotencyKey), the agent it runs (agent), when it was first admitted (startedAt, by the runtime's clock: GraphRuntime.startChild stamps it, whatever the caller passed), and how deep it is: 1 for a child of a top-level thread, one more for each level below.

A thread is a child thread exactly when its latest checkpoint records an origin (Checkpoint.origin), never because of its id's shape. The origin is written with the child's first checkpoint and copied onto every later one, as the tenant is.

trace is the trace context of the parent's tool call that started the child (design 4.58): every run of the child

  • its first, and each recovery or resume, on whichever machine - takes it as its span's parent, so the child stays in the trace of the run that started it. None on a child first admitted before it existed, whose runs continue the context of the call that drives them. A child thread is driven only through its parent's run: start, recover, resume, fork, updateState and deleteThread on it are refused with GraphError.ChildThread.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product