AI-Studio/app/MindWork AI Studio/Tools/ToolCallingSystem/ToolOfferBlockReason.cs
Thorsten Sommer 1eaca9b12f
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Sync Flatpak repo (push) Blocked by required conditions
Build and Release / Collect Flatpak artifacts (push) Blocked by required conditions
Build and Release / Verify (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
Added a semantic search tool (#1005)
2026-09-27 16:26:52 +02:00

48 lines
1.4 KiB
C#

namespace AIStudio.Tools.ToolCallingSystem;
/// <summary>
/// What keeps a tool from being offered to a model, if anything.
/// </summary>
/// <remarks>
/// A reason rather than a yes or no, because whoever asks has to say something different for each
/// of them: a model which cannot use tools is a matter of the provider settings, a tool switched off
/// by the organization is nothing the user can change, and missing settings are something they can
/// fill in themselves.
/// </remarks>
public enum ToolOfferBlockReason
{
/// <summary>
/// Nothing is in the way, the tool can be offered.
/// </summary>
NONE,
/// <summary>
/// The organization switched tools off altogether.
/// </summary>
TOOLS_SWITCHED_OFF,
/// <summary>
/// The selected model or its provider cannot use tools, or no provider is selected at all.
/// </summary>
MODEL_CANNOT_USE_TOOLS,
/// <summary>
/// This installation does not know the tool, or the tool is not meant for this part of the app.
/// </summary>
NOT_AVAILABLE_HERE,
/// <summary>
/// The organization switched this tool off.
/// </summary>
TOOL_SWITCHED_OFF,
/// <summary>
/// A setting the tool cannot work without is missing or invalid.
/// </summary>
NOT_CONFIGURED,
/// <summary>
/// The provider is not trusted enough for this tool.
/// </summary>
PROVIDER_CONFIDENCE_TOO_LOW,
}