using AIStudio.Chat;
using AIStudio.Provider;
namespace AIStudio.Tools.ToolCallingSystem;
///
/// The request a tool is being prepared for.
///
///
/// What a tool may look at when it tailors its function to a request, see
/// IToolImplementation.ResolveFunctionAsync. Semantic Search, for instance, reads the data sources
/// of the chat and describes exactly those which this provider may search.
///
public sealed class ToolResolutionContext
{
///
/// The provider the request goes to, with the expert settings of the user.
///
public required AIStudio.Settings.Provider Provider { get; init; }
///
/// The part of the app the request comes from.
///
public required Components Component { get; init; }
///
/// How much the provider is trusted.
///
public required ConfidenceLevel ProviderConfidence { get; init; }
///
/// The chat the request continues.
///
public required ChatThread ChatThread { get; init; }
}