UNPKG

eve

Version:

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

22 lines (21 loc) 932 B
/** * Bridges a delegated subagent's terminal outcome back to its parent * driver via the subagent-result hook. Pure projection helpers live * in `delegated-parent-result.ts` so the workflow step-proxy transform * doesn't strip them from this file. */ import type { RuntimeSubagentResultActionResult } from "#runtime/actions/types.js"; import type { TokenUsage } from "#shared/token-usage.js"; /** * Resumes the parent driver's hook with a delegated subagent result. * No-op for root sessions. * * `usage` — the completed child's session-total token spend — is * attached to success results so the caller can attribute the * subagent's tokens. Error results never carry usage. */ export declare function notifyDelegatedParentStep(input: { readonly result: RuntimeSubagentResultActionResult | undefined; readonly serializedContext: Record<string, unknown>; readonly usage?: TokenUsage; }): Promise<void>;