UNPKG

eve

Version:

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

30 lines (29 loc) 1.18 kB
import { type DurableCompiledArtifactsSource } from "#runtime/durable-compiled-artifacts-source.js"; import { type DurableSessionState } from "#execution/durable-session-store.js"; import type { RunSessionLimits } from "#channel/types.js"; import type { JsonObject } from "#shared/json.js"; /** * Result returned by {@link createSessionStep}. * * Exposes the projected {@link DurableSessionState} the driver needs to * drive the turn loop. */ export interface CreateSessionStepResult { readonly state: DurableSessionState; } /** * Creates the durable session and returns the initial snapshot-bearing * state before the workflow enters its turn loop. * `nodeId` targets a subagent node in the compiled graph; omitted for * the root agent. */ export declare function createSessionStep(input: { readonly compiledArtifactsSource: DurableCompiledArtifactsSource; readonly continuationToken: string; readonly inheritedLimits?: RunSessionLimits; readonly outputSchema?: JsonObject; readonly nodeId?: string; readonly rootSessionId?: string; readonly sessionId: string; readonly subagentDepth?: number; }): Promise<CreateSessionStepResult>;