n8n
Version:
n8n Workflow Automation Tool
15 lines (14 loc) • 538 B
TypeScript
import type { Agent } from '../entities/agent.entity';
import type { AgentRepository } from '../repositories/agent.repository';
export type SubAgentConfigRef = {
agentId: string;
useWhen?: string;
};
export type ResolvedSubAgentRef = SubAgentConfigRef & {
agent: Agent | null;
};
export declare function resolveUniqueSubAgents({ refs, projectId, agentRepository, }: {
refs: SubAgentConfigRef[];
projectId: string;
agentRepository: Pick<AgentRepository, 'findByIdAndProjectId'>;
}): Promise<ResolvedSubAgentRef[]>;