{ "$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon", "Name": "AI对话", "Enabled": true, "Triggers": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", "Permission": { "$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon", "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": { "$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", "roleNames": { "$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib", "$values": [ "FGC_LoginUser" ] } } ] } } }, "Parameters": { "$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon", "Name": "主题ID", "DataValidationInfo": { "$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon", "IgnoreBlank": false }, "TestData": "2" } ] }, "InvokeTriggerTestData": { "$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon", "UserName": "Administrator" } } ] }, "Commands": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "主题信息", "TableValue": { "$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon", "TableName": "对话主题", "TableValueType": 1, "BindingInfos": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "90894556-d981-4368-9f92-ecb4d6ca7ffb", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "ID", "GUID": "83a31143-581e-4afc-8910-2826889e35af" }, "ColumnName": "ID" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "e6315872-b0aa-4ea7-8842-e63a17eecd17", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "主题", "GUID": "7ec162b4-dcd0-4cc1-87a3-3b9c711e09f4" }, "ColumnName": "主题" } ] }, "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "ID", "GUID": "c7b1e947-30c5-4550-ab96-3458a2f0d10a" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主题ID" } }, "NullFormulaValueQueryPolicy": 0 }, "ID": "a4e6f9bd1d114334a198e9c5952f9396", "BreakpointIdentity": "f6b29b6f-393b-497a-934f-f30e0f4f273c" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主题信息" } }, "value": "%Null%" }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "对话主题", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "用户", "GUID": "1041a413-15a6-41d2-b7cd-6c4c93a9ec6a" }, "Value": "%CurrentUser%" }, { "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "主题", "GUID": "c1419f50-4e91-4e36-ad86-99086a9ae013" }, "Value": "新创建的主题" } ] }, "ParamNameToSaveNewRowValue": "主题信息", "BreakpointIdentity": "a954e16c-d572-419c-965f-0999fee47b9d" } ] }, "ID": "4e6be5e0-a4df-4aa3-bd4e-144f78b626cd" } ] }, "BreakpointIdentity": "7322fbbc-559d-40b3-8e57-e30fe557cfed" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "当前用户", "ParameterValue": "%CurrentUser%", "ID": "9adec28510a64178b629bf740173d72f", "BreakpointIdentity": "15070501-f7bc-4e9d-93c1-ccd78f3235a5" }, { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "消息记录", "TableValue": { "$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon", "TableName": "对话历史", "BindingInfos": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "05c68ac8-2b71-4abd-99e0-e6e0f4d195b1", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话历史", "ColumnName": "角色", "GUID": "2b8d2f47-f447-4851-b920-3f8917ed16e3" }, "ColumnName": "role" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "7847e49c-4254-499b-ac14-cbc81ed29335", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话历史", "ColumnName": "内容", "GUID": "e9fe5d96-47d4-49b9-aa7a-a5b3ed984c7b" }, "ColumnName": "content" }, { "$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon", "GUID": "009b02ae-8ac0-4699-8446-28f0df518ecb", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话历史", "ColumnName": "图片", "GUID": "c3d18449-c1a4-4754-abd8-0edc49309d48" }, "ColumnName": "img" } ] }, "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话历史", "ColumnName": "主题", "GUID": "f7d70ba9-3871-4633-a196-b8967915305b" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主题ID" } }, "OrderBySqlCondition": { "$type": "ForguncyDataAccess.OrderBySqlCondition, ForguncyDataAccess", "OrderByColumns": { "$type": "System.Collections.Generic.List`1[[ForguncyDataAccess.OrderBySqlConditionItem, ForguncyDataAccess]], System.Private.CoreLib", "$values": [ { "$type": "ForguncyDataAccess.OrderBySqlConditionItem, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话历史", "ColumnName": "FGC_CreateDate", "GUID": "834fe33b-50ff-4c97-9211-aa91de5726c0" }, "Order": 0 } ] } } }, "ID": "ee09c660717e4658aad9d1f056d4a294", "BreakpointIdentity": "c0939395-298c-4953-8af6-053330816d07" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "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": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", "NotificationName": "AI流消息", "SendType": 1, "UserNames": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户" }, "Params": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.NotificationMessageParam, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "角色" }, { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "内容", "Value": "strat" } ] }, "ID": "33b6a7ea5aeb40d78695440299de376e", "BreakpointIdentity": "d5d7ecdd-9216-40a8-bd97-ae240052a871" }, { "$type": "OPENAIFORGUNCY.Completions, OPENAIFORGUNCY", "URL": "https://openai.api2d.net", "APIKEY": "fk211858-C6yKrsealBkvHao04yT9Ypg6GR0NVPyh", "ORGANIZATION": "", "IsDataSource": "json", "MessageJSON": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=消息记录" }, "Parameter": { "$type": "OPENAIFORGUNCY.ParameterObject, OPENAIFORGUNCY", "Model": 42, "Temperature": 1.0, "TopP": 1.0, "MaxTokens": 1000, "SystemContent": "你是一个乐于助人的智能助手,请您为我解答我提出的问题。", "Stream": true, "Response_format": "text" }, "Tools": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Plugin.INamedObject, GrapeCity.Forguncy.Plugin]], System.Private.CoreLib", "$values": [] }, "ResultTo": "result", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", "NotificationName": "AI流消息", "SendType": 1, "UserNames": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户" }, "Params": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.NotificationMessageParam, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "角色", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.role" } }, { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "内容", "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=result.content" } } ] }, "ID": "9d2bb17a5f964e2c9e8a874273cafbe4", "BreakpointIdentity": "f6c279a0-d789-4798-98c5-21ff4e4af3c7" } ] }, "BreakpointIdentity": "bb06b43c-d96a-4cbf-801b-042b55d664dd" }, { "$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon", "NotificationName": "AI流消息", "SendType": 1, "UserNames": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=当前用户" }, "Params": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.NotificationMessageParam, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "角色" }, { "$type": "Forguncy.Model.NotificationMessageParam, ServerDesignerCommon", "Name": "内容", "Value": "done" } ] }, "ID": "0cf23e921fd44b7bad72bad1d0446d31", "BreakpointIdentity": "fb2e20a5-9be2-4382-b0af-115729fac53e" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主题信息.主题" } }, "value": "新创建的主题" }, "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "对话主题", "ShowConfirm": false, "RowsToUpdate": 1, "RowsToUpdateCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "ID", "GUID": "665e9b45-d556-43f1-be2f-3344a1529679" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=主题信息.ID" } }, "UpdateBindingValues": { "$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon", "BindingInfo": { "$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess", "TableName": "对话主题", "ColumnName": "主题", "GUID": "d5b820d6-2ce8-404d-b278-811dd721fb59" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=LEFT(消息记录.0.content,12)" } } ] }, "BreakpointIdentity": "5342b4f3-7960-4ebc-8b04-f59c60d930c1" } ] }, "ID": "b95724ac-99c9-4891-82fc-e13fe8a73e9e" } ] }, "BreakpointIdentity": "8c8b44fe-2cfb-4d0b-bf7d-03f958c36525" }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "回答完毕", "BreakpointIdentity": "948b5ab6-2de3-473e-9676-acd690a7f11c" } ] }, "ID": "ade0073d-a0b8-43a0-94a3-f7460852e706" }, { "$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon", "CommandList": { "$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib", "$values": [ { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "400", "Message": "请输入消息", "BreakpointIdentity": "f181fac3-07a6-4354-9df2-e5f047534ac5" } ] }, "ID": "028d5d02-3a8a-4da3-948b-eaaf8e7ab9fb" } ] }, "BreakpointIdentity": "762f9064-4660-4214-9c1c-ff72d2a3ed22" } ] } }