Flowise

Форк
0
/
OpenAI Assistant.json 
251 строка · 10.2 Кб
1
{
2
    "description": "OpenAI Assistant that has instructions and can leverage models, tools, and knowledge to respond to user queries",
3
    "categories": "Custom Tool, SerpAPI,OpenAI Assistant,Calculator Tool,Langchain",
4
    "framework": "Langchain",
5
    "badge": "NEW",
6
    "nodes": [
7
        {
8
            "id": "openAIAssistant_0",
9
            "position": {
10
                "x": 1237.914576178543,
11
                "y": 140
12
            },
13
            "type": "customNode",
14
            "data": {
15
                "id": "openAIAssistant_0",
16
                "label": "OpenAI Assistant",
17
                "version": 3,
18
                "name": "openAIAssistant",
19
                "type": "OpenAIAssistant",
20
                "baseClasses": ["OpenAIAssistant"],
21
                "category": "Agents",
22
                "description": "An agent that uses OpenAI Assistant API to pick the tool and args to call",
23
                "inputParams": [
24
                    {
25
                        "label": "Select Assistant",
26
                        "name": "selectedAssistant",
27
                        "type": "asyncOptions",
28
                        "loadMethod": "listAssistants",
29
                        "id": "openAIAssistant_0-input-selectedAssistant-asyncOptions"
30
                    },
31
                    {
32
                        "label": "Disable File Download",
33
                        "name": "disableFileDownload",
34
                        "type": "boolean",
35
                        "description": "Messages can contain text, images, or files. In some cases, you may want to prevent others from downloading the files. Learn more from OpenAI File Annotation <a target=\"_blank\" href=\"https://platform.openai.com/docs/assistants/how-it-works/managing-threads-and-messages\">docs</a>",
36
                        "optional": true,
37
                        "additionalParams": true,
38
                        "id": "openAIAssistant_0-input-disableFileDownload-boolean"
39
                    }
40
                ],
41
                "inputAnchors": [
42
                    {
43
                        "label": "Allowed Tools",
44
                        "name": "tools",
45
                        "type": "Tool",
46
                        "list": true,
47
                        "id": "openAIAssistant_0-input-tools-Tool"
48
                    },
49
                    {
50
                        "label": "Input Moderation",
51
                        "description": "Detect text that could generate harmful output and prevent it from being sent to the language model",
52
                        "name": "inputModeration",
53
                        "type": "Moderation",
54
                        "optional": true,
55
                        "list": true,
56
                        "id": "openAIAssistant_0-input-inputModeration-Moderation"
57
                    }
58
                ],
59
                "inputs": {
60
                    "selectedAssistant": "",
61
                    "tools": ["{{calculator_0.data.instance}}", "{{serper_0.data.instance}}", "{{customTool_0.data.instance}}"],
62
                    "inputModeration": "",
63
                    "disableFileDownload": ""
64
                },
65
                "outputAnchors": [
66
                    {
67
                        "id": "openAIAssistant_0-output-openAIAssistant-OpenAIAssistant",
68
                        "name": "openAIAssistant",
69
                        "label": "OpenAIAssistant",
70
                        "description": "An agent that uses OpenAI Assistant API to pick the tool and args to call",
71
                        "type": "OpenAIAssistant"
72
                    }
73
                ],
74
                "outputs": {},
75
                "selected": false
76
            },
77
            "width": 300,
78
            "height": 419,
79
            "selected": false,
80
            "dragging": false,
81
            "positionAbsolute": {
82
                "x": 1237.914576178543,
83
                "y": 140
84
            }
85
        },
86
        {
87
            "id": "calculator_0",
88
            "position": {
89
                "x": 854.0341531341463,
90
                "y": 48.134746169036475
91
            },
92
            "type": "customNode",
93
            "data": {
94
                "id": "calculator_0",
95
                "label": "Calculator",
96
                "version": 1,
97
                "name": "calculator",
98
                "type": "Calculator",
99
                "baseClasses": ["Calculator", "Tool", "StructuredTool", "Runnable"],
100
                "category": "Tools",
101
                "description": "Perform calculations on response",
102
                "inputParams": [],
103
                "inputAnchors": [],
104
                "inputs": {},
105
                "outputAnchors": [
106
                    {
107
                        "id": "calculator_0-output-calculator-Calculator|Tool|StructuredTool|Runnable",
108
                        "name": "calculator",
109
                        "label": "Calculator",
110
                        "description": "Perform calculations on response",
111
                        "type": "Calculator | Tool | StructuredTool | Runnable"
112
                    }
113
                ],
114
                "outputs": {},
115
                "selected": false
116
            },
117
            "width": 300,
118
            "height": 142,
119
            "selected": false,
120
            "positionAbsolute": {
121
                "x": 854.0341531341463,
122
                "y": 48.134746169036475
123
            },
124
            "dragging": false
125
        },
126
        {
127
            "id": "serper_0",
128
            "position": {
129
                "x": 852.623106275503,
130
                "y": 205.46647090775525
131
            },
132
            "type": "customNode",
133
            "data": {
134
                "id": "serper_0",
135
                "label": "Serper",
136
                "version": 1,
137
                "name": "serper",
138
                "type": "Serper",
139
                "baseClasses": ["Serper", "Tool", "StructuredTool", "Runnable"],
140
                "category": "Tools",
141
                "description": "Wrapper around Serper.dev - Google Search API",
142
                "inputParams": [
143
                    {
144
                        "label": "Connect Credential",
145
                        "name": "credential",
146
                        "type": "credential",
147
                        "credentialNames": ["serperApi"],
148
                        "id": "serper_0-input-credential-credential"
149
                    }
150
                ],
151
                "inputAnchors": [],
152
                "inputs": {},
153
                "outputAnchors": [
154
                    {
155
                        "id": "serper_0-output-serper-Serper|Tool|StructuredTool|Runnable",
156
                        "name": "serper",
157
                        "label": "Serper",
158
                        "description": "Wrapper around Serper.dev - Google Search API",
159
                        "type": "Serper | Tool | StructuredTool | Runnable"
160
                    }
161
                ],
162
                "outputs": {},
163
                "selected": false
164
            },
165
            "width": 300,
166
            "height": 276,
167
            "selected": false,
168
            "positionAbsolute": {
169
                "x": 852.623106275503,
170
                "y": 205.46647090775525
171
            },
172
            "dragging": false
173
        },
174
        {
175
            "id": "customTool_0",
176
            "position": {
177
                "x": 850.6759101766447,
178
                "y": 496.68759375469654
179
            },
180
            "type": "customNode",
181
            "data": {
182
                "id": "customTool_0",
183
                "label": "Custom Tool",
184
                "version": 1,
185
                "name": "customTool",
186
                "type": "CustomTool",
187
                "baseClasses": ["CustomTool", "Tool", "StructuredTool", "Runnable"],
188
                "category": "Tools",
189
                "description": "Use custom tool you've created in Flowise within chatflow",
190
                "inputParams": [
191
                    {
192
                        "label": "Select Tool",
193
                        "name": "selectedTool",
194
                        "type": "asyncOptions",
195
                        "loadMethod": "listTools",
196
                        "id": "customTool_0-input-selectedTool-asyncOptions"
197
                    }
198
                ],
199
                "inputAnchors": [],
200
                "inputs": {
201
                    "selectedTool": ""
202
                },
203
                "outputAnchors": [
204
                    {
205
                        "id": "customTool_0-output-customTool-CustomTool|Tool|StructuredTool|Runnable",
206
                        "name": "customTool",
207
                        "label": "CustomTool",
208
                        "description": "Use custom tool you've created in Flowise within chatflow",
209
                        "type": "CustomTool | Tool | StructuredTool | Runnable"
210
                    }
211
                ],
212
                "outputs": {},
213
                "selected": false
214
            },
215
            "width": 300,
216
            "height": 276,
217
            "selected": false,
218
            "positionAbsolute": {
219
                "x": 850.6759101766447,
220
                "y": 496.68759375469654
221
            },
222
            "dragging": false
223
        }
224
    ],
225
    "edges": [
226
        {
227
            "source": "calculator_0",
228
            "sourceHandle": "calculator_0-output-calculator-Calculator|Tool|StructuredTool|Runnable",
229
            "target": "openAIAssistant_0",
230
            "targetHandle": "openAIAssistant_0-input-tools-Tool",
231
            "type": "buttonedge",
232
            "id": "calculator_0-calculator_0-output-calculator-Calculator|Tool|StructuredTool|Runnable-openAIAssistant_0-openAIAssistant_0-input-tools-Tool"
233
        },
234
        {
235
            "source": "serper_0",
236
            "sourceHandle": "serper_0-output-serper-Serper|Tool|StructuredTool|Runnable",
237
            "target": "openAIAssistant_0",
238
            "targetHandle": "openAIAssistant_0-input-tools-Tool",
239
            "type": "buttonedge",
240
            "id": "serper_0-serper_0-output-serper-Serper|Tool|StructuredTool|Runnable-openAIAssistant_0-openAIAssistant_0-input-tools-Tool"
241
        },
242
        {
243
            "source": "customTool_0",
244
            "sourceHandle": "customTool_0-output-customTool-CustomTool|Tool|StructuredTool|Runnable",
245
            "target": "openAIAssistant_0",
246
            "targetHandle": "openAIAssistant_0-input-tools-Tool",
247
            "type": "buttonedge",
248
            "id": "customTool_0-customTool_0-output-customTool-CustomTool|Tool|StructuredTool|Runnable-openAIAssistant_0-openAIAssistant_0-input-tools-Tool"
249
        }
250
    ]
251
}
252

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.