mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:57:59 +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
@@ -66,7 +66,9 @@ public partial class SettingsPanelTools : SettingsPanelBase
|
||||
private IEnumerable<ConfidenceLevel> GetSelectableConfidenceLevels() =>
|
||||
Enum.GetValues<ConfidenceLevel>().OrderBy(x => x).Where(x => x is not ConfidenceLevel.UNKNOWN);
|
||||
|
||||
private string GetCurrentConfidenceLevelName(ToolCatalogItem item) => this.GetConfidenceLevelName(GetMinimumProviderConfidence(item));
|
||||
private string GetCurrentConfidenceLevelName(ToolCatalogItem item) => item.Definition.Id == ToolSelectionRules.OUTLOOK_MAIL_TOOL_ID
|
||||
? this.T("High or organization-trusted")
|
||||
: this.GetConfidenceLevelName(GetMinimumProviderConfidence(item));
|
||||
|
||||
private string GetConfidenceLevelName(ConfidenceLevel confidenceLevel) => confidenceLevel is ConfidenceLevel.NONE
|
||||
? this.T("No minimum confidence level chosen")
|
||||
@@ -75,7 +77,8 @@ public partial class SettingsPanelTools : SettingsPanelBase
|
||||
private string SetCurrentConfidenceLevelColorStyle(ToolCatalogItem item) =>
|
||||
$"background-color: {GetMinimumProviderConfidence(item).GetColor(this.SettingsManager)};";
|
||||
|
||||
private bool IsToolConfidenceManaged() =>
|
||||
private bool IsToolConfidenceManaged(ToolCatalogItem item) =>
|
||||
item.Definition.Id == ToolSelectionRules.OUTLOOK_MAIL_TOOL_ID ||
|
||||
ManagedConfiguration.TryGet(x => x.Tools, x => x.MinimumProviderConfidenceByToolId, out var meta) && meta.IsLocked;
|
||||
|
||||
// The catalog already carries the resolved level, so there is nothing to look up again:
|
||||
|
||||
Reference in new issue
Block a user