{"Message":"增加AI日报功能","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/FGC_订单记录","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_订单明细表","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_商品表","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/人员工时统计视图"},{"State":1,"Type":23,"Name":"TableView/用户信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户角色关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织级别视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色分类关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色拥有权限视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色组织关系视图","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/汇报子表"},{"State":1,"Type":7,"Name":"Table/付款凭证表"},{"State":1,"Type":1,"Name":"PCPage/汇报详情"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":26,"Name":"Upload"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":15,"Name":"ServerCommand/AI自动编写汇报"},{"State":3,"Type":7,"Name":"Table/message_test","ExclusiveType":0},{"State":3,"Type":15,"Name":"ServerCommand/测试GPT"},{"State":3,"Type":1,"Name":"PCPage/日报助手"},{"State":3,"Type":15,"Name":"ServerCommand/AI生成日报详情"}],"Version":"v1"}

This commit is contained in:
SHAMUSPC\NINGMEI
2024-04-16 21:51:06 +08:00
parent 1dccc1466b
commit f0d37bbddd
16 changed files with 1428 additions and 331 deletions

View File

@@ -0,0 +1,508 @@
{
"Name": "AI生成日报详情",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_LoginUser"
]
}
]
}
},
"Parameters": [
{
"Name": "汇报人",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "夏超"
},
{
"Name": "汇报日期",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "2024-04-16"
},
{
"Name": "汇报内容",
"DataValidationInfo": {
"IgnoreBlank": false
},
"TestData": "今天和报价系统部门做了沟通了解了关于成本的细节2小时\r\n另外针对旭升的需求对发票标准版系统进行了升级\r\n抽空研究了一下时间轮的插件做了一些测试花了2小时\r\n今天计划\r\n继续测试时间轮插件、把发票标准版系统的离线发布文件更新以下让恃舷部署到测试服务器\r\n把PMS抽空完善一下预计1小时"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"OutParamaterName": "聊天记录"
},
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "role",
"Value": "user"
},
{
"Name": "content",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报内容"
}
}
],
"OutParamaterName": "我的消息"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Operation": 4,
"OperationParamaterAName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=我的消息"
},
"OutParamaterName": "聊天记录"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "获取返回数据",
"ID": "2d5721f5d57e4f99bf86c95b7ba87b44"
},
{
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://oa.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Parameter": {
"Model": 43,
"Number": 1,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 3000,
"SystemContent": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"我稍后将发送一篇关于工作日报的内容,汇报人为:\"&汇报人&\"汇报日期为:\"&汇报日期&\"请帮我将工作内容帮我整理成结构化标准数据,我用来写入数据表,通过调用[生成日报数据]命令来想我传递结果参数。\""
},
"Response_format": "text"
},
"OpenTools": true,
"Tools": [
{
"$type": "OPENAIFORGUNCY.FunctionCallObj, OPENAIFORGUNCY",
"Name": "CreateReportData",
"Description": "通过一段自然语言文本,生成结构化的日报数据,用于写到数据表。",
"Properties": [
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "reportList",
"PropertiesType": 4,
"Description": "工作日报数据数组,每一个成员都代表一项工作数据",
"Properties": [],
"Items": {
"Name": "工作日报数据对象",
"PropertiesType": 3,
"Description": "工作日报数据对象,包含工作日报的各个属性和值",
"Required": "type,content",
"Properties": [
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "type",
"Description": "日报代表对昨日工作的汇报,计划为今日还未执行的计划",
"Enum": "日报,计划",
"Properties": []
},
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "content",
"Description": "指具体某一项工作内容你可以进行适当润色对所耗时长的内容请放置time参数里这里需要删掉。",
"Properties": []
},
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "time",
"PropertiesType": 2,
"Description": "某一项工作内容的工作时长,单位为小时,不可自行推测和修改,如果内容中没有就为空。",
"Properties": []
}
]
}
}
],
"Required": "type,content",
"CallFunctionCommand": {
"$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands",
"Commands": [
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参数对象.reportList"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报子表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "汇报ID",
"GUID": "39d1011f-77d2-4106-b28c-a0b3bcadaebf"
},
"Value": "1"
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "汇报类型",
"GUID": "8168f28d-1cd9-4747-92ac-ccb24b01cbf7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.type"
}
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "汇报内容",
"GUID": "7cd850b0-866e-4b35-b100-d7619a225767"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.content"
}
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "工时",
"GUID": "5867bc71-06f3-4adb-93e2-9cb407b6929a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.time"
}
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "关联任务",
"GUID": "fb41bf88-a680-4215-851f-53cb228334c4"
},
"Value": "1"
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "关联项目",
"GUID": "d8b6a211-6d0c-4826-9474-748a3de364f6"
},
"Value": "1"
}
]
}
],
"Disabled": true
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "ok",
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
],
"Disabled": true
}
],
"ParamProperties": {
"arguments": "参数对象"
}
}
}
],
"ResultTo": "result"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "第一条消息",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.choices.0.delta"
},
"ID": "76606e9f5c17475389f1432aada4e34d"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.tool_calls"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.tool_calls.Count"
}
},
"value": "0",
"compareType": 2
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "第一条命令",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.tool_calls.0.function"
},
"ID": "71cc339549c14ef6ab89d4df1ab33791"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条命令.name"
}
},
"value": "CreateReportData"
},
"CommandList": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条命令.arguments"
},
"SampleJson": "{\r\n \"reportList\": [\r\n {\r\n \"type\": \"日报\",\r\n \"content\": \"今天和报价系统部门做了沟通,了解了关于成本的细节\",\r\n \"time\": 120\r\n },\r\n {\r\n \"type\": \"日报\",\r\n \"content\": \"对发票标准版系统进行了升级\",\r\n \"time\": 0\r\n },\r\n {\r\n \"type\": \"日报\",\r\n \"content\": \"研究了时间轮插件,并进行了测试\",\r\n \"time\": 120\r\n },\r\n {\r\n \"type\": \"计划\",\r\n \"content\": \"继续测试时间轮插件\",\r\n \"time\": 0\r\n },\r\n {\r\n \"type\": \"计划\",\r\n \"content\": \"更新发票标准版系统的离线发布文件,并部署到测试服务器\",\r\n \"time\": 0\r\n },\r\n {\r\n \"type\": \"计划\",\r\n \"content\": \"完善PMS\",\r\n \"time\": 60\r\n }\r\n ]\r\n}",
"ToParameter": "arguments"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "reportList",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=arguments.reportList"
},
"ID": "6fba4b5f2a574cf08a7c6c685c9ddacf"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完毕",
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=reportList"
}
}
]
}
],
"ID": "300a6ec6-53fa-4905-b7f1-0012908a7e0b"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
],
"ID": "dfbd1700-2f8a-4b7b-b463-6dccbebebb89"
}
]
}
],
"ID": "d956f9c6-8745-4ebf-a734-e51ac0b16884"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
],
"ID": "fe995339-bbde-4a48-8025-c9b547f90a85"
}
]
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "回复消息",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.choices.0.delta.content"
},
"ID": "36dd5c08a29d413d999efba0c51c84bf"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报记录表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "ID",
"GUID": "bcf306d3-379f-40af-bfb6-b7898ba65c7b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "概要",
"GUID": "26feda8c-de81-4844-8447-3ca697c4f505"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息"
}
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完成",
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息"
}
}
]
}
],
"ID": "e3ba3945-2a3b-4f3e-9d79-1a1468b184e5"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.error_code"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.error_msg"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
],
"ID": "57d738ed-67d2-4d6b-b0fa-addd60807fd5"
}
],
"Disabled": true
}
],
"ReturnProperties": [
{
"Name": "日报JSON"
}
]
}

