Flowise

Форк
0
480 строк · 20.3 Кб
1
{
2
    "description": "An agent that uses ReAct logic to decide what action to take",
3
    "categories": "Calculator Tool,SerpAPI,ChatOpenAI,ReAct Agent,Langchain",
4
    "framework": "Langchain",
5
    "nodes": [
6
        {
7
            "width": 300,
8
            "height": 142,
9
            "id": "calculator_1",
10
            "position": {
11
                "x": 466.86432329033937,
12
                "y": 230.0825123205457
13
            },
14
            "type": "customNode",
15
            "data": {
16
                "id": "calculator_1",
17
                "label": "Calculator",
18
                "version": 1,
19
                "name": "calculator",
20
                "type": "Calculator",
21
                "baseClasses": ["Calculator", "Tool", "StructuredTool", "BaseLangChain"],
22
                "category": "Tools",
23
                "description": "Perform calculations on response",
24
                "inputParams": [],
25
                "inputAnchors": [],
26
                "inputs": {},
27
                "outputAnchors": [
28
                    {
29
                        "id": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain",
30
                        "name": "calculator",
31
                        "label": "Calculator",
32
                        "type": "Calculator | Tool | StructuredTool | BaseLangChain"
33
                    }
34
                ],
35
                "outputs": {},
36
                "selected": false
37
            },
38
            "positionAbsolute": {
39
                "x": 466.86432329033937,
40
                "y": 230.0825123205457
41
            },
42
            "selected": false,
43
            "dragging": false
44
        },
45
        {
46
            "id": "reactAgentChat_0",
47
            "position": {
48
                "x": 905.8535326018256,
49
                "y": 388.58312223652564
50
            },
51
            "type": "customNode",
52
            "data": {
53
                "id": "reactAgentChat_0",
54
                "label": "ReAct Agent for Chat Models",
55
                "version": 4,
56
                "name": "reactAgentChat",
57
                "type": "AgentExecutor",
58
                "baseClasses": ["AgentExecutor", "BaseChain", "Runnable"],
59
                "category": "Agents",
60
                "description": "Agent that uses the ReAct logic to decide what action to take, optimized to be used with Chat Models",
61
                "inputParams": [],
62
                "inputAnchors": [
63
                    {
64
                        "label": "Allowed Tools",
65
                        "name": "tools",
66
                        "type": "Tool",
67
                        "list": true,
68
                        "id": "reactAgentChat_0-input-tools-Tool"
69
                    },
70
                    {
71
                        "label": "Chat Model",
72
                        "name": "model",
73
                        "type": "BaseChatModel",
74
                        "id": "reactAgentChat_0-input-model-BaseChatModel"
75
                    },
76
                    {
77
                        "label": "Memory",
78
                        "name": "memory",
79
                        "type": "BaseChatMemory",
80
                        "id": "reactAgentChat_0-input-memory-BaseChatMemory"
81
                    },
82
                    {
83
                        "label": "Input Moderation",
84
                        "description": "Detect text that could generate harmful output and prevent it from being sent to the language model",
85
                        "name": "inputModeration",
86
                        "type": "Moderation",
87
                        "optional": true,
88
                        "list": true,
89
                        "id": "reactAgentChat_0-input-inputModeration-Moderation"
90
                    },
91
                    {
92
                        "label": "Max Iterations",
93
                        "name": "maxIterations",
94
                        "type": "number",
95
                        "optional": true,
96
                        "additionalParams": true,
97
                        "id": "reactAgentChat_0-input-maxIterations-number"
98
                    }
99
                ],
100
                "inputs": {
101
                    "inputModeration": "",
102
                    "tools": ["{{calculator_1.data.instance}}", "{{serper_0.data.instance}}"],
103
                    "model": "{{chatOpenAI_0.data.instance}}",
104
                    "memory": "{{RedisBackedChatMemory_0.data.instance}}"
105
                },
106
                "outputAnchors": [
107
                    {
108
                        "id": "reactAgentChat_0-output-reactAgentChat-AgentExecutor|BaseChain|Runnable",
109
                        "name": "reactAgentChat",
110
                        "label": "AgentExecutor",
111
                        "description": "Agent that uses the ReAct logic to decide what action to take, optimized to be used with Chat Models",
112
                        "type": "AgentExecutor | BaseChain | Runnable"
113
                    }
114
                ],
115
                "outputs": {},
116
                "selected": false
117
            },
118
            "width": 300,
119
            "height": 330,
120
            "selected": false,
121
            "positionAbsolute": {
122
                "x": 905.8535326018256,
123
                "y": 388.58312223652564
124
            },
125
            "dragging": false
126
        },
127
        {
128
            "id": "RedisBackedChatMemory_0",
129
            "position": {
130
                "x": 473.108799702029,
131
                "y": 401.8098683245926
132
            },
133
            "type": "customNode",
134
            "data": {
135
                "id": "RedisBackedChatMemory_0",
136
                "label": "Redis-Backed Chat Memory",
137
                "version": 2,
138
                "name": "RedisBackedChatMemory",
139
                "type": "RedisBackedChatMemory",
140
                "baseClasses": ["RedisBackedChatMemory", "BaseChatMemory", "BaseMemory"],
141
                "category": "Memory",
142
                "description": "Summarizes the conversation and stores the memory in Redis server",
143
                "inputParams": [
144
                    {
145
                        "label": "Connect Credential",
146
                        "name": "credential",
147
                        "type": "credential",
148
                        "optional": true,
149
                        "credentialNames": ["redisCacheApi", "redisCacheUrlApi"],
150
                        "id": "RedisBackedChatMemory_0-input-credential-credential"
151
                    },
152
                    {
153
                        "label": "Session Id",
154
                        "name": "sessionId",
155
                        "type": "string",
156
                        "description": "If not specified, a random id will be used. Learn <a target=\"_blank\" href=\"https://docs.flowiseai.com/memory/long-term-memory#ui-and-embedded-chat\">more</a>",
157
                        "default": "",
158
                        "additionalParams": true,
159
                        "optional": true,
160
                        "id": "RedisBackedChatMemory_0-input-sessionId-string"
161
                    },
162
                    {
163
                        "label": "Session Timeouts",
164
                        "name": "sessionTTL",
165
                        "type": "number",
166
                        "description": "Omit this parameter to make sessions never expire",
167
                        "additionalParams": true,
168
                        "optional": true,
169
                        "id": "RedisBackedChatMemory_0-input-sessionTTL-number"
170
                    },
171
                    {
172
                        "label": "Memory Key",
173
                        "name": "memoryKey",
174
                        "type": "string",
175
                        "default": "chat_history",
176
                        "additionalParams": true,
177
                        "id": "RedisBackedChatMemory_0-input-memoryKey-string"
178
                    },
179
                    {
180
                        "label": "Window Size",
181
                        "name": "windowSize",
182
                        "type": "number",
183
                        "description": "Window of size k to surface the last k back-and-forth to use as memory.",
184
                        "additionalParams": true,
185
                        "optional": true,
186
                        "id": "RedisBackedChatMemory_0-input-windowSize-number"
187
                    }
188
                ],
189
                "inputAnchors": [],
190
                "inputs": {
191
                    "sessionId": "",
192
                    "sessionTTL": "",
193
                    "memoryKey": "chat_history",
194
                    "windowSize": ""
195
                },
196
                "outputAnchors": [
197
                    {
198
                        "id": "RedisBackedChatMemory_0-output-RedisBackedChatMemory-RedisBackedChatMemory|BaseChatMemory|BaseMemory",
199
                        "name": "RedisBackedChatMemory",
200
                        "label": "RedisBackedChatMemory",
201
                        "description": "Summarizes the conversation and stores the memory in Redis server",
202
                        "type": "RedisBackedChatMemory | BaseChatMemory | BaseMemory"
203
                    }
204
                ],
205
                "outputs": {},
206
                "selected": false
207
            },
208
            "width": 300,
209
            "height": 328,
210
            "selected": false,
211
            "positionAbsolute": {
212
                "x": 473.108799702029,
213
                "y": 401.8098683245926
214
            },
215
            "dragging": false
216
        },
217
        {
218
            "id": "chatOpenAI_0",
219
            "position": {
220
                "x": 81.2222202723384,
221
                "y": 59.395597724017364
222
            },
223
            "type": "customNode",
224
            "data": {
225
                "id": "chatOpenAI_0",
226
                "label": "ChatOpenAI",
227
                "version": 6.0,
228
                "name": "chatOpenAI",
229
                "type": "ChatOpenAI",
230
                "baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel", "Runnable"],
231
                "category": "Chat Models",
232
                "description": "Wrapper around OpenAI large language models that use the Chat endpoint",
233
                "inputParams": [
234
                    {
235
                        "label": "Connect Credential",
236
                        "name": "credential",
237
                        "type": "credential",
238
                        "credentialNames": ["openAIApi"],
239
                        "id": "chatOpenAI_0-input-credential-credential"
240
                    },
241
                    {
242
                        "label": "Model Name",
243
                        "name": "modelName",
244
                        "type": "asyncOptions",
245
                        "loadMethod": "listModels",
246
                        "default": "gpt-3.5-turbo",
247
                        "id": "chatOpenAI_0-input-modelName-options"
248
                    },
249
                    {
250
                        "label": "Temperature",
251
                        "name": "temperature",
252
                        "type": "number",
253
                        "step": 0.1,
254
                        "default": 0.9,
255
                        "optional": true,
256
                        "id": "chatOpenAI_0-input-temperature-number"
257
                    },
258
                    {
259
                        "label": "Max Tokens",
260
                        "name": "maxTokens",
261
                        "type": "number",
262
                        "step": 1,
263
                        "optional": true,
264
                        "additionalParams": true,
265
                        "id": "chatOpenAI_0-input-maxTokens-number"
266
                    },
267
                    {
268
                        "label": "Top Probability",
269
                        "name": "topP",
270
                        "type": "number",
271
                        "step": 0.1,
272
                        "optional": true,
273
                        "additionalParams": true,
274
                        "id": "chatOpenAI_0-input-topP-number"
275
                    },
276
                    {
277
                        "label": "Frequency Penalty",
278
                        "name": "frequencyPenalty",
279
                        "type": "number",
280
                        "step": 0.1,
281
                        "optional": true,
282
                        "additionalParams": true,
283
                        "id": "chatOpenAI_0-input-frequencyPenalty-number"
284
                    },
285
                    {
286
                        "label": "Presence Penalty",
287
                        "name": "presencePenalty",
288
                        "type": "number",
289
                        "step": 0.1,
290
                        "optional": true,
291
                        "additionalParams": true,
292
                        "id": "chatOpenAI_0-input-presencePenalty-number"
293
                    },
294
                    {
295
                        "label": "Timeout",
296
                        "name": "timeout",
297
                        "type": "number",
298
                        "step": 1,
299
                        "optional": true,
300
                        "additionalParams": true,
301
                        "id": "chatOpenAI_0-input-timeout-number"
302
                    },
303
                    {
304
                        "label": "BasePath",
305
                        "name": "basepath",
306
                        "type": "string",
307
                        "optional": true,
308
                        "additionalParams": true,
309
                        "id": "chatOpenAI_0-input-basepath-string"
310
                    },
311
                    {
312
                        "label": "BaseOptions",
313
                        "name": "baseOptions",
314
                        "type": "json",
315
                        "optional": true,
316
                        "additionalParams": true,
317
                        "id": "chatOpenAI_0-input-baseOptions-json"
318
                    },
319
                    {
320
                        "label": "Allow Image Uploads",
321
                        "name": "allowImageUploads",
322
                        "type": "boolean",
323
                        "description": "Automatically uses gpt-4-vision-preview when image is being uploaded from chat. Only works with LLMChain, Conversation Chain, ReAct Agent, and Conversational Agent",
324
                        "default": false,
325
                        "optional": true,
326
                        "id": "chatOpenAI_0-input-allowImageUploads-boolean"
327
                    },
328
                    {
329
                        "label": "Image Resolution",
330
                        "description": "This parameter controls the resolution in which the model views the image.",
331
                        "name": "imageResolution",
332
                        "type": "options",
333
                        "options": [
334
                            {
335
                                "label": "Low",
336
                                "name": "low"
337
                            },
338
                            {
339
                                "label": "High",
340
                                "name": "high"
341
                            },
342
                            {
343
                                "label": "Auto",
344
                                "name": "auto"
345
                            }
346
                        ],
347
                        "default": "low",
348
                        "optional": false,
349
                        "additionalParams": true,
350
                        "id": "chatOpenAI_0-input-imageResolution-options"
351
                    }
352
                ],
353
                "inputAnchors": [
354
                    {
355
                        "label": "Cache",
356
                        "name": "cache",
357
                        "type": "BaseCache",
358
                        "optional": true,
359
                        "id": "chatOpenAI_0-input-cache-BaseCache"
360
                    }
361
                ],
362
                "inputs": {
363
                    "cache": "",
364
                    "modelName": "gpt-3.5-turbo",
365
                    "temperature": 0.9,
366
                    "maxTokens": "",
367
                    "topP": "",
368
                    "frequencyPenalty": "",
369
                    "presencePenalty": "",
370
                    "timeout": "",
371
                    "basepath": "",
372
                    "baseOptions": "",
373
                    "allowImageUploads": true,
374
                    "imageResolution": "low"
375
                },
376
                "outputAnchors": [
377
                    {
378
                        "id": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
379
                        "name": "chatOpenAI",
380
                        "label": "ChatOpenAI",
381
                        "description": "Wrapper around OpenAI large language models that use the Chat endpoint",
382
                        "type": "ChatOpenAI | BaseChatModel | BaseLanguageModel | Runnable"
383
                    }
384
                ],
385
                "outputs": {},
386
                "selected": false
387
            },
388
            "width": 300,
389
            "height": 573,
390
            "selected": false,
391
            "positionAbsolute": {
392
                "x": 81.2222202723384,
393
                "y": 59.395597724017364
394
            },
395
            "dragging": false
396
        },
397
        {
398
            "id": "serper_0",
399
            "position": {
400
                "x": 466.4499611299051,
401
                "y": -67.74721119468873
402
            },
403
            "type": "customNode",
404
            "data": {
405
                "id": "serper_0",
406
                "label": "Serper",
407
                "version": 1,
408
                "name": "serper",
409
                "type": "Serper",
410
                "baseClasses": ["Serper", "Tool", "StructuredTool", "Runnable"],
411
                "category": "Tools",
412
                "description": "Wrapper around Serper.dev - Google Search API",
413
                "inputParams": [
414
                    {
415
                        "label": "Connect Credential",
416
                        "name": "credential",
417
                        "type": "credential",
418
                        "credentialNames": ["serperApi"],
419
                        "id": "serper_0-input-credential-credential"
420
                    }
421
                ],
422
                "inputAnchors": [],
423
                "inputs": {},
424
                "outputAnchors": [
425
                    {
426
                        "id": "serper_0-output-serper-Serper|Tool|StructuredTool|Runnable",
427
                        "name": "serper",
428
                        "label": "Serper",
429
                        "description": "Wrapper around Serper.dev - Google Search API",
430
                        "type": "Serper | Tool | StructuredTool | Runnable"
431
                    }
432
                ],
433
                "outputs": {},
434
                "selected": false
435
            },
436
            "width": 300,
437
            "height": 276,
438
            "selected": false,
439
            "positionAbsolute": {
440
                "x": 466.4499611299051,
441
                "y": -67.74721119468873
442
            },
443
            "dragging": false
444
        }
445
    ],
