mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Update Chat SDK to support streaming responses (#17006)
Co-authored-by: Eugene Molodkin <eugene@n8n.io>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user