Skip to content

Commit b3d1bba

Browse files
authored
Merge pull request #876 from iceljc/master
ignore extra mongo elements
2 parents 896d582 + e98ab68 commit b3d1bba

18 files changed

+18
-4
lines changed

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentKnowledgeBaseMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class AgentKnowledgeBaseMongoElement
67
{
78
public string Name { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentLlmConfigMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class AgentLlmConfigMongoElement
67
{
78
public string? Provider { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentResponseMongoElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5-
[BsonIgnoreExtraElements]
5+
[BsonIgnoreExtraElements(Inherited = true)]
66
public class AgentResponseMongoElement
77
{
88
public string Prefix { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentRuleMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class AgentRuleMongoElement
67
{
78
public string TriggerName { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentTemplateMongoElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5-
[BsonIgnoreExtraElements]
5+
[BsonIgnoreExtraElements(Inherited = true)]
66
public class AgentTemplateMongoElement
77
{
88
public string Name { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentUtilityMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class AgentUtilityMongoElement
67
{
78
public string Name { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/BreakpointMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace BotSharp.Plugin.MongoStorage.Models;
22

3+
[BsonIgnoreExtraElements(Inherited = true)]
34
public class BreakpointMongoElement
45
{
56
public string? MessageId { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/ChannelInstructionMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class ChannelInstructionMongoElement
67
{
78
public string Channel { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/CronTaskMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class CronTaskMongoElement
67
{
78
public string Topic { get; set; }

src/Plugins/BotSharp.Plugin.MongoStorage/Models/DialogMongoElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace BotSharp.Plugin.MongoStorage.Models;
44

5+
[BsonIgnoreExtraElements(Inherited = true)]
56
public class DialogMongoElement
67
{
78
public DialogMetaDataMongoElement MetaData { get; set; }

0 commit comments

Comments
 (0)