Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ namespace BotSharp.Abstraction.Agents.Models;

public class AgentLlmConfig
{
public AgentLlmConfig() { }

public AgentLlmConfig(AgentTemplateLlmConfig templateLlmConfig)
{
Provider = templateLlmConfig.Provider;
Model = templateLlmConfig.Model;
MaxOutputTokens = templateLlmConfig.MaxOutputTokens;
ReasoningEffortLevel = templateLlmConfig.ReasoningEffortLevel;
}

/// <summary>
/// Is inherited from default Agent Settings
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ private async Task<Agent> BuildInnerAgent(InstructOptions? options)
var templateLlmConfig = template?.LlmConfig;
if (templateLlmConfig?.IsValid == true)
{
llmConfig = new AgentLlmConfig
{
Provider = templateLlmConfig.Provider,
Model = templateLlmConfig.Model,
MaxOutputTokens = templateLlmConfig.MaxOutputTokens,
ReasoningEffortLevel = templateLlmConfig.ReasoningEffortLevel
};
llmConfig = new AgentLlmConfig(templateLlmConfig);
}
}
}
Expand Down
Loading