@glodon-aiot/agent-cli-ui 3.26.0-alpha.4 → 3.26.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const isResultExec: (result?: string) => boolean;
|
|
3
|
+
type ToolStep = {
|
|
4
|
+
type?: string;
|
|
5
|
+
data?: {
|
|
6
|
+
pluginName?: string;
|
|
7
|
+
pluginCode?: string;
|
|
8
|
+
funcName?: string;
|
|
9
|
+
funcCode?: string;
|
|
10
|
+
thought?: string;
|
|
11
|
+
parameters?: {
|
|
12
|
+
query?: unknown;
|
|
13
|
+
};
|
|
14
|
+
requestBody?: unknown;
|
|
15
|
+
result?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
interface ToolCallsProps {
|
|
19
|
+
actions?: ToolStep[][];
|
|
20
|
+
calling: boolean;
|
|
21
|
+
debug?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare const ToolCalls: React.FC<ToolCallsProps>;
|
|
24
|
+
export default ToolCalls;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IHistory, IApplication } from '@glodon-aiot/apis';
|
|
3
3
|
import { Session } from '@glodon-aiot/bot-client-sdk';
|
|
4
|
+
import { isResultExec } from './ToolCalls';
|
|
4
5
|
import { MarkdownProps } from '@glodon-aiot/react-components/dist/src/components/Markdown';
|
|
5
6
|
interface HistoryItemProps {
|
|
6
7
|
application: IApplication;
|
|
@@ -15,6 +16,6 @@ interface HistoryItemProps {
|
|
|
15
16
|
actions?: boolean;
|
|
16
17
|
markdown?: Partial<MarkdownProps>;
|
|
17
18
|
}
|
|
18
|
-
export
|
|
19
|
+
export { isResultExec };
|
|
19
20
|
declare const HistoryItem: React.FC<HistoryItemProps>;
|
|
20
21
|
export default HistoryItem;
|
package/dist/src/constant.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { default as icon } from './assets/icon.svg';
|
|
2
2
|
import { default as brand } from './assets/brand.svg';
|
|
3
3
|
import { default as IconThink } from './assets/think.svg';
|
|
4
|
+
import { default as IconTool } from './assets/tool.svg';
|
|
4
5
|
import { AgentClientUIConfig } from './types';
|
|
5
6
|
export declare const defaultUIConfig: AgentClientUIConfig;
|
|
6
7
|
export declare const defaultApiUrl = "https://copilot.glodon.com/api/cvforce";
|
|
7
8
|
export declare const defaultDovViewerUrl = "https://copilot.glodon.com/portal/_/cvforce/doc-viewer/";
|
|
8
|
-
export { icon, brand, IconThink };
|
|
9
|
+
export { icon, brand, IconThink, IconTool };
|
|
9
10
|
export declare const UNNAMED_SESSION_NAME = "\u672A\u547D\u540D\u4F1A\u8BDD";
|
|
10
11
|
export declare const KB = 1024;
|
|
11
12
|
export declare const MB: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/agent-cli-ui",
|
|
3
|
-
"version": "3.26.0-alpha.
|
|
3
|
+
"version": "3.26.0-alpha.5",
|
|
4
4
|
"module": "./dist/es/index.mjs",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"typings": "./dist/src/index.d.ts",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ant-design/icons": "^5.3.4",
|
|
34
|
-
"@glodon-aiot/apis": "^3.26.0-alpha.
|
|
35
|
-
"@glodon-aiot/bot-client-sdk": "^3.26.0-alpha.
|
|
36
|
-
"@glodon-aiot/react-components": "^3.26.0-alpha.
|
|
34
|
+
"@glodon-aiot/apis": "^3.26.0-alpha.5",
|
|
35
|
+
"@glodon-aiot/bot-client-sdk": "^3.26.0-alpha.5",
|
|
36
|
+
"@glodon-aiot/react-components": "^3.26.0-alpha.5",
|
|
37
37
|
"@matejmazur/react-mathjax": "^0.1.10",
|
|
38
38
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
39
39
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|