diff --git a/src/Infrastructure/BotSharp.Abstraction/ApiAdapters/IApiAdapter.cs b/src/Infrastructure/BotSharp.Abstraction/ApiAdapters/IApiAdapter.cs deleted file mode 100644 index 1087312b..00000000 --- a/src/Infrastructure/BotSharp.Abstraction/ApiAdapters/IApiAdapter.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace BotSharp.Abstraction.ApiAdapters; - -public interface IApiAdapter -{ -} diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/AgentController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/AgentController.cs index 208c28b7..465cb977 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/AgentController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/AgentController.cs @@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class AgentController : ControllerBase, IApiAdapter +public class AgentController : ControllerBase { private readonly IAgentService _agentService; private readonly IServiceProvider _services; diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs index 6cb41643..e29298b2 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/ConversationController.cs @@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class ConversationController : ControllerBase, IApiAdapter +public class ConversationController : ControllerBase { private readonly IServiceProvider _services; private readonly IUserIdentity _user; diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/EvaluationController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/EvaluationController.cs index 1bba62a3..d2ea3f0e 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/EvaluationController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/EvaluationController.cs @@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class EvaluationController : ControllerBase, IApiAdapter +public class EvaluationController : ControllerBase { private readonly IServiceProvider _services; public EvaluationController(IServiceProvider services) diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs index 31c1ecb8..750719b8 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs @@ -8,7 +8,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class InstructModeController : ControllerBase, IApiAdapter +public class InstructModeController : ControllerBase { private readonly IServiceProvider _services; diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeController.cs index 31b78e09..0801fcf2 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/KnowledgeController.cs @@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class KnowledgeController : ControllerBase, IApiAdapter +public class KnowledgeController : ControllerBase { private readonly IKnowledgeService _knowledgeService; private readonly IServiceProvider _services; diff --git a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs index 28ad91a6..197c0e99 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs @@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers; [Authorize] [ApiController] -public class UserController : ControllerBase, IApiAdapter +public class UserController : ControllerBase { private readonly IUserService _userService; public UserController(IUserService userService) diff --git a/src/Infrastructure/BotSharp.OpenAPI/Using.cs b/src/Infrastructure/BotSharp.OpenAPI/Using.cs index 7a7936a8..201bf7b1 100644 --- a/src/Infrastructure/BotSharp.OpenAPI/Using.cs +++ b/src/Infrastructure/BotSharp.OpenAPI/Using.cs @@ -20,7 +20,6 @@ global using BotSharp.Abstraction.Utilities; global using BotSharp.Abstraction.Agents.Settings; global using BotSharp.Abstraction.Conversations.Settings; global using BotSharp.Abstraction.Agents.Enums; -global using BotSharp.Abstraction.ApiAdapters; global using BotSharp.Abstraction.Conversations.Enums; global using BotSharp.Abstraction.Conversations.Models; global using BotSharp.Abstraction.Models; diff --git a/src/Plugins/BotSharp.Plugin.ChatHub/Controllers/ChatHubController.cs b/src/Plugins/BotSharp.Plugin.ChatHub/Controllers/ChatHubController.cs index abd18425..d12d92e1 100644 --- a/src/Plugins/BotSharp.Plugin.ChatHub/Controllers/ChatHubController.cs +++ b/src/Plugins/BotSharp.Plugin.ChatHub/Controllers/ChatHubController.cs @@ -1,11 +1,10 @@ -using BotSharp.Abstraction.ApiAdapters; using Microsoft.AspNetCore.SignalR; namespace BotSharp.Plugin.ChatHub.Controllers; [Authorize] [ApiController] -public class ChatHubController : ControllerBase, IApiAdapter +public class ChatHubController : ControllerBase { private readonly IServiceProvider _services; private readonly ILogger _logger; diff --git a/src/Plugins/BotSharp.Plugin.ChatbotUI/ChatbotUiController.cs b/src/Plugins/BotSharp.Plugin.ChatbotUI/ChatbotUiController.cs index 5dd17606..9c422a7a 100644 --- a/src/Plugins/BotSharp.Plugin.ChatbotUI/ChatbotUiController.cs +++ b/src/Plugins/BotSharp.Plugin.ChatbotUI/ChatbotUiController.cs @@ -10,7 +10,6 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System; -using BotSharp.Abstraction.ApiAdapters; using BotSharp.Plugin.ChatbotUI.ViewModels; using Microsoft.Extensions.DependencyInjection; using BotSharp.Abstraction.Conversations; @@ -22,7 +21,7 @@ namespace BotSharp.Plugin.ChatbotUI.Controllers; [Authorize] [ApiController] -public class ChatbotUiController : ControllerBase, IApiAdapter +public class ChatbotUiController : ControllerBase { private readonly IServiceProvider _services; private readonly ILogger _logger; diff --git a/src/Plugins/BotSharp.Plugin.HuggingFace/HuggingChat/HuggingChatController.cs b/src/Plugins/BotSharp.Plugin.HuggingFace/HuggingChat/HuggingChatController.cs index 46acb00d..3063b971 100644 --- a/src/Plugins/BotSharp.Plugin.HuggingFace/HuggingChat/HuggingChatController.cs +++ b/src/Plugins/BotSharp.Plugin.HuggingFace/HuggingChat/HuggingChatController.cs @@ -1,4 +1,3 @@ -using BotSharp.Abstraction.ApiAdapters; using Microsoft.AspNetCore.Mvc; using Microsoft.Net.Http.Headers; using Newtonsoft.Json.Serialization; @@ -8,7 +7,7 @@ using BotSharp.Abstraction.TextGeneratives; namespace BotSharp.Plugin.HuggingFace.HuggingChat; -public class HuggingChatController : ControllerBase, IApiAdapter +public class HuggingChatController : ControllerBase { public HuggingChatController() {