View File

@@ -25,7 +25,8 @@
"Name": "汇报ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
"TestData": "1"
}
],
"InvokeTriggerTestData": {
@@ -77,7 +78,16 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "5339ecfdc77b41249074743a5495e641"
"ID": "e777d0a6268f4e639a936c5658147d64"
},
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局配置"
},
"SampleJson": "{\"AI提示词1\":\"我将发给你一个记录着某人一天工作内容的数据为JSON字符串请你尝试解读它内容中的[汇报类型]分为`日报`和`计划`。\\n- 日报指的是昨日工作内容的总结;\\n- 计划指的是今日计划工作安排;\\n请你使用为我编写一篇简要的工作日报对于日报结构和要求如下\\n标题为固定格式YYYY年MM年DD月-某某工作日报\\n内容包含两个主题昨日工作总结、今日工作计划\\n每个主题下的内容从JSON中总结可以适当润色但不可过度偏离源数据中的工作内容\"}",
"ToParameter": "全局配置JSON"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
@@ -201,7 +211,7 @@
"Name": "content",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"我将发给你一个JSON字符串它是某个人在某天的工作内容清单内容中的[汇报类型]分为`日报`和`计划`日报指的是昨日工作内容的总结计划指的是今日计划工作安排。请你使用纯文本为我编写一篇简要的工作日报禁止使用Markdown或其他语言格式来进行排版内容如下\"&CHAR(10)&汇报数据文本"
"SerializeProperty": "=汇报数据文本"
}
}
],
@@ -221,16 +231,28 @@
"OutParamaterName": "聊天记录"
},
{
"$type": "WenxinQianfanAI.WenxinQianfanAICommand, WenxinQianfanAI",
"ClientId": "wvAnHBgnYnvcXKt3S9xPeLZF",
"ClientSecret": "yw60qYsGrCzLmuZkLoatEcKdpMzJzFuT",
"ModelType": "completions_pro",
"Messages": {
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://oa.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Functions": [],
"ReturnParam": "返回结果"
"Parameter": {
"Model": 43,
"Number": 1,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 3000,
"SystemContent": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局配置JSON.AI提示词1"
},
"Response_format": "text"
},
"Tools": [],
"ResultTo": "result"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -242,13 +264,22 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.result"
"SerializeProperty": "=result"
}
},
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "回复消息",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.choices.0.delta.content"
},
"ID": "95a0adfcd0154562a30ddff9790d7ab9"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报记录表",
@@ -271,11 +302,11 @@
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "概要",
"GUID": "08d5591d-fbe5-43fe-957c-daa7b3a4890f"
"GUID": "6e19f144-087e-4d4c-bb08-5b87b45dd518"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.result"
"SerializeProperty": "=回复消息"
}
}
]
@@ -289,13 +320,13 @@
"ReturnPropertyName": "生成文本",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.result"
"SerializeProperty": "=回复消息"
}
}
]
}
],
"ID": "df4fd3e5-b643-455a-998b-a652a91ed5a3"
"ID": "9731e3f4-249b-4d04-896a-b5d56770ef37"
},
{
"CommandList": [
@@ -316,7 +347,7 @@
]
}
],
"ID": "9011af6f-e681-403e-b74a-716e9c238862"
"ID": "31f43036-644c-4ca2-8fd9-66d6a590c3f3"
}
]
}

