mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00

* feat: stop toolCall and rename some field. (#46) * perf: node delete tip;pay tip * fix: toolCall cannot save child answer * feat: stop tool * fix: team modal * fix feckbackMoal auth bug (#47) * 简单的支持提示词运行tool。优化workflow模板 (#49) * remove templates * fix: request body undefined * feat: prompt tool run * feat: workflow tamplates modal * perf: plugin start * 4.7 (#50) * fix docker-compose download url (#994) original code is a bad url with '404 NOT FOUND' return. fix docker-compose download url, add 'v' before docker-compose version * Update ai_settings.md (#1000) * Update configuration.md * Update configuration.md * Fix history in classifyQuestion and extract modules (#1012) * Fix history in classifyQuestion and extract modules * Add chatValue2RuntimePrompt import and update text formatting * flow controller to packages * fix: rerank select * modal ui * perf: modal code path * point not sufficient * feat: http url support variable * fix http key * perf: prompt * perf: ai setting modal * simple edit ui --------- Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> * fix team share redirect to login (#51) * feat: support openapi import plugins (#48) * feat: support openapi import plugins * feat: import from url * fix: add body params parse * fix build * fix * fix * fix * tool box ui (#52) * fix: training queue * feat: simple edit tool select * perf: simple edit dataset prompt * fix: chatbox tool ux * feat: quote prompt module * perf: plugin tools sign * perf: model avatar * tool selector ui * feat: max histories * perf: http plugin import (#53) * perf: plugin http import * chatBox ui * perf: name * fix: Node template card (#54) * fix: ts * setting modal * package * package * feat: add plugins search (#57) * feat: add plugins search * perf: change http plugin header input * Yjl (#56) * perf: prompt tool call * perf: chat box ux * doc * doc * price tip * perf: tool selector * ui' * fix: vector queue * fix: empty tool and empty response * fix: empty msg * perf: pg index * perf: ui tip * doc * tool tip --------- Co-authored-by: yst <77910600+yu-and-liu@users.noreply.github.com> Co-authored-by: entorick <entorick11@qq.com> Co-authored-by: liujianglc <liujianglc@163.com> Co-authored-by: Fengrui Liu <liufengrui.work@bytedance.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
368 lines
9.7 KiB
JSON
368 lines
9.7 KiB
JSON
{
|
|
"author": "FastGPT Team",
|
|
"templateType": "tools",
|
|
"name": "判断器",
|
|
"avatar": "/imgs/module/tfSwitch.svg",
|
|
"intro": "根据传入的内容进行 True False 输出。默认情况下,当传入的内容为 false, undefined, null, 0, none 时,会输出 false。你也可以增加一些自定义的字符串来补充输出 false 的内容。非字符、非数字、非布尔类型,直接输出 True。",
|
|
"showStatus": false,
|
|
"isTool": false,
|
|
"modules": [
|
|
{
|
|
"moduleId": "w90mfp",
|
|
"name": "定义插件输入",
|
|
"flowType": "pluginInput",
|
|
"showStatus": false,
|
|
"position": {
|
|
"x": 616.4226348688949,
|
|
"y": -165.05298493910115
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "input",
|
|
"valueType": "any",
|
|
"type": "target",
|
|
"label": "core.module.input.label.TFSwitch input tip",
|
|
"required": true,
|
|
"edit": true,
|
|
"connected": true
|
|
},
|
|
{
|
|
"key": "rule",
|
|
"valueType": "string",
|
|
"label": "core.module.input.label.TFSwitch textarea",
|
|
"type": "textarea",
|
|
"required": false,
|
|
"description": "core.module.input.description.TFSwitch textarea",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"required": true,
|
|
"dataType": true,
|
|
"inputType": true
|
|
},
|
|
"connected": true
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"key": "input",
|
|
"valueType": "any",
|
|
"label": "core.module.input.label.TFSwitch input tip",
|
|
"type": "source",
|
|
"edit": true,
|
|
"targets": [
|
|
{
|
|
"moduleId": "8kld99",
|
|
"key": "input"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"key": "rule",
|
|
"valueType": "string",
|
|
"label": "core.module.input.label.TFSwitch textarea",
|
|
"type": "source",
|
|
"edit": true,
|
|
"targets": [
|
|
{
|
|
"moduleId": "8kld99",
|
|
"key": "rule"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"moduleId": "tze1ju",
|
|
"name": "定义插件输出",
|
|
"flowType": "pluginOutput",
|
|
"showStatus": false,
|
|
"position": {
|
|
"x": 1985.3791673445353,
|
|
"y": -144.90535546692078
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "true",
|
|
"type": "target",
|
|
"valueType": "boolean",
|
|
"label": "True",
|
|
"required": true,
|
|
"edit": true,
|
|
"connected": true,
|
|
"description": ""
|
|
},
|
|
{
|
|
"key": "false",
|
|
"valueType": "boolean",
|
|
"label": "False",
|
|
"type": "target",
|
|
"required": true,
|
|
"description": "",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"required": false,
|
|
"dataType": true,
|
|
"inputType": false
|
|
},
|
|
"connected": true
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"key": "true",
|
|
"valueType": "boolean",
|
|
"label": "True",
|
|
"type": "source",
|
|
"edit": true,
|
|
"targets": []
|
|
},
|
|
{
|
|
"key": "false",
|
|
"valueType": "boolean",
|
|
"label": "False",
|
|
"type": "source",
|
|
"edit": true,
|
|
"targets": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"moduleId": "8kld99",
|
|
"name": "HTTP模块",
|
|
"flowType": "httpRequest468",
|
|
"showStatus": true,
|
|
"position": {
|
|
"x": 1210.560012858087,
|
|
"y": -387.62433050951756
|
|
},
|
|
"inputs": [
|
|
{
|
|
"key": "switch",
|
|
"type": "target",
|
|
"label": "core.module.input.label.switch",
|
|
"description": "core.module.input.description.Trigger",
|
|
"valueType": "any",
|
|
"showTargetInApp": true,
|
|
"showTargetInPlugin": true,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "system_httpMethod",
|
|
"type": "custom",
|
|
"valueType": "string",
|
|
"label": "",
|
|
"value": "POST",
|
|
"list": [
|
|
{
|
|
"label": "GET",
|
|
"value": "GET"
|
|
},
|
|
{
|
|
"label": "POST",
|
|
"value": "POST"
|
|
}
|
|
],
|
|
"required": true,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "system_httpReqUrl",
|
|
"type": "hidden",
|
|
"valueType": "string",
|
|
"label": "",
|
|
"description": "core.module.input.description.Http Request Url",
|
|
"placeholder": "https://api.ai.com/getInventory",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"value": "/api/plugins/TFSwitch",
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "system_httpHeader",
|
|
"type": "custom",
|
|
"valueType": "any",
|
|
"label": "",
|
|
"description": "core.module.input.description.Http Request Header",
|
|
"placeholder": "core.module.input.description.Http Request Header",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "system_httpParams",
|
|
"type": "hidden",
|
|
"valueType": "any",
|
|
"value": [],
|
|
"label": "",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "system_httpJsonBody",
|
|
"type": "hidden",
|
|
"valueType": "any",
|
|
"value": "{\r\n \"input\": \"{{input}}\",\r\n \"rule\": \"{{rule}}\"\r\n}",
|
|
"label": "",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "DYNAMIC_INPUT_KEY",
|
|
"type": "target",
|
|
"valueType": "any",
|
|
"label": "core.module.inputType.dynamicTargetInput",
|
|
"description": "core.module.input.description.dynamic input",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": true,
|
|
"hideInApp": true,
|
|
"connected": false
|
|
},
|
|
{
|
|
"key": "input",
|
|
"valueType": "any",
|
|
"label": "input",
|
|
"type": "target",
|
|
"required": true,
|
|
"description": "",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"required": true,
|
|
"dataType": true
|
|
},
|
|
"connected": true
|
|
},
|
|
{
|
|
"key": "rule",
|
|
"valueType": "string",
|
|
"label": "rule",
|
|
"type": "target",
|
|
"required": false,
|
|
"description": "",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"required": true,
|
|
"dataType": true
|
|
},
|
|
"connected": true
|
|
},
|
|
{
|
|
"key": "system_addInputParam",
|
|
"type": "addInputParam",
|
|
"valueType": "any",
|
|
"label": "",
|
|
"required": false,
|
|
"showTargetInApp": false,
|
|
"showTargetInPlugin": false,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"required": true,
|
|
"dataType": true
|
|
},
|
|
"defaultEditField": {
|
|
"label": "",
|
|
"key": "",
|
|
"description": "",
|
|
"inputType": "target",
|
|
"valueType": "string",
|
|
"required": true
|
|
},
|
|
"connected": false
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"key": "finish",
|
|
"label": "core.module.output.label.running done",
|
|
"description": "core.module.output.description.running done",
|
|
"valueType": "boolean",
|
|
"type": "source",
|
|
"targets": []
|
|
},
|
|
{
|
|
"key": "system_addOutputParam",
|
|
"type": "addOutputParam",
|
|
"valueType": "any",
|
|
"label": "",
|
|
"targets": [],
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"dataType": true
|
|
},
|
|
"defaultEditField": {
|
|
"label": "",
|
|
"key": "",
|
|
"description": "",
|
|
"outputType": "source",
|
|
"valueType": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "source",
|
|
"valueType": "boolean",
|
|
"key": "true",
|
|
"label": "true",
|
|
"description": "",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"dataType": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"moduleId": "tze1ju",
|
|
"key": "true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "source",
|
|
"valueType": "boolean",
|
|
"key": "false",
|
|
"label": "false",
|
|
"description": "",
|
|
"edit": true,
|
|
"editField": {
|
|
"key": true,
|
|
"name": true,
|
|
"description": true,
|
|
"dataType": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"moduleId": "tze1ju",
|
|
"key": "false"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|