NodeContext class final

What a node was given when it ran.

Annotations
  • @immutable

Constructors

NodeContext({required WorkflowState state, required AgenticContext context, required String runId, required int visit, Object? resumeValue})
Creates a node context.
const

Properties

context → AgenticContext
Run context: logger, events, tracer, clock, cancellation.
final
hashCode → int
The hash code for this object.
no setterinherited
resumeValue → Object?
The value supplied when resuming a suspended run.
final
runId → String
Identifier of this workflow run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → WorkflowState
The workflow state as it stands.
final
visit → int
How many times this node has already run in this run.
final

Methods

getOr<T>(String key, T orElse) → T
Reads a value from state, or orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
require<T>(String key) → T
Reads a required value from state.
throwIfCancelled() → void
Whether the run has been cancelled or has passed its deadline.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited