Skip to content
Merged
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
5 changes: 3 additions & 2 deletions src/Cellm/Models/Behaviors/ToolBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Runtime.CompilerServices;
using System.Collections.Concurrent;
using System.Runtime.CompilerServices;
using Cellm.Models.Prompts;
using Cellm.Models.Providers;
using Cellm.Tools.ModelContextProtocol;
Expand All @@ -22,7 +23,7 @@ internal class ToolBehavior<TRequest, TResponse>(
where TRequest : IPrompt
{
// TODO: Use HybridCache
private Dictionary<string, IList<McpClientTool>> _poorMansCache = [];
private ConcurrentDictionary<string, IList<McpClientTool>> _poorMansCache = [];

public async Task<TResponse> Handle(TRequest request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
{
Expand Down