This commit is contained in:
2026-04-09 17:02:13 +03:30
parent 843aff3879
commit 523ad16b3c
10 changed files with 706 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using System.Threading.Tasks;
using Microsoft.Extensions.AI;
namespace xAiApi.AI.Interfaces
{
public interface IXAIService
{
IChatClient TextGenreatorClient { get; }
IChatClient ImageGenreatorClient { get; }
//
#region Actions ...
/// <summary>
/// Generated Text ...
/// </summary>
/// <param name="prompt"></param>
/// <returns></returns>
Task<string> GetTextResponseAsync(string prompt);
/// <summary>
/// Generated Response ...
/// </summary>
/// <param name="prompt"></param>
/// <returns></returns>
Task<ChatResponse> GetResponseAsync(string prompt);
#endregion
}
}