Skip to content

Commit f928bde

Browse files
[tool] Upgrading tools and application to match standard json schema (#333)
1 parent f1c28a0 commit f928bde

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

app-builder/jane/plugins/aipp-plugin/src/main/resources/sql/data/tr_t_interview.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ INSERT INTO "public"."task_new" ("id", "name", "version", "template_id", "tenant
3333
INSERT INTO "public"."store_tool" ("name", "schema", "runnables", "extensions", "unique_name", "version", "is_latest", "group_name", "definition_name", "definition_group_name") VALUES ('AI简历解析插件', '{"name":"AI简历解析插件","description":"解析简历内容,填充提示词模板,输出大模型提示词","parameters":{"type":"object","properties":{"fileUrl":{"type":"string","description":"简历文件URL"},"instanceId":{"type":"string","description":"实例ID"}},"required":["fileUrl","instanceId"]},"order":["fileUrl","instanceId"],"return":{"description":"Map结构包含提示词,插件处理过文件的标志位以及错误信息","type":"object","properties":{"isFileHandled":{"type":"boolean"},"cvAnalyzerPrompt":{"type":"string"},"errorMessage":{"type":"string"}},"converter":""}}', '{"FIT":{"fitableId":"cv.analyzer","genericableId":"modelengine.fit.jober.aipp.tool.cv.analyzer"}}', '{}', '8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8', '1.0.0', 't', '8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8', '8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8', '8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8') ON CONFLICT("unique_name", "version") DO NOTHING;
3434
INSERT INTO "public"."store_tool" ("name", "schema", "runnables", "extensions", "unique_name", "version", "is_latest", "group_name", "definition_name", "definition_group_name") VALUES ('AI提示词拼接工具', '{"name":"AI提示词拼接工具","description":"这是一个对用户输入提示词进行拼接的工具。","parameters":{"type":"object","properties":{"appId":{"type":"string","description":"应用ID"},"instanceId":{"type":"string","description":"实例ID"},"input":{"type":"string","description":"用户输入"}},"required":["appId","instanceId","input"],"order":["appId","instanceId","input"]},"return":{"type":"string"}}', '{"FIT":{"genericableId":"modelengine.fit.jober.aipp.tool.prompt.word.splice","fitableId":"prompt.word.splice","alias":"prompt.word.splice"}}', '{}', 'bdc009dc-969e-4839-b5d7-e9599009d50d', '1.0.0', 't', 'bdc009dc-969e-4839-b5d7-e9599009d50d', 'bdc009dc-969e-4839-b5d7-e9599009d50d', 'bdc009dc-969e-4839-b5d7-e9599009d50d') ON CONFLICT("unique_name", "version") DO NOTHING;
3535

36-
INSERT INTO "public"."store_tool" ("name", "schema", "runnables", "extensions", "unique_name", "version", "is_latest", "group_name", "definition_name", "definition_group_name") VALUES ('面试助手-v3', '{"name":"面试助手-v3","description":"","manualIntervention":false,"parameters":{"type":"object","properties":{"aippId":{"description":"the aipp id of the waterFlow tool","default":"ec6f8e93a80541bb930fc22678ef7043","type":"string"},"tenantId":{"description":"the tenant id of the waterFlow tool","default":"31f20efc7e0848deab6a6bc10fc3021e","type":"string"},"inputParams":{"type":"object","properties":{"Question":{"type":"String","description":"这是用户输入的问题。"}},"required":["Question"],"order":["Question"]},"version":{"description":"the aipp version of the waterFlow tool","default":"1.0.0","type":"string"}},"required":["tenantId","aippId","version","inputParams"]},"return":{"type":"object","properties":{}},"order":["tenantId","aippId","version","inputParams"]}', '{"FIT":{"fitableId":"water.flow.invoke","genericableId":"07b51bd246594c159d403164369ce1db"},"APP":{"aippId":"ec6f8e93a80541bb930fc22678ef7043","appCategory":"chatbot","version":"1.0.0","appId":"fd8166b5005e4d66a77d318f3b1dd5e5"}}', 'null', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', '1.0.0', 't', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf') ON CONFLICT("unique_name", "version") DO NOTHING;
36+
INSERT INTO "public"."store_tool" ("name", "schema", "runnables", "extensions", "unique_name", "version", "is_latest", "group_name", "definition_name", "definition_group_name") VALUES ('面试助手-v3', '{"name":"面试助手-v3","description":"","manualIntervention":false,"parameters":{"type":"object","properties":{"aippId":{"description":"the aipp id of the waterFlow tool","default":"ec6f8e93a80541bb930fc22678ef7043","type":"string"},"tenantId":{"description":"the tenant id of the waterFlow tool","default":"31f20efc7e0848deab6a6bc10fc3021e","type":"string"},"inputParams":{"type":"object","properties":{"Question":{"type":"string","description":"这是用户输入的问题。"}},"required":["Question"],"order":["Question"]},"version":{"description":"the aipp version of the waterFlow tool","default":"1.0.0","type":"string"}},"required":["tenantId","aippId","version","inputParams"]},"return":{"type":"object","properties":{}},"order":["tenantId","aippId","version","inputParams"]}', '{"FIT":{"fitableId":"water.flow.invoke","genericableId":"07b51bd246594c159d403164369ce1db"},"APP":{"aippId":"ec6f8e93a80541bb930fc22678ef7043","appCategory":"chatbot","version":"1.0.0","appId":"fd8166b5005e4d66a77d318f3b1dd5e5"}}', 'null', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', '1.0.0', 't', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf') ON CONFLICT("unique_name", "version") DO NOTHING;
3737

3838
INSERT INTO "public"."store_app" ("source", "icon", "app_category", "tool_name", "tool_unique_name") VALUES ('system', '', 'chatbot', '面试助手-v3', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf') ON CONFLICT("tool_unique_name") DO NOTHING;;
3939

4040
INSERT INTO "public"."store_definition" ("name", "schema", "definition_group_name") VALUES ('8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8', '{"name":"AI简历解析插件","description":"解析简历内容,填充提示词模板,输出大模型提示词","parameters":{"type":"object","properties":{"fileUrl":{"type":"string","description":"简历文件URL"},"instanceId":{"type":"string","description":"实例ID"}},"required":["fileUrl","instanceId"]},"order":["fileUrl","instanceId"],"return":{"description":"Map结构包含提示词,插件处理过文件的标志位以及错误信息","type":"object","properties":{"isFileHandled":{"type":"boolean"},"cvAnalyzerPrompt":{"type":"string"},"errorMessage":{"type":"string"}},"converter":""}}', '8b7e54b7-ce07-40ed-ad93-5d608aa8f6d8') ON CONFLICT("name", "definition_group_name") DO NOTHING;
4141
INSERT INTO "public"."store_definition" ("name", "schema", "definition_group_name") VALUES ('bdc009dc-969e-4839-b5d7-e9599009d50d', '{"name":"AI提示词拼接工具","description":"这是一个对用户输入提示词进行拼接的工具。","parameters":{"type":"object","properties":{"appId":{"type":"string","description":"应用ID"},"instanceId":{"type":"string","description":"实例ID"},"input":{"type":"string","description":"用户输入"}},"required":["appId","instanceId","input"],"order":["appId","instanceId","input"]},"return":{"type":"string"}}', 'bdc009dc-969e-4839-b5d7-e9599009d50d') ON CONFLICT("name", "definition_group_name") DO NOTHING;
42-
INSERT INTO "public"."store_definition" ("name", "schema", "definition_group_name") VALUES ('e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', '{"name":"e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf","description":"","manualIntervention":false,"parameters":{"type":"object","properties":{"aippId":{"description":"the aipp id of the waterFlow tool","default":"ec6f8e93a80541bb930fc22678ef7043","type":"string"},"tenantId":{"description":"the tenant id of the waterFlow tool","default":"31f20efc7e0848deab6a6bc10fc3021e","type":"string"},"inputParams":{"type":"object","properties":{"Question":{"type":"String","description":"这是用户输入的问题。"}},"required":["Question"],"order":["Question"]},"version":{"description":"the aipp version of the waterFlow tool","default":"1.0.0","type":"string"}},"required":["tenantId","aippId","version","inputParams"]},"return":{"type":"object","properties":{}},"order":["tenantId","aippId","version","inputParams"]}', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf') ON CONFLICT("name", "definition_group_name") DO NOTHING;
42+
INSERT INTO "public"."store_definition" ("name", "schema", "definition_group_name") VALUES ('e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', '{"name":"e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf","description":"","manualIntervention":false,"parameters":{"type":"object","properties":{"aippId":{"description":"the aipp id of the waterFlow tool","default":"ec6f8e93a80541bb930fc22678ef7043","type":"string"},"tenantId":{"description":"the tenant id of the waterFlow tool","default":"31f20efc7e0848deab6a6bc10fc3021e","type":"string"},"inputParams":{"type":"object","properties":{"Question":{"type":"string","description":"这是用户输入的问题。"}},"required":["Question"],"order":["Question"]},"version":{"description":"the aipp version of the waterFlow tool","default":"1.0.0","type":"string"}},"required":["tenantId","aippId","version","inputParams"]},"return":{"type":"object","properties":{}},"order":["tenantId","aippId","version","inputParams"]}', 'e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf') ON CONFLICT("name", "definition_group_name") DO NOTHING;
4343

4444
INSERT INTO "public"."store_definition_group" ("name", "summary", "description", "extensions") VALUES ('e8bbd29c-e529-4c8e-abdb-b355b2d8dcdf', 'no summary', 'no desc', 'null') ON CONFLICT("name") DO NOTHING;
4545

0 commit comments

Comments
 (0)