UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

17 lines • 1.2 kB
import type { WorkflowEngine } from '@adonis-agora/durable'; /** * Set going, in this process, what of `runId`'s tree waits for a worker: the run itself while it is * `pending`, and — while it is suspended on a delegation — the children it waits on, the same way. * Each through `engine.runOne`, which takes the run's lease first: a run another worker holds is left * to it, so a run still has exactly one executor. Returns once they are set going, not once they end; * an execution's failure is the run's own (`failed` on its row) and only logged here. * * `driving` holds the runs this process set going and has not seen end — one set per runner, so two * readers of one run do not both start it. * * Under a dispatcher that only persists a started run (a no-op one, with `durable:work` polling), a * caller that is itself a run of that worker — a channel job reading the turn it started — holds the * worker's tick: the turn would wait for the next tick, which waits for the caller. */ export declare function drivePendingRuns(engine: WorkflowEngine, runId: string, driving: Set<string>, seen?: Set<string>): Promise<void>; //# sourceMappingURL=drive-pending-runs.d.ts.map