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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dmon.Tools.WebSearch" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dmon.Tools.WebSearch" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Dmon.Tools.WebSearch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dmon.Tools.WebSearch --version 0.2.0
                    
#r "nuget: Dmon.Tools.WebSearch, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dmon.Tools.WebSearch@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dmon.Tools.WebSearch&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Dmon.Tools.WebSearch&version=0.2.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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