n8n
Version:
n8n Workflow Automation Tool
11 lines (10 loc) • 434 B
TypeScript
import type { BuiltTool } from '@n8n/agents';
import type { EphemeralNodeExecutor } from '../../../node-execution';
import type { AgentJsonToolConfig } from '@n8n/api-types';
export interface NodeToolFactoryContext {
executor: EphemeralNodeExecutor;
projectId: string;
}
export declare function resolveNodeTool(toolSchema: Extract<AgentJsonToolConfig, {
type: 'node';
}>, ctx: NodeToolFactoryContext): Promise<BuiltTool>;