NodeContext

org.llm4s.agent.graph.NodeContext
final class NodeContext

The running task's identity, for attribution and idempotency keys, and its event channels.

emit records a durable custom event: it is committed with this task's result, given a per-thread sequence number in that commit, delivered only after the commit and replayed to later subscribers. It is discarded if the task fails. progress is live-only, for token deltas and similar high-volume progress: delivered at once to current subscribers, never persisted or replayed. Outside a GraphRuntime both are no-ops.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def emit(name: String, version: Int, payload: Value): Unit
def progress(payload: Value): Unit

Concrete fields

val nodeId: NodeId
val superstep: Int
val taskId: TaskId