Added a way to switch off tools you never need (#1115)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-27 08:48:52 +01:00
1 parent dcba62b45c
commit 04546c25ac
31 files changed
+638 -37

No files matched your search

@@ -38,7 +38,20 @@ public sealed class ToolCatalogItem
/// </summary>
public required ToolConfigurationState ConfigurationState { get; init; }
public bool IsActive { get; init; }
/// <summary>
/// Who switched the collection off: tools altogether, the organization, or the user; NONE while it may be used.
/// </summary>
/// <remarks>
/// A reason rather than a yes or no, because the settings have to tell the user apart from the
/// organization: the user can switch on again what they switched off themselves, but nothing
/// their organization switched off.
/// </remarks>
public ToolOfferBlockReason SwitchOffReason { get; init; } = ToolOfferBlockReason.NONE;
/// <summary>
/// Whether the collection may be used at all, see ToolRegistry.IsToolActive.
/// </summary>
public bool IsActive => this.SwitchOffReason is ToolOfferBlockReason.NONE;
public ConfidenceLevel MinimumProviderConfidence { get; init; } = ConfidenceLevel.NONE;
}