Dmon.Tools.WebSearch
0.2.0
dotnet add package Dmon.Tools.WebSearch --version 0.2.0
NuGet\Install-Package Dmon.Tools.WebSearch -Version 0.2.0
<PackageReference Include="Dmon.Tools.WebSearch" Version="0.2.0" />
<PackageVersion Include="Dmon.Tools.WebSearch" Version="0.2.0" />
<PackageReference Include="Dmon.Tools.WebSearch" />
paket add Dmon.Tools.WebSearch --version 0.2.0
#r "nuget: Dmon.Tools.WebSearch, 0.2.0"
#:package Dmon.Tools.WebSearch@0.2.0
#addin nuget:?package=Dmon.Tools.WebSearch&version=0.2.0
#tool nuget:?package=Dmon.Tools.WebSearch&version=0.2.0
Dmon.Tools.WebSearch
A web_search tool for the dmon coding agent.
What it does
Exposes a single web_search agent tool that accepts a natural-language query and returns a structured result containing a synthesised answer and a list of sources (each with a URI and title). The tool makes no direct HTTP request itself — it delegates the search and synthesis to a hosted, search-capable model (e.g. Gemini with grounding enabled) via the IChatClientFactory seam defined in Dmon.Abstractions.
Result shape
{
"answer": "...",
"sources": [
{ "uri": "https://...", "title": "..." }
]
}
When no sources are returned by the hosted model the sources array is empty.
Wiring
Register the tool in your composition root (Dmon.cs) by calling AddAgentWebSearch from the Dmon.Hosting namespace and providing a provider configuration for the search-capable model:
builder.AddAgentWebSearch(p => p.UseGemini("gemini-2.5-flash"));
The provider configuration is independent of the primary agent provider — the search brain is resolved lazily and does not affect startup if its API key is absent.
Permissions
On first use the tool prompts the user for network-egress permission because the query is sent to a third-party hosted provider. The prompt is displayed once per session unless permission is revoked.
Package dependencies
Dmon.Tools.WebSearch references only Dmon.Abstractions and Microsoft.Extensions.AI. It carries no provider SDK. The provider implementation (e.g. Dmon.Providers.Gemini) is supplied at the composition root.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Dmon.Abstractions (>= 0.2.0)
- Microsoft.Extensions.AI (>= 10.5.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0 | 112 | 7/13/2026 |