mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 01:18:00 +00:00
Add Outlook mail tool
This commit is contained in:
1 parent
c4ba83f0be
commit
ac825a2207
21 files changed
+631
-21
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using AIStudio.Provider;
|
||||
using AIStudio.Settings;
|
||||
using AIStudio.Tools.ToolCallingSystem;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
@@ -84,7 +85,8 @@ public partial class ManagedToolsWarning : MSGComponentBase
|
||||
|
||||
return this.availableTools
|
||||
.Where(x => this.ToolIds.Contains(x.Definition.Id) && x.IsActive)
|
||||
.Where(x => !ToolSelectionRules.IsProviderConfidenceAllowed(providerConfidence, x.MinimumProviderConfidence))
|
||||
.Where(x => !ToolSelectionRules.IsProviderAllowedForTool(x.Definition.Id, providerConfidence, x.MinimumProviderConfidence,
|
||||
this.ProviderSettings.IsTrustedByConfiguration(this.SettingsManager)))
|
||||
.Select(x => x.Implementation.GetDisplayName())
|
||||
.ToList();
|
||||
}
|
||||
@@ -108,4 +110,4 @@ public partial class ManagedToolsWarning : MSGComponentBase
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user