Merge pull request #876 from iceljc/master

ignore extra mongo elements
This commit is contained in:
iceljc 2025-02-08 15:49:54 -06:00 committed by GitHub
commit b3d1bba1c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 18 additions and 4 deletions

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentKnowledgeBaseMongoElement
{
public string Name { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentLlmConfigMongoElement
{
public string? Provider { get; set; }

View file

@ -2,7 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements]
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentResponseMongoElement
{
public string Prefix { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentRuleMongoElement
{
public string TriggerName { get; set; }

View file

@ -2,7 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements]
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentTemplateMongoElement
{
public string Name { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class AgentUtilityMongoElement
{
public string Name { get; set; }

View file

@ -1,5 +1,6 @@
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class BreakpointMongoElement
{
public string? MessageId { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class ChannelInstructionMongoElement
{
public string Channel { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Crontab.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class CronTaskMongoElement
{
public string Topic { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class DialogMongoElement
{
public DialogMetaDataMongoElement MetaData { get; set; }

View file

@ -3,7 +3,7 @@ using System.Text.Json;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements]
[BsonIgnoreExtraElements(Inherited = true)]
public class FunctionDefMongoElement
{
public string Name { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class KnowledgeEmbeddingConfigMongoModel
{
public string Provider { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class KnowledgeFileMetaRefMongoModel
{
public string Id { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.VectorStorage.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class KnowledgeVectorStoreConfigMongoModel
{
public string Provider { get; set; }

View file

@ -1,5 +1,6 @@
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class PromptLogMongoElement
{
public string MessageId { get; set; }

View file

@ -2,7 +2,7 @@ using BotSharp.Abstraction.Routing.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements]
[BsonIgnoreExtraElements(Inherited = true)]
public class RoutingRuleMongoElement
{
public string Field { get; set; }

View file

@ -2,6 +2,7 @@ using BotSharp.Abstraction.Conversations.Models;
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class StateMongoElement
{
public string Key { get; set; }

View file

@ -1,5 +1,6 @@
namespace BotSharp.Plugin.MongoStorage.Models;
[BsonIgnoreExtraElements(Inherited = true)]
public class TranslationMemoryMongoElement
{
public string TranslatedText { get; set; }