UNPKG

eve

Version:

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

19 lines (18 loc) 963 B
import type { DeliverPayload, SessionAuthContext } from "#channel/types.js"; import type { DurableSessionState } from "#execution/durable-session-store.js"; /** * Coalesces inbound deliver payloads and routes any descendant-bound input * responses down to the owning child, returning the parent-local remainder * (or `undefined` when the whole payload routed away). * * Short-circuits via `hasProxyInputRequests` so the common no-active-descendant * path skips a durable step boundary. Lives in its own non-step module so both * the driver and the active turn can share it (a `"use step"` module cannot * re-export plain helpers into a workflow body). */ export declare function routeDeliverToChildren(input: { readonly auth?: SessionAuthContext | null; readonly parentWritable: WritableStream<Uint8Array>; readonly payloads: readonly DeliverPayload[]; readonly sessionState: DurableSessionState; }): Promise<DeliverPayload | undefined>;