Table of Contents

Constructor WebSearchTool

Namespace
LMKit.Agents.Tools.BuiltIn.Net
Assembly
LM-Kit.NET.dll

WebSearchTool()

Initializes a new instance with default settings (DuckDuckGo provider, no API key required).

public WebSearchTool()

WebSearchTool(Provider, string)

Initializes a new instance with the specified provider and API key.

public WebSearchTool(WebSearchTool.Provider provider, string apiKey = null)

Parameters

provider WebSearchTool.Provider

The search provider to use.

apiKey string

The API key for providers that require authentication.

WebSearchTool(Options)

Initializes a new instance with custom options.

public WebSearchTool(WebSearchTool.Options options)

Parameters

options WebSearchTool.Options

Configuration options.

WebSearchTool(HttpClient, Options)

Initializes a new instance with an existing HttpClient.

public WebSearchTool(HttpClient client, WebSearchTool.Options options = null)

Parameters

client HttpClient

The HttpClient to use.

options WebSearchTool.Options

Configuration options.