eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
15 lines (14 loc) • 867 B
TypeScript
import type { CompiledToolDefinition } from "#compiler/manifest.js";
import type { CompiledModuleMap } from "#compiler/module-map.js";
import type { ResolvedToolDefinition } from "#runtime/types.js";
import type { AgentSourceOwner } from "#compiler/source-graph.js";
/**
* Resolves one compiled authored tool into a runtime-owned definition
* with live callbacks reattached from the authored module.
*
* Schema-bearing module exports are retained when they implement the validated
* runtime contract; serialized schemas from the compiled manifest are
* otherwise rehydrated into live validators. Optional hooks are reattached
* from the live module export.
*/
export declare function resolveToolDefinition(definition: CompiledToolDefinition, moduleMap: CompiledModuleMap, nodeId: string | undefined, owner: AgentSourceOwner): Promise<ResolvedToolDefinition>;