GraphError

org.llm4s.agent.graph.GraphError
See theGraphError companion trait
object GraphError

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
GraphError.type

Members list

Type members

Classlikes

final case class Cancelled(threadId: Option[String], lastCheckpoint: Option[String]) extends GraphError, NonRecoverableError

The run was cancelled by interrupting its thread - RunHandle.cancel in a runtime, or interrupting the thread driving CompiledGraph.step. Every task was interrupted and joined. In a runtime, tasks that finished first keep their results as pending writes, and the checkpoint stays Running, so recover continues it without re-running them. A step keeps nothing from the cancelled superstep, and returns this with the interrupt flag set.

The run was cancelled by interrupting its thread - RunHandle.cancel in a runtime, or interrupting the thread driving CompiledGraph.step. Every task was interrupted and joined. In a runtime, tasks that finished first keep their results as pending writes, and the checkpoint stays Running, so recover continues it without re-running them. A step keeps nothing from the cancelled superstep, and returns this with the interrupt flag set.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class CheckpointConflict(threadId: String, expected: Option[String], actual: Option[String]) extends GraphError, NonRecoverableError

A new checkpoint's parent is not the thread's latest: another writer advanced the thread.

A new checkpoint's parent is not the thread's latest: another writer advanced the thread.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class CheckpointNotFound(threadId: String, checkpointId: String) extends GraphError, NonRecoverableError

The thread has no checkpoint checkpointId in its history: it never had one, or retention (Checkpointer.prune), a guardrail Block (which retracts its turn) or deleteThread removed it. Nothing was changed.

The thread has no checkpoint checkpointId in its history: it never had one, or retention (Checkpointer.prune), a guardrail Block (which retracts its turn) or deleteThread removed it. Nothing was changed.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class CheckpointWriteFailed(threadId: String, cause: LLMError, runError: Option[LLMError]) extends GraphError, NonRecoverableError

The checkpointer refused or failed a commit; the run stops at its last durable checkpoint. runError is the run's own failure when the commit failed while recording it.

The checkpointer refused or failed a commit; the run stops at its last durable checkpoint. runError is the run's own failure when the commit failed while recording it.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class DeadlineExceeded(threadId: String, lastCheckpoint: Option[String]) extends GraphError, RecoverableError

The run's RunBudgets.timeout, measured from its claim, expired: the run was stopped exactly as by Cancelled, and a RunEvent.RunTimedOut event was committed against lastCheckpoint. The checkpoint stays Running, so recover with a new budget continues the run without re-running tasks that had finished.

The run's RunBudgets.timeout, measured from its claim, expired: the run was stopped exactly as by Cancelled, and a RunEvent.RunTimedOut event was committed against lastCheckpoint. The checkpoint stays Running, so recover with a new budget continues the run without re-running tasks that had finished.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ForeignExecution(graphId: String) extends GraphError, NonRecoverableError

An execution was passed to a graph other than the one that created or restored it.

An execution was passed to a graph other than the one that created or restored it.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class IncompleteRun(threadId: String, checkpointId: String) extends GraphError, NonRecoverableError

start was called on a thread whose latest checkpoint is mid-execution; use recover.

start was called on a thread whose latest checkpoint is mid-execution; use recover.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class InvalidCommit(threadId: String, reason: String) extends GraphError, NonRecoverableError

A commit is malformed, such as a pending write naming a checkpoint other than the latest.

A commit is malformed, such as a pending write naming a checkpoint other than the latest.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class InvalidGraph(graphId: String, problems: List[String]) extends GraphError, NonRecoverableError

The builder found one or more structural problems; every problem is listed.

The builder found one or more structural problems; every problem is listed.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class InvalidResume(graphId: String, problems: List[String]) extends GraphError, NonRecoverableError

A resume was refused: no answers, an interrupt that is not parked, or an answer that does not decode.

A resume was refused: no answers, an interrupt that is not parked, or an answer that does not decode.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class InvalidRoute(nodeId: NodeId, taskId: TaskId, reason: String) extends GraphError, NonRecoverableError

A node returned a route this graph cannot schedule.

A node returned a route this graph cannot schedule.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class MiddlewareFailed(middleware: String, cause: Throwable) extends GraphError, NonRecoverableError

A middleware hook threw: the run fails, the checkpoint stays Running, and recover re-runs only that task. middleware is the middleware's id.

A middleware hook threw: the run fails, the checkpoint stays Running, and recover re-runs only that task. middleware is the middleware's id.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class NodeFailed(nodeId: NodeId, taskId: TaskId, cause: LLMError) extends GraphError, NonRecoverableError

A node returned a failure or threw.

A node returned a failure or threw.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class NotSuspended(threadId: String) extends GraphError, NonRecoverableError

resume was called on a thread that is not suspended.

resume was called on a thread that is not suspended.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class NothingToRecover(threadId: String) extends GraphError, NonRecoverableError

recover was called on a thread with no incomplete execution.

recover was called on a thread with no incomplete execution.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class PendingInterrupts(threadId: String, interrupts: List[String]) extends GraphError, NonRecoverableError

start or recover was called on a suspended thread; answer its interrupts with resume.

