n8n
Version:
n8n Workflow Automation Tool
22 lines (21 loc) • 928 B
TypeScript
import { Logger } from '@n8n/backend-common';
import { AgentsConfig } from '@n8n/config';
import type { AuthenticatedRequest } from '@n8n/db';
import type { Response } from 'express';
import { AiService } from '../../services/ai.service';
import { AgentKnowledgeService } from './agent-knowledge.service';
export declare class AgentSandboxController {
private readonly agentKnowledgeService;
private readonly logger;
private readonly agentsConfig;
private readonly aiService;
constructor(agentKnowledgeService: AgentKnowledgeService, logger: Logger, agentsConfig: AgentsConfig, aiService: AiService);
warmKnowledgeSandbox(_req: AuthenticatedRequest<{
projectId: string;
}>, res: Response, projectId: string, agentId: string): Promise<{
accepted: true;
}>;
private isKnowledgeBaseEnabled;
private assertKnowledgeBaseEnabled;
private warmKnowledgeSandboxInBackground;
}