UNPKG

n8n

Version:

n8n Workflow Automation Tool

11 lines (10 loc) 452 B
import type { BuiltTool } from '@n8n/agents'; import type { EphemeralNodeExecutor } from '../../../node-execution'; import type { AgentJsonToolConfig } from '../json-config/agent-json-config'; export interface NodeToolFactoryContext { executor: EphemeralNodeExecutor; projectId: string; } export declare function resolveNodeTool(toolSchema: Extract<AgentJsonToolConfig, { type: 'node'; }>, ctx: NodeToolFactoryContext): Promise<BuiltTool>;