@n8n/n8n-nodes-langchain
Version:
6 lines (5 loc) • 444 B
TypeScript
import type { StreamEvent } from '@langchain/core/types/stream';
import type { IterableReadableStream } from '@langchain/core/utils/stream';
import type { IExecuteFunctions } from 'n8n-workflow';
import type { AgentResult } from './types';
export declare function processEventStream(ctx: IExecuteFunctions, eventStream: IterableReadableStream<StreamEvent>, itemIndex: number, finalizeOutput?: (output: string) => string): Promise<AgentResult>;