eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
19 lines (18 loc) • 1 kB
TypeScript
import type { RuntimeSubagentChildResult } from "#shared/action-types.js";
import type { AgentActionTraceTerminalState } from "#tracing/agent-trace-state.js";
export declare function recordNestedAgentInvocationTerminal(input: {
readonly callId: string;
readonly serializedContext: Record<string, unknown>;
readonly sessionId: string;
readonly terminal: AgentActionTraceTerminalState;
readonly turnId?: string;
}): Record<string, unknown>;
export declare function settleAgentInvocationTrace(input: {
readonly acceptedAtMs: number;
readonly result: RuntimeSubagentChildResult;
readonly serializedContext: Record<string, unknown>;
readonly sessionId: string;
}): Record<string, unknown>;
/** Called inside dispatch/settlement steps, so replay reuses the flushed context. */
export declare function flushAgentInvocationTraces(serializedContext: Record<string, unknown>): Promise<Record<string, unknown>>;
export declare function invocationError(value: unknown): Error;