UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

22 lines (21 loc) 1.03 kB
/** * Starts every pending runtime action for the parked parent session. * * Each child run starts in task mode, emits a parent `subagent.called` * control-plane event, and then runs independently on its own child * stream. Records each child's continuation token on the parent * session and returns the updated snapshot-bearing state. */ import type { RuntimeSubagentResultActionResult } from "#runtime/actions/types.js"; import { type DurableSessionState } from "#execution/durable-session-store.js"; export declare function dispatchRuntimeActionsStep(input: { readonly callbackBaseUrl?: string; /** Internal hook that receives child completion and HITL payloads. */ readonly parentContinuationToken?: string; readonly parentWritable: WritableStream<Uint8Array>; readonly serializedContext: Record<string, unknown>; readonly sessionState: DurableSessionState; }): Promise<{ readonly results: readonly RuntimeSubagentResultActionResult[]; readonly sessionState: DurableSessionState; }>;