eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
13 lines (12 loc) • 612 B
TypeScript
import type { ResolvedToolDefinition } from "#runtime/types.js";
import type { ToolDefinition } from "#public/definitions/tool.js";
/**
* Converter that strips internal identity fields from a framework
* {@link ResolvedToolDefinition} so it can be re-exported as a public
* {@link ToolDefinition}.
*
* Framework tools have the internal `(input) => output` signature.
* The public {@link ToolDefinition.execute} expects `(input, ctx)`.
* This wrapper bridges the gap — `ctx` is trailing and omitted.
*/
export declare function toPublicToolDefinition(definition: ResolvedToolDefinition): ToolDefinition;