- افزودن XLinkExtractionTool برای استخراج لینک‌های HTTP/HTTPS از متن و HTML.

- افزودن قابلیت دریافت و استخراج متن قابل‌خواندن از محتوای صفحات وب.
- افزودن تنظیمات XAiMcpLinkExtractionToolConfiguration برای MaxLinks و MaxChars.
- افزودن مدل‌های XExtractedLink، XLinkBundle و XLinkContentResult.
- ثبت ابزار و تنظیمات جدید در DI و ConfigurationNodeNames.
This commit is contained in:
2026-11-07 22:50:17 +03:30
parent 6e4ce28832
commit 1b09b4f6a0
11 changed files with 412 additions and 12 deletions
+9
View File
@@ -0,0 +1,9 @@
namespace xAiMcpServer.Models
{
public class XExtractedLink
{
public string Url { get; set; }
public string Text { get; set; }
public bool IsRelative { get; set; }
}
}
+10
View File
@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace xAiMcpServer.Models
{
public class XLinkBundle
{
public IReadOnlyList<XExtractedLink> Linkes { get; set; } = [];
public IReadOnlyList<XLinkContentResult> Contents { get; set; } = [];
}
}
+13
View File
@@ -0,0 +1,13 @@
namespace xAiMcpServer.Models
{
public class XLinkContentResult
{
public int Length { get; set; } = 0;
public bool Truncated { get; set; } = false;
public string Url { get; set; } = string.Empty;
public string Text { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Error { get; set; } = string.Empty;
public string ContentType { get; set; } = string.Empty;
}
}
@@ -1,6 +1,6 @@
namespace xAiMcpServer.Models
{
public class XAiMcpWebSearchToolResult
public class XWebSearchToolResult
{
public int Rank { get; set; }
public string Url { get; set; }