UNPKG

@forgeflowai/chat

Version:

This is an embeddable Chat widget for n8n. It allows the execution of AI-Powered Workflows through a Chat window.

12 lines (11 loc) 434 B
import type { Ref } from 'vue'; import type { ChatMessage } from '@forgeflowai/chat/types/messages'; export interface Chat { initialMessages: Ref<ChatMessage[]>; messages: Ref<ChatMessage[]>; currentSessionId: Ref<string | null>; waitingForResponse: Ref<boolean>; loadPreviousSession: () => Promise<string | undefined>; startNewSession: () => Promise<void>; sendMessage: (text: string) => Promise<void>; }