eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
36 lines (35 loc) • 1.43 kB
TypeScript
import { z } from "#compiled/zod/index.js";
import type { PreparedRuntimeDelegationTool } from "#runtime/sessions/turn.js";
import type { ResolvedRuntimeDelegationNode } from "#runtime/types.js";
/**
* One runtime-owned subagent tracked by the prepared registry.
*/
interface RuntimeRegisteredSubagent {
readonly definition: ResolvedRuntimeDelegationNode;
readonly prepared: PreparedRuntimeDelegationTool;
}
/**
* Runtime-owned registry that exposes resolved subagents as model-visible tools.
*/
export interface RuntimeSubagentRegistry {
readonly preparedTools: readonly PreparedRuntimeDelegationTool[];
readonly subagentsByName: ReadonlyMap<string, RuntimeRegisteredSubagent>;
readonly subagentsByNodeId: ReadonlyMap<string, RuntimeRegisteredSubagent>;
}
/**
* Stable input schema lowered onto every subagent tool. Subagents always
* accept one free-form `message` string from the parent agent.
*/
export declare const SUBAGENT_TOOL_INPUT_SCHEMA: z.ZodObject<{
message: z.ZodString;
outputSchema: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
}, z.core.$strict>;
/**
* Builds the runtime-owned registry for the resolved subagents visible from one
* runtime agent node.
*/
export declare function createRuntimeSubagentRegistry(input: {
readonly reservedToolNames?: readonly string[];
readonly subagents: readonly ResolvedRuntimeDelegationNode[];
}): RuntimeSubagentRegistry;
export {};