View File

@@ -0,0 +1,99 @@
{
"Name": "测试GPT",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
"Permission": {
"PermissionData": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
"permissionResource": {
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
},
"permissionBindings": [
{
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
"roleNames": [
"FGC_LoginUser"
]
}
]
}
},
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "message",
"TableValue": {
"TableName": "message_test",
"BindingInfos": [
{
"BindingInfo": {
"TableName": "message_test",
"ColumnName": "role",
"GUID": "505116a7-fdae-4ca2-94b1-a29180637f99"
},
"ColumnName": "role"
},
{
"BindingInfo": {
"TableName": "message_test",
"ColumnName": "content",
"GUID": "77897b37-cd72-4378-ab4b-cb7ce9427308"
},
"ColumnName": "content"
}
]
},
"ID": "41ece15fbbed44c8985d08e04b04ccd1"
},
{
"$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://oa.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=message"
},
"Parameter": {
"Model": 43,
"Number": 1,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 1000,
"SystemContent": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"我将发给你一个JSON字符串它是某个人在某天的工作内容清单内容中的[汇报类型]分为`日报`和`计划`,日报指的是昨日工作内容的总结,计划指的是今日计划工作安排。请你使用纯文本为我编写一篇简要的工作日报\""
},
"Response_format": "text"
},
"Tools": [
{
"$type": "OPENAIFORGUNCY.FunctionCallObj, OPENAIFORGUNCY",
"Name": "GetWorkTimeData",
"Description": "如果用户要求获取某人的工时(工作时长)数据请调用此命令",
"Properties": [
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "项目",
"Description": "要查询的目标人姓名",
"Properties": []
}
]
}
],
"ResultTo": "result"
}
],
"ReturnProperties": [
{
"Name": "生成文本"
}
]
}