UNPKG

n8n

Version:

n8n Workflow Automation Tool

29 lines (28 loc) 1.37 kB
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'; import { AgentRuntimeCacheService } from './agent-runtime-cache.service'; export declare class AgentKnowledgeController { private readonly agentKnowledgeService; private readonly agentsConfig; private readonly runtimeCacheService; private readonly aiService; constructor(agentKnowledgeService: AgentKnowledgeService, agentsConfig: AgentsConfig, runtimeCacheService: AgentRuntimeCacheService, aiService: AiService); private assertKnowledgeBaseEnabled; listFiles(_req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, projectId: string, agentId: string): Promise<import("@n8n/api-types").AgentFileDto[]>; uploadFiles(req: AuthenticatedRequest<{ projectId: string; }> & { files?: Express.Multer.File[]; fileUploadError?: Error; }, _res: Response, projectId: string, agentId: string): Promise<import("@n8n/api-types").AgentFileDto[]>; deleteFile(_req: AuthenticatedRequest<{ projectId: string; }>, _res: Response, projectId: string, agentId: string, fileId: string): Promise<{ success: boolean; }>; }