UNPKG

n8n

Version:

n8n Workflow Automation Tool

32 lines (31 loc) 1.49 kB
import type { BuiltTool, CredentialProvider } from '@n8n/agents'; import type { User } from '@n8n/db'; import { WorkflowRepository } from '@n8n/db'; import { AgentsToolsService } from '../agents-tools.service'; import { AgentsService } from '../agents.service'; import type { AgentJsonConfig } from '../json-config/agent-json-config'; import { AgentSecureRuntime } from '../runtime/agent-secure-runtime'; import { BuilderModelLookupService } from './builder-model-lookup.service'; export interface AgentConfigSnapshot { config: AgentJsonConfig | null; configHash: string | null; updatedAt: string | null; versionId: string | null; } export declare function getAgentConfigHash(config: AgentJsonConfig | null): string | null; export interface BuilderTools { json: BuiltTool[]; shared: BuiltTool[]; } export declare class AgentsBuilderToolsService { private readonly agentsService; private readonly secureRuntime; private readonly workflowRepository; private readonly agentsToolsService; private readonly builderModelLookupService; constructor(agentsService: AgentsService, secureRuntime: AgentSecureRuntime, workflowRepository: WorkflowRepository, agentsToolsService: AgentsToolsService, builderModelLookupService: BuilderModelLookupService); getTools(agentId: string, projectId: string, credentialProvider: CredentialProvider, user: User): BuilderTools; private getJsonTools; private getSharedTools; private getConfigSnapshot; }