eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
10 lines (9 loc) • 668 B
TypeScript
import type { ContextContainer } from "#context/container.js";
import type { HarnessEmissionState } from "#harness/emission.js";
import { type RuntimeIdentity, type UnstampedMessageStreamEvent } from "#protocol/message.js";
import type { ResolvedAgent } from "#runtime/types.js";
/** Binds dynamic connection lifecycle dispatch to one execution context. */
export declare function bindDynamicConnections(ctx: ContextContainer, agent: Pick<ResolvedAgent, "dynamicConnectionResolvers">): {
dispatch: (event: UnstampedMessageStreamEvent) => Promise<void>;
rehydrate(state: HarnessEmissionState, runtime: RuntimeIdentity, betweenTurns: boolean): Promise<void>;
};