eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
45 lines (44 loc) • 1.88 kB
TypeScript
import type { PreparedRuntimeTool } from "#runtime/sessions/turn.js";
import type { ResolvedAgent } from "#runtime/types.js";
import type { WorkspaceRuntimeSpec } from "#runtime/workspace/types.js";
import type { InternalAgentModelDefinition } from "#shared/agent-definition.js";
/**
* Fixed internal model reference used only by the framework-owned bootstrap
* runtime path.
*/
export declare const BOOTSTRAP_RUNTIME_MODEL_ID = "eve-bootstrap-model";
/**
* Runtime-owned model identifier prepared for one harness turn.
*/
export type RuntimeModelReference = Readonly<InternalAgentModelDefinition>;
/**
* Minimal runtime-owned agent shape prepared for one harness turn.
*/
export interface RuntimeTurnAgent {
readonly id: string;
readonly instructions: readonly string[];
/**
* Optional model used only for compaction summaries.
*
* When omitted, the harness uses the active turn model for compaction.
*/
readonly compactionModel?: RuntimeModelReference;
readonly model: RuntimeModelReference;
readonly nodeId?: string;
readonly outputSchema?: ResolvedAgent["config"]["outputSchema"];
readonly tools: readonly PreparedRuntimeTool[];
readonly workspaceSpec: WorkspaceRuntimeSpec;
}
/**
* Static system prompt for the bootstrap runtime path.
*/
export declare const BOOTSTRAP_RUNTIME_SYSTEM_PROMPT = "You are the eve bootstrap agent. Be concise, stay grounded in the current conversation, and do not assume tools are available unless the runtime provides them.";
/**
* Creates the runtime-owned turn-preparation shape from a resolved authored
* agent and the authored tool descriptors prepared for the harness.
*/
export declare function createResolvedRuntimeTurnAgent(input: {
readonly agent: ResolvedAgent;
readonly nodeId?: string;
readonly tools: readonly PreparedRuntimeTool[];
}): RuntimeTurnAgent;