AI-Studio/app/MindWork AI Studio/Tools/ToolCallingSystem/EffectiveRetrievalMode.cs

11 lines
642 B
C#
Raw Normal View History

2026-09-27 14:26:52 +00:00
using AIStudio.Settings.DataModel;
namespace AIStudio.Tools.ToolCallingSystem;
/// <summary>
/// How the data sources of a chat are actually searched, and whether Semantic Search could be used
/// there at all.
/// </summary>
/// <param name="Mode">How the data sources are searched.</param>
/// <param name="SemanticSearchBlockReason">Why Semantic Search cannot be offered in this chat, whatever the user prefers. ToolOfferBlockReason.NONE when it can; the chat then searches the way the user wants.</param>
public readonly record struct EffectiveRetrievalMode(DataSourceRetrievalMode Mode, ToolOfferBlockReason SemanticSearchBlockReason);