File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Infrastructure/BotSharp.Core/Agents/Services Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ namespace BotSharp.Core.Agents.Services;
5
5
6
6
public partial class AgentService
7
7
{
8
- public static ConcurrentDictionary < string , Dictionary < string , string > > AgentParameterTypes = new ( ) ;
8
+ public static ConcurrentDictionary < string , Dictionary < string , string > > AgentParameterTypes = new ( ) ;
9
9
10
10
[ MemoryCache ( 10 * 60 , perInstanceCache : true ) ]
11
11
public async Task < Agent > LoadAgent ( string id )
@@ -106,14 +106,14 @@ private void AddOrUpdateParameters(Agent agent)
106
106
{
107
107
var agentId = agent . Id ?? agent . Name ;
108
108
if ( AgentParameterTypes . ContainsKey ( agentId ) ) return ;
109
-
109
+
110
110
AddOrUpdateRoutesParameters ( agentId , agent . RoutingRules ) ;
111
111
AddOrUpdateFunctionsParameters ( agentId , agent . Functions ) ;
112
112
}
113
113
114
114
private void AddOrUpdateRoutesParameters ( string agentId , List < RoutingRule > routingRules )
115
115
{
116
- if ( ! AgentParameterTypes . TryGetValue ( agentId , out var parameterTypes ) )
116
+ if ( ! AgentParameterTypes . TryGetValue ( agentId , out var parameterTypes ) )
117
117
{
118
118
parameterTypes = new ( ) ;
119
119
}
You can’t perform that action at this time.
0 commit comments