Member Junction
    Preparing search index...

    Class TaskGraphContinuationDeliverer

    Delivers a finished graph's outcome — as a conversation message, or by starting the submitting agent a fresh turn.

    The chain is bounded, and that is what took a schema change to make true. A graph may declare continuation: 'reinvoke', and the agent it restarts can emit another graph, which can reinvoke again. The guard for that (MAX_REINVOKE_DEPTH) shipped in Phase 3, but the number it compared was permanently zero: TaskGraphService.Submit reads ReinvokeDepth from its caller, and a reinvoked agent had no way to know it was a continuation. AIAgentRun.ContinuationDepth closes that loop — this stamps depth + 1 on the run it starts, BaseAgent passes it into any graph that run submits, and the cap finally compares against something real.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Starts the submitting agent a fresh turn carrying the graph's outcome.

      Never throws, for the same reason PostMessage does not: the dispatcher calls this inside the compare-and-swap that marks a completion delivered.

      The new run records ReinvokeDepth + 1 so the chain is bounded. The dispatcher has already refused to call this when the cap is reached — it degrades to PostMessage — so arriving here means there is budget left, and stamping the depth is what keeps that true for the next hop.

      Parameters

      Returns Promise<void>