UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

6 lines (5 loc) • 490 B
import type { WorkflowRun } from "../orchestration/workflow-types.js"; /** Bind `run` to the `done` promise that settles for it — the run's starter, once, before the promise is handed out. */ export declare function bindSettledRun(done: Promise<unknown>, run: WorkflowRun): void; /** The run `done` settles for; `undefined` for a promise no run was bound to (a handle its caller assembled itself). */ export declare function settledRunOf(done: Promise<unknown>): WorkflowRun | undefined;