Skip to content

Commit e897a6e

Browse files
authored
Merge pull request #240 from FlowiseAI/feature/sse
Feature: Server-Sent Events
2 parents b32def9 + 8134577 commit e897a6e

14 files changed

+453
-237
lines changed

dist/components/Bot.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type IAgentReasoning = {
3232
agentName?: string;
3333
messages?: string[];
3434
usedTools?: any[];
35+
artifacts?: FileUpload[];
3536
sourceDocuments?: any[];
3637
instructions?: string;
3738
nextAgent?: string;
@@ -56,9 +57,12 @@ export type MessageType = {
5657
sourceDocuments?: any;
5758
fileAnnotations?: any;
5859
fileUploads?: Partial<FileUpload>[];
60+
artifacts?: Partial<FileUpload>[];
5961
agentReasoning?: IAgentReasoning[];
62+
usedTools?: any[];
6063
action?: IAction | null;
6164
rating?: FeedbackRatingType;
65+
id?: string;
6266
};
6367
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
6468
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;

dist/components/Bot.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/components/bubbles/AgentReasoningBubble.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import { FileUpload } from '../Bot';
12
type Props = {
3+
apiHost?: string;
4+
chatflowid: string;
5+
chatId: string;
26
agentName: string;
37
agentMessage: string;
8+
agentArtifacts?: FileUpload[];
49
backgroundColor?: string;
510
textColor?: string;
611
fontSize?: number;

dist/components/bubbles/AgentReasoningBubble.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/components/bubbles/BotBubble.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ type Props = {
1515
feedbackColor?: string;
1616
isLoading: boolean;
1717
showAgentMessages?: boolean;
18+
sourceDocsTitle?: string;
1819
handleActionClick: (label: string, action: IAction | undefined | null) => void;
20+
handleSourceDocumentsClick: (src: any) => void;
1921
};
2022
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
2123
export {};

dist/components/bubbles/BotBubble.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"license": "MIT",
1818
"dependencies": {
1919
"@babel/core": "^7.22.1",
20+
"@microsoft/fetch-event-source": "^2.0.1",
2021
"@ts-stack/markdown": "^1.4.0",
2122
"device-detector-js": "^3.0.3",
2223
"lodash": "^4.17.21",
2324
"prettier": "^3.1.0",
24-
"socket.io-client": "^4.6.2",
2525
"solid-element": "1.7.0",
2626
"solid-js": "1.7.1",
2727
"zod": "^3.22.4"

0 commit comments

Comments
 (0)