ignore extra mongo elements
This commit is contained in:
parent
896d58272b
commit
e98ab682a7
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentKnowledgeBaseMongoElement
|
public class AgentKnowledgeBaseMongoElement
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentLlmConfigMongoElement
|
public class AgentLlmConfigMongoElement
|
||||||
{
|
{
|
||||||
public string? Provider { get; set; }
|
public string? Provider { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
[BsonIgnoreExtraElements]
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentResponseMongoElement
|
public class AgentResponseMongoElement
|
||||||
{
|
{
|
||||||
public string Prefix { get; set; }
|
public string Prefix { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentRuleMongoElement
|
public class AgentRuleMongoElement
|
||||||
{
|
{
|
||||||
public string TriggerName { get; set; }
|
public string TriggerName { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
[BsonIgnoreExtraElements]
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentTemplateMongoElement
|
public class AgentTemplateMongoElement
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class AgentUtilityMongoElement
|
public class AgentUtilityMongoElement
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class BreakpointMongoElement
|
public class BreakpointMongoElement
|
||||||
{
|
{
|
||||||
public string? MessageId { get; set; }
|
public string? MessageId { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Agents.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class ChannelInstructionMongoElement
|
public class ChannelInstructionMongoElement
|
||||||
{
|
{
|
||||||
public string Channel { get; set; }
|
public string Channel { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Crontab.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class CronTaskMongoElement
|
public class CronTaskMongoElement
|
||||||
{
|
{
|
||||||
public string Topic { get; set; }
|
public string Topic { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Conversations.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class DialogMongoElement
|
public class DialogMongoElement
|
||||||
{
|
{
|
||||||
public DialogMetaDataMongoElement MetaData { get; set; }
|
public DialogMetaDataMongoElement MetaData { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ using System.Text.Json;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
[BsonIgnoreExtraElements]
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class FunctionDefMongoElement
|
public class FunctionDefMongoElement
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.VectorStorage.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class KnowledgeEmbeddingConfigMongoModel
|
public class KnowledgeEmbeddingConfigMongoModel
|
||||||
{
|
{
|
||||||
public string Provider { get; set; }
|
public string Provider { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Knowledges.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class KnowledgeFileMetaRefMongoModel
|
public class KnowledgeFileMetaRefMongoModel
|
||||||
{
|
{
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.VectorStorage.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class KnowledgeVectorStoreConfigMongoModel
|
public class KnowledgeVectorStoreConfigMongoModel
|
||||||
{
|
{
|
||||||
public string Provider { get; set; }
|
public string Provider { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class PromptLogMongoElement
|
public class PromptLogMongoElement
|
||||||
{
|
{
|
||||||
public string MessageId { get; set; }
|
public string MessageId { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ using BotSharp.Abstraction.Routing.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
[BsonIgnoreExtraElements]
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class RoutingRuleMongoElement
|
public class RoutingRuleMongoElement
|
||||||
{
|
{
|
||||||
public string Field { get; set; }
|
public string Field { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ using BotSharp.Abstraction.Conversations.Models;
|
||||||
|
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class StateMongoElement
|
public class StateMongoElement
|
||||||
{
|
{
|
||||||
public string Key { get; set; }
|
public string Key { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
namespace BotSharp.Plugin.MongoStorage.Models;
|
namespace BotSharp.Plugin.MongoStorage.Models;
|
||||||
|
|
||||||
|
[BsonIgnoreExtraElements(Inherited = true)]
|
||||||
public class TranslationMemoryMongoElement
|
public class TranslationMemoryMongoElement
|
||||||
{
|
{
|
||||||
public string TranslatedText { get; set; }
|
public string TranslatedText { get; set; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue