DisconnectReason

org.llm4s.agent.graph.DisconnectReason

Why a subscription ended with StreamEvent.Disconnected.

Attributes

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

Members list

Type members

Enum entries

case Lagging extends DisconnectReason

A durable event did not fit in the subscriber's queue: the listener fell too far behind.

A durable event did not fit in the subscriber's queue: the listener fell too far behind.

Attributes

Source
RunEvent.scala
final case class ListenerFailed(cause: Throwable)

The listener threw cause; the event it threw on is not counted as delivered.

The listener threw cause; the event it threw on is not counted as delivered.

Attributes

Source
RunEvent.scala
final case class ReplayFailed(error: LLMError)

Reading the thread's event log failed: while replaying, or while reading the commits of another runtime or process sharing the store (WatchPolicy) - for instance because they were compacted away first (GraphError.ReplayUnavailable).

Reading the thread's event log failed: while replaying, or while reading the commits of another runtime or process sharing the store (WatchPolicy) - for instance because they were compacted away first (GraphError.ReplayUnavailable).

Attributes

Source
RunEvent.scala

The thread belongs to another tenant than the subscriber's (GraphRuntime.subscribe's config): it did not exist when the subscription was made, or was deleted and created again through another runtime, and a run of another tenant then made it. Nothing of that thread is delivered: the event that showed it is not, and lastSeq is the last event the subscriber was entitled to.

The thread belongs to another tenant than the subscriber's (GraphRuntime.subscribe's config): it did not exist when the subscription was made, or was deleted and created again through another runtime, and a run of another tenant then made it. Nothing of that thread is delivered: the event that showed it is not, and lastSeq is the last event the subscriber was entitled to.

Attributes

Source
RunEvent.scala

The thread was deleted (GraphRuntime.deleteThread, through this runtime or another sharing the store). A subscription follows one thread, not its id: a new thread created under the same id is not delivered to it - subscribe again, from 0, to follow that one. A subscription in another runtime that had delivered no event yet cannot be told from a new one, so it follows the new thread instead of ending, unless it is another tenant's (TenantMismatch); see GraphRuntime.deleteThread for when each subscription learns of the delete.

The thread was deleted (GraphRuntime.deleteThread, through this runtime or another sharing the store). A subscription follows one thread, not its id: a new thread created under the same id is not delivered to it - subscribe again, from 0, to follow that one. A subscription in another runtime that had delivered no event yet cannot be told from a new one, so it follows the new thread instead of ending, unless it is another tenant's (TenantMismatch); see GraphRuntime.deleteThread for when each subscription learns of the delete.

Attributes

Source
RunEvent.scala