360 lines
12 KiB
JSON
360 lines
12 KiB
JSON
{
|
||
"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": "汇报ID",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "1"
|
||
}
|
||
],
|
||
"InvokeTriggerTestData": {
|
||
"UserName": "Administrator"
|
||
}
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "汇报主表",
|
||
"TableValue": {
|
||
"TableName": "汇报记录表",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "汇报人",
|
||
"GUID": "b4df1d1d-bad2-4169-8d6a-f58887c99582",
|
||
"AttachType": {
|
||
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
|
||
"UserColumnAttachType": 1
|
||
}
|
||
},
|
||
"ColumnName": "汇报人"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "汇报日期文本",
|
||
"GUID": "657dec23-28df-476f-8709-36b38c0e7b96"
|
||
},
|
||
"ColumnName": "汇报日期"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "ID",
|
||
"GUID": "813a1102-e2e5-41d7-8044-6a088af709f4"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=汇报ID"
|
||
}
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0,
|
||
"TopCount": "1"
|
||
},
|
||
"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",
|
||
"ParameterName": "汇报子表",
|
||
"TableValue": {
|
||
"TableName": "汇报子表",
|
||
"BindingInfos": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "汇报类型",
|
||
"GUID": "4f46c36a-25e6-4b82-a1ac-16109d071ab8"
|
||
},
|
||
"ColumnName": "汇报类型"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "汇报内容",
|
||
"GUID": "0d671561-a0b5-46f2-8012-da3267e15083"
|
||
},
|
||
"ColumnName": "汇报内容"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "工时",
|
||
"GUID": "2c0c577e-37de-431f-a226-3adac1d33e53"
|
||
},
|
||
"ColumnName": "工时"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "关联项目",
|
||
"GUID": "875dd053-4423-4c34-bb9d-d588a882d0a6",
|
||
"RelationBinding": {
|
||
"RelatedTable": "项目表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "项目名称"
|
||
}
|
||
},
|
||
"ColumnName": "项目名称"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "关联任务",
|
||
"GUID": "0f17a3a1-f25c-418b-a9b2-c5d7456d5c29",
|
||
"RelationBinding": {
|
||
"RelatedTable": "任务表",
|
||
"RelatedColumn": "ID",
|
||
"DisplayColumn": "任务名称"
|
||
}
|
||
},
|
||
"ColumnName": "任务名称"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "汇报子表",
|
||
"ColumnName": "汇报ID",
|
||
"GUID": "de513bc4-ed82-42fe-8d68-e673d86727d5"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=汇报ID"
|
||
}
|
||
}
|
||
},
|
||
"ID": "e846b647f4a74a52b07bdb4e3878e485"
|
||
},
|
||
{
|
||
"$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": "汇报数据对象"
|
||
},
|
||
{
|
||
"$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,
|
||
"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",
|
||
"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": "95a0adfcd0154562a30ddff9790d7ab9"
|
||
},
|
||
{
|
||
"$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": "=汇报ID"
|
||
}
|
||
},
|
||
"UpdateBindingValues": [
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "概要",
|
||
"GUID": "6e19f144-087e-4d4c-bb08-5b87b45dd518"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=回复消息"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "生成完成",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "生成文本",
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=回复消息"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "9731e3f4-249b-4d04-896a-b5d56770ef37"
|
||
},
|
||
{
|
||
"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": "生成文本"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "31f43036-644c-4ca2-8fd9-66d6a590c3f3"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "生成文本"
|
||
}
|
||
]
|
||
} |