@iterms/tinyflow-ai-vue 0.2.22 → 0.2.24
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.
- package/dist/index.d.ts +26 -1
- package/dist/index.js +7441 -6780
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ declare type Parameter = {
|
|
|
66
66
|
children?: Parameter[];
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
+
declare type ProviderData = SelectItem[] | ToolDefinition[] | ToolListResponse;
|
|
70
|
+
|
|
69
71
|
declare type SelectItem = {
|
|
70
72
|
value: number | string;
|
|
71
73
|
label: string | Snippet;
|
|
@@ -92,7 +94,8 @@ declare type TinyflowOptions = {
|
|
|
92
94
|
knowledge?: () => SelectItem[] | Promise<SelectItem[]>;
|
|
93
95
|
searchEngine?: () => SelectItem[] | Promise<SelectItem[]>;
|
|
94
96
|
llmGroup?: (groupType?: string | undefined) => SelectItem[] | Promise<SelectItem[]>;
|
|
95
|
-
|
|
97
|
+
tools?: () => ToolDefinition[] | ToolListResponse | Promise<ToolDefinition[] | ToolListResponse>;
|
|
98
|
+
} & Record<string, (...args: any[]) => ProviderData | Promise<ProviderData>>;
|
|
96
99
|
customNodes?: Record<string, CustomNode>;
|
|
97
100
|
onNodeExecute?: (node: Node_2) => void;
|
|
98
101
|
hiddenNodes?: string[] | (() => string[]);
|
|
@@ -101,4 +104,26 @@ declare type TinyflowOptions = {
|
|
|
101
104
|
}) => void;
|
|
102
105
|
};
|
|
103
106
|
|
|
107
|
+
declare type ToolDefinition = {
|
|
108
|
+
toolName: string;
|
|
109
|
+
description?: string | null;
|
|
110
|
+
parameters?: ToolParameterDefinition[] | null;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare type ToolListResponse = {
|
|
114
|
+
code?: string;
|
|
115
|
+
message?: string;
|
|
116
|
+
success?: boolean;
|
|
117
|
+
data?: ToolDefinition[];
|
|
118
|
+
callSuccess?: boolean;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare type ToolParameterDefinition = {
|
|
122
|
+
name: string;
|
|
123
|
+
type?: string | null;
|
|
124
|
+
description?: string | null;
|
|
125
|
+
required?: boolean;
|
|
126
|
+
enumValues?: string[] | null;
|
|
127
|
+
};
|
|
128
|
+
|
|
104
129
|
export { }
|