- افزودن قابلیت دریافت و استخراج متن قابلخواندن از محتوای صفحات وب. - افزودن تنظیمات XAiMcpLinkExtractionToolConfiguration برای MaxLinks و MaxChars. - افزودن مدلهای XExtractedLink، XLinkBundle و XLinkContentResult. - ثبت ابزار و تنظیمات جدید در DI و ConfigurationNodeNames.
25 lines
738 B
C#
25 lines
738 B
C#
using System.Threading;
|
|
using xAiMcpServer.Models;
|
|
using System.Threading.Tasks;
|
|
using System.Collections.Generic;
|
|
|
|
namespace xAiMcpServer.Interfaces
|
|
{
|
|
public interface IXAiMcpWebSearchService
|
|
{
|
|
/// <summary>
|
|
/// Search Web and Retrieve Response ...
|
|
/// </summary>
|
|
/// <param name="query"></param>
|
|
/// <param name="maxResults"></param>
|
|
/// <param name="region"></param>
|
|
/// <param name="cancellationToken"></param>
|
|
/// <returns></returns>
|
|
Task<IReadOnlyList<XWebSearchToolResult>> SearchAsync(
|
|
string query,
|
|
int maxResults,
|
|
string region = null,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|
|
} |