UNPKG

n8n

Version:

n8n Workflow Automation Tool

15 lines (14 loc) 999 B
import { DataSource, Repository } from '@n8n/typeorm'; import { AgentExecution } from '../entities/agent-execution.entity'; export declare class AgentExecutionRepository extends Repository<AgentExecution> { constructor(dataSource: DataSource); findByThreadIdOrdered(threadId: string): Promise<AgentExecution[]>; findFirstUserMessageByThreadIds(threadIds: string[]): Promise<Map<string, string>>; findFirstSourceByThreadIds(threadIds: string[]): Promise<Map<string, string>>; findSuspendedWithoutModel(threadId: string): Promise<AgentExecution[]>; findLatestSuspendedByThreadId(threadId: string): Promise<AgentExecution | null>; backfillModel(executionIds: string[], model: string): Promise<void>; deleteByThreadId(threadId: string): Promise<void>; findBlobRefsByThreadId(threadId: string): Promise<Array<Pick<AgentExecution, 'id' | 'storedAt'>>>; findBlobRefsByAgentId(agentId: string): Promise<Array<Pick<AgentExecution, 'id' | 'threadId' | 'storedAt'>>>; }