using Deal.Contracts.Integrations.Abstractions; using Deal.Contracts.Integrations.Models; namespace Deal.Infrastructure.Integrations.Services; public sealed class LocalAiTools : IAiTools { // Сообщение исключения методов (локальный режим = ai-service не подключён). private const string NotSupportedMessage = "ИИ-инструменты доступны только при подключённом ai-service (Services:Ai:UseLocal=false)."; Task IAiTools.GenerateKeywordsAsync(string description, CancellationToken ct) => throw new NotSupportedException(NotSupportedMessage); Task IAiTools.EvaluateFitAsync( string text, string description, IReadOnlyCollection keywords, CancellationToken ct) => throw new NotSupportedException(NotSupportedMessage); }