start or recover was called on a suspended thread; answer its interrupts with resume.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ReplayUnavailable(threadId: String, earliestSeq: Long) extends GraphError, NonRecoverableError

Events before earliestSeq were compacted away and cannot be replayed.

Events before earliestSeq were compacted away and cannot be replayed.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class RestoreRejected(graphId: String, problems: List[String]) extends GraphError, NonRecoverableError

A snapshot does not match this compiled graph; every problem is listed.

A snapshot does not match this compiled graph; every problem is listed.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class RunCrashed(threadId: String, cause: Throwable) extends GraphError, NonRecoverableError

An unexpected throwable - such as a Clock that threw - refused the run at admission, or ended it where it was; a checkpointer whose commit throws is reported as CheckpointWriteFailed instead. Its thread claim is released; whatever the store holds for the thread stands.

An unexpected throwable - such as a Clock that threw - refused the run at admission, or ended it where it was; a checkpointer whose commit throws is reported as CheckpointWriteFailed instead. Its thread claim is released; whatever the store holds for the thread stands.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class StaleClaim(threadId: String, token: Long, current: Option[Long]) extends GraphError, NonRecoverableError

A commit, renewal or release presented a fencing token that is not the thread's current claim: the claim was taken over after it expired, was released, or never existed. A Checkpointer refuses such a commit atomically, applying nothing and numbering no event, so a writer that lost its claim cannot record anything after another run took the thread over. current is the token of the thread's current claim, if there is one.

A commit, renewal or release presented a fencing token that is not the thread's current claim: the claim was taken over after it expired, was released, or never existed. A Checkpointer refuses such a commit atomically, applying nothing and numbering no event, so a writer that lost its claim cannot record anything after another run took the thread over. current is the token of the thread's current claim, if there is one.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class StateUpdateFailed(keyId: StateKeyId, cause: LLMError) extends GraphError, NonRecoverableError

A key's update function rejected an update.

A key's update function rejected an update.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class SuperstepLimitExceeded(limit: Int) extends GraphError, NonRecoverableError

The run reached its superstep limit with work still scheduled.

The run reached its superstep limit with work still scheduled.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class TenantMismatch(threadId: String, requested: Option[String]) extends GraphError, NonRecoverableError

The run's tenant is not the thread's: a thread belongs to the tenant recorded on its latest checkpoint, and requested (the caller's RunConfig.tenantId) is not it. None and Some differ. Nothing was changed. The owning tenant is deliberately not carried or printed, so a caller from another tenant learns nothing about the thread.

The run's tenant is not the thread's: a thread belongs to the tenant recorded on its latest checkpoint, and requested (the caller's RunConfig.tenantId) is not it. None and Some differ. Nothing was changed. The owning tenant is deliberately not carried or printed, so a caller from another tenant learns nothing about the thread.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ThreadBusy(threadId: String, latestCheckpoint: Option[String], holder: Option[String]) extends GraphError, NonRecoverableError

Another run holds the thread: it is still executing in this runtime, another runtime or process holds a live claim on it (RunClaim), or it claimed the thread between this call reading it and claiming it. Nothing was accepted or discarded - retry once that run has suspended or completed, or once its claim has expired. holder is the run id of the claim's holder when it is known and the caller may see it: it is never named for a thread that has no checkpoint yet in the store, whose tenant cannot be checked.

Another run holds the thread: it is still executing in this runtime, another runtime or process holds a live claim on it (RunClaim), or it claimed the thread between this call reading it and claiming it. Nothing was accepted or discarded - retry once that run has suspended or completed, or once its claim has expired. holder is the run id of the claim's holder when it is known and the caller may see it: it is never named for a thread that has no checkpoint yet in the store, whose tenant cannot be checked.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ThreadExists(threadId: String) extends GraphError, NonRecoverableError

A fork's target thread already exists; a fork only ever creates a new thread. Nothing was changed.

A fork's target thread already exists; a fork only ever creates a new thread. Nothing was changed.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ToolFailed extends GraphError, NonRecoverableError

A tool call failed the run: the tool returned Fatal, or broke its contract (an update to a key it does not declare, a question it does not declare). cause says which.

A tool call failed the run: the tool returned Fatal, or broke its contract (an update to a key it does not declare, a question it does not declare). cause says which.

Attributes

Companion
object
Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ToolFailed

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ToolFailed.type
final case class UndeclaredWrite(nodeId: NodeId, taskId: TaskId, keyId: StateKeyId) extends GraphError, NonRecoverableError

A node emitted an update for a key outside its declared write set.

A node emitted an update for a key outside its declared write set.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class UnknownStateKey(keyId: StateKeyId) extends GraphError, NonRecoverableError

A key was read or written that the graph did not register, or another key shares its id.

A key was read or written that the graph did not register, or another key shares its id.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class UnsatisfiedJoin(joinId: JoinId, missing: List[String]) extends GraphError, NonRecoverableError

The graph went quiescent while a join still waited for arrivals that nothing can produce.

The graph went quiescent while a join still waited for arrivals that nothing can produce.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class UnsupportedCheckpointFormat(found: Int, supported: Int) extends GraphError, NonRecoverableError

A checkpoint was written in a format this build does not read.

A checkpoint was written in a format this build does not read.

Attributes

Supertypes
trait GraphError
trait LLMError
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror