UNPKG

@n8n-plus/n8n-plus

Version:

n8n Workflow Automation Tool (plus edition)

7 lines (6 loc) 499 B
import type { AgentPersistedMessageDto } from '@n8n/api-types'; import type { AgentExecution } from '../entities/agent-execution.entity'; type ExecutionTranscript = Pick<AgentExecution, 'id' | 'userMessage' | 'assistantResponse' | 'toolCalls' | 'timeline' | 'error'>; export declare function executionToMessagesDto(execution: ExecutionTranscript): AgentPersistedMessageDto[]; export declare function executionsToMessagesDto(executions: ExecutionTranscript[]): AgentPersistedMessageDto[]; export {};