UNPKG

n8n

Version:

n8n Workflow Automation Tool

23 lines (22 loc) 2.22 kB
import type { CredentialProvider } from '@n8n/agents'; import type { User } from '@n8n/db'; import type { InstanceAiBuilderDelegate } from '@n8n/instance-ai'; import { AgentConfigService } from './agent-config.service'; import { AgentSkillsService } from './agent-skills.service'; import { AgentsService } from './agents.service'; import { AgentsBuilderService } from './builder/agents-builder.service'; import { N8nMemory } from './integrations/n8n-memory'; import { AgentThreadRepository } from './repositories/agent-thread.repository'; export declare const INSTANCE_AI_BUILDER_ADDENDUM = "## Instance AI session rules\n\nYou are running as a sub-agent inside n8n's instance AI chat; the user sees your questions as chat cards.\n\nPreview links work in this chat. Include a markdown Preview link after a successful build and when `call_agent` reports an unsupported interaction as `approval_required`, using the exact relative path from \"When To Build vs When To Converse\" (form: `[Preview](<path>)`). Do not invent absolute URLs. Do not omit the link and describe the path in plain text instead.\n\nYou can publish and unpublish the target agent with `publish_agent` and `unpublish_agent`. Never tell the user to open the agent editor and click Publish.\n\nThe Instance AI orchestrator can create workflows and data tables \u2014 never ask the user to create them manually. State missing prerequisites in your reply; the orchestrator will provision them and call you again."; export declare class InstanceAiBuilderDelegateAdapterService { private readonly agentsService; private readonly agentsBuilderService; private readonly n8nMemory; private readonly agentThreadRepository; private readonly agentConfig; private readonly agentSkills; constructor(agentsService: AgentsService, agentsBuilderService: AgentsBuilderService, n8nMemory: N8nMemory, agentThreadRepository: AgentThreadRepository, agentConfig: AgentConfigService, agentSkills: AgentSkillsService); private buildSubAgentSession; createDelegate(user: User, projectId: string, credentialProvider: CredentialProvider): InstanceAiBuilderDelegate; deleteBuilderSessions(instanceAiThreadId: string): Promise<void>; }