feat: Update Chat SDK to support streaming responses (#17006)

Co-authored-by: Eugene Molodkin <eugene@n8n.io>
This commit is contained in:
Benjamin Schroth
2025-07-10 12:25:29 +02:00
committed by GitHub
parent b9e7b719c0
commit 3edadb5a75
26 changed files with 1670 additions and 37 deletions

View File

@@ -926,7 +926,7 @@ export type IExecuteFunctions = ExecuteFunctions.GetNodeParameterFn &
putExecutionToWait(waitTill: Date): Promise<void>;
sendMessageToUI(message: any): void;
sendResponse(response: IExecuteResponsePromiseData): void;
sendChunk(type: ChunkType, content?: IDataObject | string): void;
sendChunk(type: ChunkType, itemIndex: number, content?: IDataObject | string): void;
isStreaming(): boolean;
// TODO: Make this one then only available in the new config one
@@ -2944,6 +2944,8 @@ export interface StructuredChunk {
metadata: {
nodeId: string;
nodeName: string;
runIndex: number;
itemIndex: number;
timestamp: number;
};
}