File tree Expand file tree Collapse file tree
BotSharp.Abstraction/Agents/Models
BotSharp.Core/Instructs/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ namespace BotSharp.Abstraction.Agents.Models;
22
33public class AgentLlmConfig
44{
5+ public AgentLlmConfig ( ) { }
6+
7+ public AgentLlmConfig ( AgentTemplateLlmConfig templateLlmConfig )
8+ {
9+ Provider = templateLlmConfig . Provider ;
10+ Model = templateLlmConfig . Model ;
11+ MaxOutputTokens = templateLlmConfig . MaxOutputTokens ;
12+ ReasoningEffortLevel = templateLlmConfig . ReasoningEffortLevel ;
13+ }
14+
515 /// <summary>
616 /// Is inherited from default Agent Settings
717 /// </summary>
Original file line number Diff line number Diff line change @@ -71,13 +71,7 @@ private async Task<Agent> BuildInnerAgent(InstructOptions? options)
7171 var templateLlmConfig = template ? . LlmConfig ;
7272 if ( templateLlmConfig ? . IsValid == true )
7373 {
74- llmConfig = new AgentLlmConfig
75- {
76- Provider = templateLlmConfig . Provider ,
77- Model = templateLlmConfig . Model ,
78- MaxOutputTokens = templateLlmConfig . MaxOutputTokens ,
79- ReasoningEffortLevel = templateLlmConfig . ReasoningEffortLevel
80- } ;
74+ llmConfig = new AgentLlmConfig ( templateLlmConfig ) ;
8175 }
8276 }
8377 }
You can’t perform that action at this time.
0 commit comments