mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
feat: add tool params node & tool params add array type (#2824)
* add tool params node * add tool params enum * node response * tool add array type params * fix tool params * fix * fix * fix
This commit is contained in:
@@ -37,10 +37,10 @@ export const iconPaths = {
|
||||
'common/importLight': () => import('./icons/common/importLight.svg'),
|
||||
'common/info': () => import('./icons/common/info.svg'),
|
||||
'common/inviteLight': () => import('./icons/common/inviteLight.svg'),
|
||||
'common/language/America': () => import('./icons/common/language/America.svg'),
|
||||
'common/language/China': () => import('./icons/common/language/China.svg'),
|
||||
'common/language/en': () => import('./icons/common/language/en.svg'),
|
||||
'common/language/zh': () => import('./icons/common/language/zh.svg'),
|
||||
'common/language/China': () => import('./icons/common/language/China.svg'),
|
||||
'common/language/America': () => import('./icons/common/language/America.svg'),
|
||||
'common/leftArrowLight': () => import('./icons/common/leftArrowLight.svg'),
|
||||
'common/line': () => import('./icons/common/line.svg'),
|
||||
'common/lineChange': () => import('./icons/common/lineChange.svg'),
|
||||
@@ -212,8 +212,10 @@ export const iconPaths = {
|
||||
'core/workflow/runSkip': () => import('./icons/core/workflow/runSkip.svg'),
|
||||
'core/workflow/runSuccess': () => import('./icons/core/workflow/runSuccess.svg'),
|
||||
'core/workflow/running': () => import('./icons/core/workflow/running.svg'),
|
||||
'core/workflow/template/BI': () => import('./icons/core/workflow/template/BI.svg'),
|
||||
'core/workflow/template/FileRead': () => import('./icons/core/workflow/template/FileRead.svg'),
|
||||
'core/workflow/template/aiChat': () => import('./icons/core/workflow/template/aiChat.svg'),
|
||||
'core/workflow/template/baseChart': () => import('./icons/core/workflow/template/baseChart.svg'),
|
||||
'core/workflow/template/codeRun': () => import('./icons/core/workflow/template/codeRun.svg'),
|
||||
'core/workflow/template/customFeedback': () =>
|
||||
import('./icons/core/workflow/template/customFeedback.svg'),
|
||||
@@ -247,15 +249,17 @@ export const iconPaths = {
|
||||
'core/workflow/template/reply': () => import('./icons/core/workflow/template/reply.svg'),
|
||||
'core/workflow/template/runApp': () => import('./icons/core/workflow/template/runApp.svg'),
|
||||
'core/workflow/template/stopTool': () => import('./icons/core/workflow/template/stopTool.svg'),
|
||||
'core/workflow/template/toolkitActive': () =>
|
||||
import('./icons/core/workflow/template/toolkitActive.svg'),
|
||||
'core/workflow/template/toolkitInactive': () =>
|
||||
import('./icons/core/workflow/template/toolkitInactive.svg'),
|
||||
'core/workflow/template/systemConfig': () =>
|
||||
import('./icons/core/workflow/template/systemConfig.svg'),
|
||||
'core/workflow/template/textConcat': () =>
|
||||
import('./icons/core/workflow/template/textConcat.svg'),
|
||||
'core/workflow/template/toolCall': () => import('./icons/core/workflow/template/toolCall.svg'),
|
||||
'core/workflow/template/toolParams': () =>
|
||||
import('./icons/core/workflow/template/toolParams.svg'),
|
||||
'core/workflow/template/toolkitActive': () =>
|
||||
import('./icons/core/workflow/template/toolkitActive.svg'),
|
||||
'core/workflow/template/toolkitInactive': () =>
|
||||
import('./icons/core/workflow/template/toolkitInactive.svg'),
|
||||
'core/workflow/template/userSelect': () =>
|
||||
import('./icons/core/workflow/template/userSelect.svg'),
|
||||
'core/workflow/template/variable': () => import('./icons/core/workflow/template/variable.svg'),
|
||||
@@ -267,8 +271,6 @@ export const iconPaths = {
|
||||
'core/workflow/undo': () => import('./icons/core/workflow/undo.svg'),
|
||||
'core/workflow/upload': () => import('./icons/core/workflow/upload.svg'),
|
||||
'core/workflow/versionHistories': () => import('./icons/core/workflow/versionHistories.svg'),
|
||||
'core/workflow/template/baseChart': () => import('./icons/core/workflow/template/baseChart.svg'),
|
||||
'core/workflow/template/BI': () => import('./icons/core/workflow/template/BI.svg'),
|
||||
date: () => import('./icons/date.svg'),
|
||||
delete: () => import('./icons/delete.svg'),
|
||||
edit: () => import('./icons/edit.svg'),
|
||||
|
@@ -0,0 +1,10 @@
|
||||
<svg viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="36" height="36" fill="url(#paint0_linear_10998_23397)"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9999 8C9.79074 8 7.99988 9.79086 7.99988 12V24C7.99988 26.2091 9.79074 28 11.9999 28H23.9999C26.209 28 27.9999 26.2091 27.9999 24V12C27.9999 9.79086 26.209 8 23.9999 8H11.9999ZM17.3939 13.6H24.1231C24.6202 13.6 25.0231 14.0029 25.0231 14.5C25.0231 14.997 24.6202 15.4 24.1231 15.4H17.3939C17.0436 16.223 16.2275 16.8 15.2767 16.8C14.3258 16.8 13.5097 16.223 13.1594 15.4H11.8767C11.3796 15.4 10.9767 14.997 10.9767 14.5C10.9767 14.0029 11.3796 13.6 11.8767 13.6H13.1594C13.5097 12.777 14.3258 12.2 15.2767 12.2C16.2275 12.2 17.0436 12.777 17.3939 13.6ZM18.6059 20.6H11.8767C11.3796 20.6 10.9767 21.0029 10.9767 21.5C10.9767 21.997 11.3796 22.4 11.8767 22.4H18.6058C18.9561 23.223 19.7722 23.8 20.7231 23.8C21.674 23.8 22.4901 23.223 22.8403 22.4H24.1231C24.6202 22.4 25.0231 21.997 25.0231 21.5C25.0231 21.0029 24.6202 20.6 24.1231 20.6H22.8403C22.4901 19.777 21.674 19.2 20.7231 19.2C19.7722 19.2 18.9561 19.777 18.6059 20.6Z" fill="white"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_10998_23397" x1="18" y1="0" x2="5.5" y2="33" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#91A9FE"/>
|
||||
<stop offset="1" stop-color="#BA84FF"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
@@ -28,6 +28,7 @@
|
||||
"UnKnow": "Unknown",
|
||||
"Warning": "Warning",
|
||||
"add_new": "Add New",
|
||||
"add_new_param": "Add new param",
|
||||
"back": "Back",
|
||||
"chose_condition": "Choose Condition",
|
||||
"chosen": "Chosen",
|
||||
@@ -1110,7 +1111,6 @@
|
||||
"tag_list": "Tag List",
|
||||
"team_tag": "Team Tag",
|
||||
"textarea_variable_picker_tip": "Enter \"/\" to select a variable",
|
||||
"tool_field": "Tool Field Parameter Configuration",
|
||||
"undefined_var": "Referenced an undefined variable, add it automatically?",
|
||||
"unit.character": "Character",
|
||||
"unit.minute": "Minute",
|
||||
|
@@ -27,6 +27,7 @@
|
||||
"create_link_error": "Error creating link",
|
||||
"custom_feedback": "Custom Feedback",
|
||||
"custom_input": "Custom Input",
|
||||
"custom_tool_input": "Custom tool input",
|
||||
"dataset_quote_role": "Role",
|
||||
"dataset_quote_role_system_option_desc": "Historical records should be consistent first (recommended)",
|
||||
"dataset_quote_role_tip": "When set to System, the knowledge base reference content will be placed in the system message, which can ensure the continuity of the history record, but the constraint effect may not be good.\n\nWhen set to User, the knowledge base reference content will be placed in the user message, and the {{question}} variable location needs to be specified. \nIt will have a certain impact on the consistency of historical records, but usually the constraint effect is better.",
|
||||
@@ -78,6 +79,7 @@
|
||||
"intro_text_concatenation": "Can process and output fixed or incoming text. Non-string type data will be converted to string type.",
|
||||
"intro_text_content_extraction": "Can extract specified data from text, such as SQL statements, search keywords, code, etc.",
|
||||
"intro_tool_call_termination": "This module needs to be configured for tool calls. When this module is executed, the current tool call will be forcibly terminated, and AI will no longer answer questions based on the tool call results.",
|
||||
"intro_tool_params_config": " This module works with tool calls. It creates required tool parameters. Tool calls automatically generate parameter content and pass it to corresponding function blocks.",
|
||||
"is_empty": "Is Empty",
|
||||
"is_equal_to": "Is Equal To",
|
||||
"is_not_empty": "Is Not Empty",
|
||||
@@ -156,7 +158,17 @@
|
||||
"text_to_extract": "Text to Extract",
|
||||
"these_variables_will_be_input_parameters_for_code_execution": "These variables will be input parameters for code execution",
|
||||
"tool_call_termination": "Tool Call Termination",
|
||||
"tool_field": " Tool Field Parameter Configuration",
|
||||
"tool_input": "Tool Input",
|
||||
"tool_params.enum_placeholder": "apple \npeach \nwatermelon",
|
||||
"tool_params.enum_values": "Enum values",
|
||||
"tool_params.enum_values_tip": "List the possible values for this field, one per line",
|
||||
"tool_params.params_description": "Description",
|
||||
"tool_params.params_description_placeholder": "Name/Age/SQL statement..",
|
||||
"tool_params.params_name": "Name",
|
||||
"tool_params.params_name_placeholder": "name/age/sql",
|
||||
"tool_params.tool_params_result": "Tool params result",
|
||||
"tool_params_config": "Tool params config",
|
||||
"trigger_after_application_completion": "Will be triggered after the application is fully completed",
|
||||
"update_link_error": "Error updating link",
|
||||
"update_specified_node_output_or_global_variable": "Can update the output value of a specified node or update global variables",
|
||||
|
@@ -28,6 +28,7 @@
|
||||
"UnKnow": "未知",
|
||||
"Warning": "提示",
|
||||
"add_new": "新增",
|
||||
"add_new_param": "新增参数",
|
||||
"back": "返回",
|
||||
"chose_condition": "选择条件",
|
||||
"chosen": "已选",
|
||||
@@ -732,8 +733,8 @@
|
||||
"core.module.template.empty_plugin": "空白插件",
|
||||
"core.module.template.empty_workflow": "空白工作流",
|
||||
"core.module.template.http body placeholder": "与 Apifox 相同的语法",
|
||||
"core.module.template.self_output": "插件输出",
|
||||
"core.module.template.self_input": "插件输入",
|
||||
"core.module.template.self_output": "插件输出",
|
||||
"core.module.template.system_config": "系统配置",
|
||||
"core.module.template.system_config_info": "可以配置应用的系统参数",
|
||||
"core.module.template.work_start": "流程开始",
|
||||
@@ -1109,7 +1110,6 @@
|
||||
"tag_list": "标签列表",
|
||||
"team_tag": "团队标签",
|
||||
"textarea_variable_picker_tip": "输入\"/\"可选择变量",
|
||||
"tool_field": "工具字段参数配置",
|
||||
"undefined_var": "引用了未定义的变量,是否自动添加?",
|
||||
"unit.character": "字符",
|
||||
"unit.minute": "分钟",
|
||||
|
@@ -27,6 +27,7 @@
|
||||
"create_link_error": "创建链接异常",
|
||||
"custom_feedback": "自定义反馈",
|
||||
"custom_input": "自定义输入",
|
||||
"custom_tool_input": "自定义工具参数",
|
||||
"dataset_quote_role": "角色",
|
||||
"dataset_quote_role_system_option_desc": "历史记录连贯优先(推荐)",
|
||||
"dataset_quote_role_tip": "设置为 System 时,将会把知识库引用内容放置到 system 消息中,可以确保历史记录的连贯性,但约束效果可能不佳,需要多调试。\n设置为 User 时,将会把知识库引用内容放置到 user 消息中,并且需要指定 {{question}} 变量位置。会对历史记录连贯性有一定影响,但通常约束效果更优。",
|
||||
@@ -78,6 +79,7 @@
|
||||
"intro_text_concatenation": "可对固定或传入的文本进行加工后输出,非字符串类型数据最终会转成字符串类型。",
|
||||
"intro_text_content_extraction": "可从文本中提取指定的数据,例如:sql语句、搜索关键词、代码等",
|
||||
"intro_tool_call_termination": "该模块需配置工具调用使用。当该模块被执行时,本次工具调用将会强制结束,并且不再调用AI针对工具调用结果回答问题。",
|
||||
"intro_tool_params_config": "该模块需要配合工具调用使用。可以创建所需的工具参数,工具调用将自动生成参数内容并传给对应的功能块。",
|
||||
"is_empty": "为空",
|
||||
"is_equal_to": "等于",
|
||||
"is_not_empty": "不为空",
|
||||
@@ -156,7 +158,17 @@
|
||||
"text_to_extract": "需要提取的文本",
|
||||
"these_variables_will_be_input_parameters_for_code_execution": "这些变量会作为代码的运行的输入参数",
|
||||
"tool_call_termination": "工具调用终止",
|
||||
"tool_field": "工具参数配置",
|
||||
"tool_input": "工具参数",
|
||||
"tool_params.enum_placeholder": "apple \npeach \nwatermelon",
|
||||
"tool_params.enum_values": "枚举值(可选)",
|
||||
"tool_params.enum_values_tip": "列举出该字段可能的值,每行一个",
|
||||
"tool_params.params_description": "参数描述",
|
||||
"tool_params.params_description_placeholder": "姓名/年龄/SQL 语句...",
|
||||
"tool_params.params_name": "参数名",
|
||||
"tool_params.params_name_placeholder": "name/age/sql",
|
||||
"tool_params.tool_params_result": "参数配置结果",
|
||||
"tool_params_config": "工具参数配置",
|
||||
"trigger_after_application_completion": "将在应用完全结束后触发",
|
||||
"update_link_error": "更新链接异常",
|
||||
"update_specified_node_output_or_global_variable": "可以更新指定节点的输出值或更新全局变量",
|
||||
|
Reference in New Issue
Block a user