446
    "edges": [
447
        {
448
            "source": "calculator_1",
449
            "sourceHandle": "calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain",
450
            "target": "reactAgentChat_0",
451
            "targetHandle": "reactAgentChat_0-input-tools-Tool",
452
            "type": "buttonedge",
453
            "id": "calculator_1-calculator_1-output-calculator-Calculator|Tool|StructuredTool|BaseLangChain-reactAgentChat_0-reactAgentChat_0-input-tools-Tool"
454
        },
455
        {
456
            "source": "RedisBackedChatMemory_0",
457
            "sourceHandle": "RedisBackedChatMemory_0-output-RedisBackedChatMemory-RedisBackedChatMemory|BaseChatMemory|BaseMemory",
458
            "target": "reactAgentChat_0",
459
            "targetHandle": "reactAgentChat_0-input-memory-BaseChatMemory",
460
            "type": "buttonedge",
461
            "id": "RedisBackedChatMemory_0-RedisBackedChatMemory_0-output-RedisBackedChatMemory-RedisBackedChatMemory|BaseChatMemory|BaseMemory-reactAgentChat_0-reactAgentChat_0-input-memory-BaseChatMemory"
462
        },
463
        {
464
            "source": "chatOpenAI_0",
465
            "sourceHandle": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
466
            "target": "reactAgentChat_0",
467
            "targetHandle": "reactAgentChat_0-input-model-BaseChatModel",
468
            "type": "buttonedge",
469
            "id": "chatOpenAI_0-chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable-reactAgentChat_0-reactAgentChat_0-input-model-BaseChatModel"
470
        },
471
        {
472
            "source": "serper_0",
473
            "sourceHandle": "serper_0-output-serper-Serper|Tool|StructuredTool|Runnable",
474
            "target": "reactAgentChat_0",
475
            "targetHandle": "reactAgentChat_0-input-tools-Tool",
476
            "type": "buttonedge",
477
            "id": "serper_0-serper_0-output-serper-Serper|Tool|StructuredTool|Runnable-reactAgentChat_0-reactAgentChat_0-input-tools-Tool"
478
        }
479
    ]
480
}
481

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

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

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

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