28 lines
722 B
C#
28 lines
722 B
C#
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
|
|
}
|
|
} |