import { ToolDefinition } from '../core/schema.js'; /** * FunctionExecutor - Executes async functions * Supports functions defined in: * 1. Embedded code in tool YAML (legacy) * 2. Colocated .ts files (recommended) * * For .ts files, the tool directory structure should be: * tools/provider/tool-name/ * ├── definition.yaml * └── tool-name.ts (exports default async function) */ export declare class FunctionExecutor { private toolsPath; constructor(toolsPath?: string); /** * Execute a tool that runs an async function. * Supports both embedded code and external .ts/.js files. * * @param tool - Tool definition * @param params - Tool parameters * @param credentials - Optional per-call credential overrides passed as `context.credentials` * to the tool function. The function can use them with: * `const token = context?.credentials?.MY_TOKEN ?? process.env.MY_TOKEN;` * Values are never logged. Falls back to undefined when not provided. */ execute(tool: ToolDefinition, params: Record, credentials?: Record): Promise; } export default FunctionExecutor; //# sourceMappingURL=function-executor.d.ts.map