UNPKG

n8n

Version:

n8n Workflow Automation Tool

7 lines (6 loc) 353 B
import type { BaseMessageChunk, BaseMessageLike } from '@langchain/core/messages'; import type { BaseChatModelCallOptions } from '@langchain/core/language_models/chat_models'; export interface N8nAIProvider { invoke(message: BaseMessageLike[], options?: BaseChatModelCallOptions): Promise<string>; mapResponse(data: BaseMessageChunk): string; }