This commit is contained in:
2026-08-15 10:49:08 +03:30
parent 561542ea0a
commit a4bcde5994
14 changed files with 285 additions and 11 deletions
@@ -10,7 +10,7 @@ namespace xAiApi.Interfaces
/// <summary>
/// Describe a Base Service Actions of any Ai Based Services ...
/// </summary>
public interface IXAIServiceBase : IDisposable
public interface IXAiServiceBase : IDisposable
{
/// <summary>
/// Base Method for Communicate with LLM ...
+21
View File
@@ -0,0 +1,21 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace xAiApi.Interfaces
{
public interface IXAiServiceControllerBase
{
/// <summary>
/// Ask Question and Get Response ...
/// </summary>
/// <param name="question"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
[HttpGet("Ask")]
Task<ActionResult<string>> Ask(
[FromQuery] string question,
CancellationToken cancellationToken = default
);
}
}
+5
View File
@@ -0,0 +1,5 @@
namespace xAiApi.Interfaces
{
public interface IXDefaultAiService : IXAiServiceBase
{ }
}