Skip to content

Commit

Permalink
Merge pull request #240 from FlowiseAI/feature/sse
Browse files Browse the repository at this point in the history
Feature: Server-Sent Events
  • Loading branch information
HenryHengZJ authored Sep 16, 2024
2 parents b32def9 + 8134577 commit e897a6e
Show file tree
Hide file tree
Showing 14 changed files with 453 additions and 237 deletions.
4 changes: 4 additions & 0 deletions dist/components/Bot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type IAgentReasoning = {
agentName?: string;
messages?: string[];
usedTools?: any[];
artifacts?: FileUpload[];
sourceDocuments?: any[];
instructions?: string;
nextAgent?: string;
Expand All @@ -56,9 +57,12 @@ export type MessageType = {
sourceDocuments?: any;
fileAnnotations?: any;
fileUploads?: Partial<FileUpload>[];
artifacts?: Partial<FileUpload>[];
agentReasoning?: IAgentReasoning[];
usedTools?: any[];
action?: IAction | null;
rating?: FeedbackRatingType;
id?: string;
};
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Bot.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/components/bubbles/AgentReasoningBubble.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { FileUpload } from '../Bot';
type Props = {
apiHost?: string;
chatflowid: string;
chatId: string;
agentName: string;
agentMessage: string;
agentArtifacts?: FileUpload[];
backgroundColor?: string;
textColor?: string;
fontSize?: number;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/bubbles/AgentReasoningBubble.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/components/bubbles/BotBubble.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ type Props = {
feedbackColor?: string;
isLoading: boolean;
showAgentMessages?: boolean;
sourceDocsTitle?: string;
handleActionClick: (label: string, action: IAction | undefined | null) => void;
handleSourceDocumentsClick: (src: any) => void;
};
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
export {};
Expand Down
2 changes: 1 addition & 1 deletion dist/components/bubbles/BotBubble.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"license": "MIT",
"dependencies": {
"@babel/core": "^7.22.1",
"@microsoft/fetch-event-source": "^2.0.1",
"@ts-stack/markdown": "^1.4.0",
"device-detector-js": "^3.0.3",
"lodash": "^4.17.21",
"prettier": "^3.1.0",
"socket.io-client": "^4.6.2",
"solid-element": "1.7.0",
"solid-js": "1.7.1",
"zod": "^3.22.4"
Expand Down
Loading

0 comments on commit e897a6e

Please sign in to comment.