From 2d5b4aa3ba10a93c6bcff066bd916ca4d15a75f4 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Sat, 10 Feb 2024 09:43:33 -0600 Subject: [PATCH] Add missing field of MaxRecursionDepth --- .../Models/AgentLlmConfigMongoElement.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentLlmConfigMongoElement.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentLlmConfigMongoElement.cs index 90ae8194..5251b532 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentLlmConfigMongoElement.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/AgentLlmConfigMongoElement.cs @@ -7,6 +7,7 @@ public class AgentLlmConfigMongoElement public string? Provider { get; set; } public string? Model { get; set; } public bool IsInherit { get; set; } + public int MaxRecursionDepth { get; set; } public static AgentLlmConfigMongoElement? ToMongoElement(AgentLlmConfig? config) { @@ -17,6 +18,7 @@ public class AgentLlmConfigMongoElement Provider = config.Provider, Model = config.Model, IsInherit = config.IsInherit, + MaxRecursionDepth = config.MaxRecursionDepth, }; } @@ -29,6 +31,7 @@ public class AgentLlmConfigMongoElement Provider = config.Provider, Model = config.Model, IsInherit = config.IsInherit, + MaxRecursionDepth = config.MaxRecursionDepth, }; } }