{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目表"},{"State":1,"Type":1,"Name":"PCPage/任务列表"},{"State":1,"Type":1,"Name":"PCPage/汇报详情"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":15,"Name":"ServerCommand/AI内容转报工数据"},{"State":1,"Type":15,"Name":"ServerCommand/AI报工数据转日报"},{"State":3,"Type":1,"Name":"PCPage/AI任务助手"}],"Version":"v1"}

This commit is contained in:
SHAMUSPC\NINGMEI
2024-04-24 17:11:42 +08:00
parent 814e914bb7
commit 2942ff308d
9 changed files with 1781 additions and 897 deletions

View File

@@ -50,357 +50,375 @@
],
"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,
"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",
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "获取返回数据",
"ID": "1160201db9ab4885af5731b6a4f0c15e"
},
{
"$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": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://oa.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Parameter": {
"Model": 43,
"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": "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"
"Name": "reportList",
"PropertiesType": 4,
"Description": "工作日报数据数组,每一个成员都代表一项工作数据",
"Properties": [],
"Items": {
"Name": "工作日报数据对象",
"PropertiesType": 3,
"Description": "工作日报数据对象,包含工作日报的各个属性和值",
"Required": "type,content",
"Properties": [
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "type",
"Description": "日报代表对昨日工作的汇报,计划为今日还未执行的计划",
"Enum": "日报,计划",
"Properties": []
},
"Value": "1"
},
{
"BindingInfo": {
"TableName": "汇报子表",
"ColumnName": "汇报类型",
"GUID": "8168f28d-1cd9-4747-92ac-ccb24b01cbf7"
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "content",
"Description": "指具体某一项工作内容你可以进行适当润色对所耗时长的内容请放置time参数里这里需要删掉。",
"Properties": []
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.type"
{
"$type": "OPENAIFORGUNCY.PropertiesObj, OPENAIFORGUNCY",
"Name": "time",
"PropertiesType": 2,
"Description": "某一项工作内容的工作时长,单位为小时,不可自行推测和修改,如果内容中没有就为空。",
"Properties": []
}
},
{
"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",
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "第一条消息",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.choices.0.delta"
},
"ID": "e64b8c9ac33645ffb3001c151acc8918"
},
{
"$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": [
"Required": "type,content",
"CallFunctionCommand": {
"$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands",
"Commands": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条命令.name"
}
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参数对象.reportList"
},
"value": "CreateReportData"
"LoopItemParamName": "Item"
},
"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": [
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报子表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"ReturnPropertyName": "日报JSON",
"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": "=reportList"
"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"
}
]
}
],
"ID": "2bbf012d-0a2f-4bfc-96fe-b8a51478c893"
"Disabled": true
},
{
"CommandList": [
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "ok",
"CustomReturns": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
"ReturnPropertyName": "日报JSON"
}
],
"ID": "8ec03356-8284-457b-9d71-2641bb12bd94"
"Disabled": true
}
]
],
"ParamProperties": {
"arguments": "参数对象"
}
}
],
"ID": "5630a4de-fbc5-4d3d-9918-cc5cc98e48a2"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
}
],
"ResultTo": "result",
"CommandList": [
{
"$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": "=result.tool_calls"
}
},
"value": "%Null%",
"compareType": 1
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.tool_calls.Count"
}
},
"value": "0",
"compareType": 2
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "function",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.tool_calls.0.function"
},
"ID": "bf1604d840c5489ba3eea9adeb21f391"
},
{
"$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": "=function.name"
}
},
"value": "CreateReportData"
},
"CommandList": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=function.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": "46466e3f3c5a40a8a27b326072688b5e"
}
],
"ID": "c896a53b-a72f-43d7-a514-47b4513396a5"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
],
"ID": "c038072d-e2d1-45cd-9566-d7b9b0b0fb12"
}
]
}
],
"ID": "9d0189c2-7188-4beb-bc64-32bdb9240476"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=第一条消息.content"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
],
"ID": "25d03ffb-9976-471d-b24d-f4fd5f0cb68e"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完毕",
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=reportList"
}
],
"ID": "248dc6c4-ddae-4403-b702-129f935b6591"
}
]
}
]
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
},
"CustomReturns": [
{
"ReturnPropertyName": "日报JSON"
}
]
}
]
}
}
],
"ReturnProperties": [

View File

@@ -61,171 +61,183 @@
],
"Commands": [
{
"$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": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Name": "汇报日期",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"Name": "汇报人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"Name": "工作内容明细",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报数据"
}
}
],
"OutParamaterName": "汇报数据对象"
},
{
"$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand",
"SourceObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报数据对象"
},
"ToParameter": "汇报数据文本"
},
{
"$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": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://oa.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Parameter": {
"Model": 43,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 3000,
"SystemContent": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局配置JSON.AI提示词1"
},
"Response_format": "text"
},
"Tools": [],
"ResultTo": "result",
"CommandList": [
{
"$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": "39923e69847142ef9112d1f7ff63b431"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完成",
"CustomReturns": [
{
"ReturnPropertyName": "生成文本",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=回复消息"
}
}
]
}
],
"ID": "c682b2d2-7253-43d4-b57f-e979981af543"
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报数据.Count"
}
},
"value": "0",
"compareType": 2
},
"CommandList": [
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.error_code"
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$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"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回结果.error_msg"
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "汇报日期",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"Name": "汇报人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"Name": "工作内容明细",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报数据"
}
}
],
"OutParamaterName": "汇报数据对象"
},
"CustomReturns": [
{
"ReturnPropertyName": "生成文本"
}
]
}
],
"ID": "7e03f0e5-4ff6-4984-96d9-32b64d1e071e"
{
"$type": "JsonUtilityCommand.JsonSerializeCommand, JsonUtilityCommand",
"SourceObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报数据对象"
},
"ToParameter": "汇报数据文本"
},
{
"$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": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY",
"URL": "https://openai.api2d.net",
"APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh",
"IsDataSource": "json",
"MessageJSON": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=聊天记录"
},
"Parameter": {
"Model": 43,
"Temperature": 1.0,
"TopP": 1.0,
"MaxTokens": 3000,
"SystemContent": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局配置JSON.AI提示词1"
},
"Response_format": "text"
},
"Tools": [],
"ResultTo": "result",
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "生成完成",
"CustomReturns": [
{
"ReturnPropertyName": "生成文本",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.content"
}
}
]
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
},
"CustomReturns": [
{
"ReturnPropertyName": "生成文本"
}
]
}
]
}
}
]
],
"ID": "722f555e-4094-4a1d-8191-881a5861f680"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "请提供工作内容后再试",
"CustomReturns": [
{
"ReturnPropertyName": "生成文本"
}
]
}
],
"ID": "761504f4-8247-41b7-b6bd-34a3f281a571"
}
]
}