Skip to content

Commit c747e57

Browse files
authored
Merge pull request #297 from FlowiseAI/feature/AgentFlowV2
Feature/add agentflow v2
2 parents c904dcf + 9830332 commit c747e57

40 files changed

Lines changed: 2191 additions & 275 deletions

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ You can also customize chatbot with different configuration
146146
denyButtonText: 'Cancel',
147147
denyButtonBgColor: '#ef4444',
148148
},
149+
form: {
150+
backgroundColor: 'white',
151+
textColor: 'black',
152+
}
149153
customCSS: ``, // Add custom CSS styles. Use !important to override default styles
150154
chatWindow: {
151155
showTitle: true,

dist/components/Bot.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type FilePreview = {
2828
type: string;
2929
};
3030
type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage';
31+
type ExecutionState = 'INPROGRESS' | 'FINISHED' | 'ERROR' | 'TERMINATED' | 'TIMEOUT' | 'STOPPED';
3132
export type IAgentReasoning = {
3233
agentName?: string;
3334
messages?: string[];
@@ -39,6 +40,7 @@ export type IAgentReasoning = {
3940
};
4041
export type IAction = {
4142
id?: string;
43+
data?: any;
4244
elements?: Array<{
4345
type: string;
4446
label: string;
@@ -50,6 +52,13 @@ export type IAction = {
5052
};
5153
};
5254
export type FileUpload = Omit<FilePreview, 'preview'>;
55+
export type AgentFlowExecutedData = {
56+
nodeLabel: string;
57+
nodeId: string;
58+
data: any;
59+
previousNodeIds: string[];
60+
status?: ExecutionState;
61+
};
5362
export type MessageType = {
5463
messageId?: string;
5564
message: string;
@@ -59,6 +68,9 @@ export type MessageType = {
5968
fileUploads?: Partial<FileUpload>[];
6069
artifacts?: Partial<FileUpload>[];
6170
agentReasoning?: IAgentReasoning[];
71+
execution?: any;
72+
agentFlowEventStatus?: string;
73+
agentFlowExecutedData?: any;
6274
usedTools?: any[];
6375
action?: IAction | null;
6476
rating?: FeedbackRatingType;
@@ -73,6 +85,7 @@ export type BotProps = {
7385
apiHost?: string;
7486
onRequest?: (request: RequestInit) => Promise<void>;
7587
chatflowConfig?: Record<string, unknown>;
88+
backgroundColor?: string;
7689
welcomeMessage?: string;
7790
errorMessage?: string;
7891
botMessage?: BotMessageTheme;
@@ -89,6 +102,8 @@ export type BotProps = {
89102
titleAvatarSrc?: string;
90103
titleTextColor?: string;
91104
titleBackgroundColor?: string;
105+
formBackgroundColor?: string;
106+
formTextColor?: string;
92107
fontSize?: number;
93108
isFullPage?: boolean;
94109
footer?: FooterTheme;

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/RichTreeView.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { JSXElement } from 'solid-js';
2+
import './TreeView.css';
3+
type RichTreeViewProps = {
4+
children: JSXElement;
5+
defaultExpanded?: string[];
6+
onNodeSelect?: (itemId: string) => void;
7+
highlightItems?: string[];
8+
multiSelect?: boolean;
9+
class?: string;
10+
indentationLevel?: number;
11+
};
12+
export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element;
13+
type TreeItemProps = {
14+
itemId: string;
15+
label: string | JSXElement;
16+
children?: JSXElement;
17+
icon?: JSXElement;
18+
expandedIcon?: JSXElement;
19+
endIcon?: JSXElement;
20+
isLeaf?: boolean;
21+
};
22+
export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element;
23+
export {};
24+
//# sourceMappingURL=RichTreeView.d.ts.map

dist/components/RichTreeView.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/TreeViewDemo.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
type TreeViewDemoProps = {
2+
class?: string;
3+
};
4+
export declare const TreeViewDemo: (props: TreeViewDemoProps) => import("solid-js").JSX.Element;
5+
export {};
6+
//# sourceMappingURL=TreeViewDemo.d.ts.map

dist/components/TreeViewDemo.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/bubbles/BotBubble.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Props = {
1919
showAgentMessages?: boolean;
2020
sourceDocsTitle?: string;
2121
renderHTML?: boolean;
22-
handleActionClick: (label: string, action: IAction | undefined | null) => void;
22+
handleActionClick: (elem: any, action: IAction | undefined | null) => void;
2323
handleSourceDocumentsClick: (src: any) => void;
2424
};
2525
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare const TreeViewExample: () => import("solid-js").JSX.Element;
2+
//# sourceMappingURL=TreeViewExample.d.ts.map

0 commit comments

Comments
 (0)