Microsoft.Extensions.AI Integration
Cross-SDK comparison
See the centralized MEAI documentation for feature matrices and comparisons across all tryAGI SDKs.
The BraveSearch SDK provides AIFunction tool wrappers compatible with Microsoft.Extensions.AI. These tools can be used with any IChatClient to give AI models web search and news search capabilities via Brave Search.
Available Tools
| Method | Tool Name | Description |
|---|---|---|
AsSearchTool() |
BraveWebSearch |
Searches the web for current information on a query. |
AsNewsTool() |
BraveNewsSearch |
Searches for recent news articles on a query. |
Usage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Tool Details
BraveWebSearch
Searches the web using Brave Search. Returns results with titles, URLs, and text snippets.
Accepts a count parameter to limit results (default: 5).
BraveNewsSearch
Searches Brave Search for recent news articles. Returns results with titles, sources, dates, and snippets.
Accepts a count parameter to limit results (default: 5).
1 | |