adding Simple Web Search Tool, Untested ...
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user