Member Junction
    Preparing search index...

    Interface FlowAgentTypePromptParams

    Configuration parameters for Flow Agent Type.

    interface FlowAgentTypePromptParams {
        joinMode?: JoinMode;
        maxConcurrentSteps?: number;
        traversalMode?: TraversalMode;
    }
    Index

    Properties

    joinMode?: JoinMode

    How a node with several incoming edges decides it may start.

    'all' (AND-join) is the default and matches Prerequisite dependency semantics — which is precisely why the flow and task-graph models converge: "wait for every predecessor" is the same rule in both. 'any' (OR-join) matches an Optional dependency, where the first completed predecessor is enough.

    Only consulted in 'parallel' mode; sequential traversal never has more than one predecessor in flight, so there is nothing to join.

    'all'
    
    maxConcurrentSteps?: number

    Maximum steps executed concurrently in 'parallel' mode.

    A bound rather than a target. Fan-out width is authored, not measured, so a flow with thirty independent branches would otherwise launch thirty agent runs at once and exhaust the model provider's rate limit before it exhausted anything the flow author was thinking about.

    5
    
    traversalMode?: TraversalMode

    How the flow advances when more than one outgoing edge is satisfied.

    Defaults to 'sequential', and that default is load-bearing. Every design-time flow authored before this existed was traversed by a single program counter that followed the highest-priority edge and silently discarded the rest. Some of those flows have fan-out shapes drawn in the editor that never actually ran in parallel — flipping the default would start executing branches their authors have never seen run, on a schedule nobody chose.

    'parallel' follows every satisfied edge and honors joins at fan-in. Graphs built from a TaskGraphSpec always run parallel regardless of this setting: an agent that expressed independent work as independent nodes meant them to run at once, and serializing them would discard the only information the decomposition carried.

    'sequential'