UNPKG

n8n

Version:

n8n Workflow Automation Tool

27 lines (26 loc) 990 B
import { WithTimestampsAndStringId } from '@n8n/db'; import { AgentExecutionThread } from './agent-execution-thread.entity'; import type { RecordedToolCall, TimelineEvent } from '../execution-recorder'; export type AgentExecutionStatus = 'success' | 'error'; export type AgentExecutionHitlStatus = 'suspended' | 'resumed'; export declare class AgentExecution extends WithTimestampsAndStringId { thread: AgentExecutionThread; threadId: string; status: AgentExecutionStatus; startedAt: Date | null; stoppedAt: Date | null; duration: number; userMessage: string; assistantResponse: string; model: string | null; promptTokens: number | null; completionTokens: number | null; totalTokens: number | null; cost: number | null; toolCalls: RecordedToolCall[] | null; timeline: TimelineEvent[] | null; error: string | null; hitlStatus: AgentExecutionHitlStatus | null; workingMemory: string | null; source: string | null; }