last ...
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.AI;
|
||||
using xAiService.Base;
|
||||
using xAiService.Configurations;
|
||||
|
||||
namespace xAiService.Interfaces
|
||||
{
|
||||
public interface IXAiService : IXBaseIdentityHttpProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// XAiService Configurations ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
XAIServiceConfiguration Configuration { get; }
|
||||
|
||||
//
|
||||
#region Text Actions ...
|
||||
/// <summary>
|
||||
/// Generated Response ...
|
||||
/// </summary>
|
||||
/// <param name="prompt"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public Task<ChatResponse> GetResponseAsync(
|
||||
string prompt,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Generated Response ...
|
||||
/// </summary>
|
||||
/// <param name="prompt"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public Task<string> GetTextResponseAsync(
|
||||
string prompt,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user