25 lines
743 B
C#
25 lines
743 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<XAiMcpWebSearchToolResult>> SearchAsync(
|
|
string query,
|
|
int maxResults,
|
|
string region = null,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|
|
} |