Member Junction
    Preparing search index...

    Flow execution state that tracks the progress through the workflow. This is maintained by the Flow Agent Type during execution.

    Note: Loop iteration tracking is now handled by BaseAgent._iterationContext. FlowExecutionState only tracks flow-specific navigation state.

    Index

    Constructors

    Properties

    agentId: string

    The agent ID for this flow execution

    completedStepIds: Set<string> = ...

    Set of completed step IDs

    currentStepId?: string

    The current step being executed

    Decisions: GraphDecisions = NO_DECISIONS

    What this run's Decision steps have answered, keyed by each step's key and then by question.

    Answers holds the answers a path condition may act on, and is what the decisions root reads. Unresolved says why each of the rest is not usable (the call failed, the answer fell below its question's minConfidence, or the step was skipped), and a condition that reads one of them holds. Never written into the payload.

    executionMode: FlowExecutionMode = 'dispatch'

    Where this run's steps execute. Decided once by DetermineInitialStep and read by every later hook, so a run never switches engines part-way through.

    executionModeReason?: string

    Why executionMode was chosen. Unset until DetermineInitialStep has decided.

    executionPath: string[] = []

    Ordered list of step IDs in execution order

    FailedDecisionKeys: Set<string> = ...

    The keys of the Decision steps whose call failed in this run.

    A walker cannot retry, so such a decision never answers in this run, and a path reading it can never be taken: it is passed over, and a recovery path ranked below it can be. An answer below its minConfidence is different — the path might have been the one to take — and holds.

    pendingStartStepIds?: string[]

    Remaining starting step IDs queued for execution in inRun mode when a flow has multiple starting steps

    specialFields?: { confidence?: number; message?: string; reasoning?: string }

    Special fields from action output mappings (message, reasoning, confidence)

    stepResults: Map<string, unknown> = ...

    Map of step results by step ID