Add MCP Handler Integration
- افزودن XAiMcpControllerBase. - افزودن IXAiMcpHandler و پیادهسازی XAiMcpHandler. - افزودن DI extensionهای لازم برای ثبت handler و تغییر فایل پروژهٔ سرویس.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Threading;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace xAiService.Interfaces
|
||||
{
|
||||
public interface IXAiMcpHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Process Specified JSON-RPC Request ...
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<JObject> ProcessAsync(
|
||||
JObject request,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user