- افزودن XLinkExtractionTool برای استخراج لینکهای HTTP/HTTPS از متن و HTML.
- افزودن قابلیت دریافت و استخراج متن قابلخواندن از محتوای صفحات وب. - افزودن تنظیمات XAiMcpLinkExtractionToolConfiguration برای MaxLinks و MaxChars. - افزودن مدلهای XExtractedLink، XLinkBundle و XLinkContentResult. - ثبت ابزار و تنظیمات جدید در DI و ConfigurationNodeNames.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
Reference in New Issue
Block a user