UNPKG

n8n

Version:

n8n Workflow Automation Tool

11 lines (10 loc) 614 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>>; findSuspendedWithoutModel(threadId: string): Promise<AgentExecution[]>; backfillModel(executionIds: string[], model: string): Promise<void>; deleteByThreadId(threadId: string): Promise<void>; }