Skip to content

Commit 8ceb044

Browse files
authored
Merge pull request #2 from jackjiang-sms/master
AII-400
2 parents 0f9a01c + e9cab2d commit 8ceb044

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.LoadAgent.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BotSharp.Core.Agents.Services;
55

66
public partial class AgentService
77
{
8-
public static ConcurrentDictionary<string, Dictionary<string,string>> AgentParameterTypes = new();
8+
public static ConcurrentDictionary<string, Dictionary<string, string>> AgentParameterTypes = new();
99

1010
[MemoryCache(10 * 60, perInstanceCache: true)]
1111
public async Task<Agent> LoadAgent(string id)
@@ -106,14 +106,14 @@ private void AddOrUpdateParameters(Agent agent)
106106
{
107107
var agentId = agent.Id ?? agent.Name;
108108
if (AgentParameterTypes.ContainsKey(agentId)) return;
109-
109+
110110
AddOrUpdateRoutesParameters(agentId, agent.RoutingRules);
111111
AddOrUpdateFunctionsParameters(agentId, agent.Functions);
112112
}
113113

114114
private void AddOrUpdateRoutesParameters(string agentId, List<RoutingRule> routingRules)
115115
{
116-
if(!AgentParameterTypes.TryGetValue(agentId, out var parameterTypes))
116+
if (!AgentParameterTypes.TryGetValue(agentId, out var parameterTypes))
117117
{
118118
parameterTypes = new();
119119
}

0 commit comments

Comments
 (0)