This commit is contained in:
2026-09-26 16:46:30 +03:30
parent 3fbdebbdd3
commit b596afbe57
10 changed files with 126 additions and 37 deletions
+13 -3
View File
@@ -1,9 +1,10 @@
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
using xAiModels.Models;
using System.Threading.Tasks;
using Microsoft.Extensions.AI;
using System.Collections.Generic;
namespace xAiApi.Interfaces
{
@@ -12,6 +13,16 @@ namespace xAiApi.Interfaces
/// </summary>
public interface IXAiServiceBase : IDisposable
{
/// <summary>
/// Chat Options ...
/// </summary>
ChatOptions Options { get; }
/// <summary>
/// Descriptor of Models which used in Service ...
/// </summary>
XAiModelDescriptor Descriptor { get; }
/// <summary>
/// Base Method for Communicate with LLM ...
/// </summary>
@@ -37,9 +48,8 @@ namespace xAiApi.Interfaces
/// <summary>
/// Get LLM Client instance for Communicating with LLM ...
/// </summary>
/// <param name="llm"></param>
/// <returns></returns>
IChatClient GetClient(string llm = null);
IChatClient GetClient();
/// <summary>
/// Create Custom HttpClient for Communicating with LLM API ...
+5
View File
@@ -0,0 +1,5 @@
namespace xAiApi.Interfaces
{
public interface IXDefaultThinkingAiService: IXAiServiceBase
{ }
}