n8n
Version:
n8n Workflow Automation Tool
47 lines (46 loc) • 2.34 kB
TypeScript
import { type InstanceAiEvalExecutionRequest, type InstanceAiEvalExecutionResult } from '@n8n/api-types';
import { Logger } from '@n8n/backend-common';
import { ExecutionsConfig } from '@n8n/config';
import type { User } from '@n8n/db';
import { BinaryDataService } from 'n8n-core';
import { ActiveExecutions } from '../../../active-executions';
import { LoadNodesAndCredentials } from '../../../load-nodes-and-credentials';
import { NodeTypes } from '../../../node-types';
import { PostHogClient } from '../../../posthog';
import { WorkflowRunner } from '../../../workflow-runner';
import { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
import { WorkflowStaticDataService } from '../../../workflows/workflow-static-data.service';
export declare class EvalExecutionService {
private readonly workflowFinderService;
private readonly nodeTypes;
private readonly logger;
private readonly postHogClient;
private readonly workflowRunner;
private readonly activeExecutions;
private readonly executionsConfig;
private readonly binaryDataService;
private readonly workflowStaticDataService;
private readonly loadNodesAndCredentials;
constructor(workflowFinderService: WorkflowFinderService, nodeTypes: NodeTypes, logger: Logger, postHogClient: PostHogClient, workflowRunner: WorkflowRunner, activeExecutions: ActiveExecutions, executionsConfig: ExecutionsConfig, binaryDataService: BinaryDataService, workflowStaticDataService: WorkflowStaticDataService, loadNodesAndCredentials: LoadNodesAndCredentials);
executeWithLlmMock(workflowId: string, user: User, options?: InstanceAiEvalExecutionRequest): Promise<InstanceAiEvalExecutionResult>;
private isInterceptionEnabled;
private analyzeWorkflow;
private generateBypassPinData;
private execute;
private blankPersistedStaticData;
private buildWorkflow;
private findStartNode;
private asTriggerNode;
private findWebhookNode;
private checkNodeConfig;
private patchParameterIssuesForEval;
private buildTriggerPinData;
private buildExecutionData;
private recordWireServerTurn;
private createInterceptingHandler;
private markNodeAsPinned;
private buildPartialFailureResult;
private hydrateBinaryData;
private buildResult;
private errorResult;
}