Path: redb-route/redb.Route.Llm.Tools/TavilyWebSearchOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm.Tools/TavilyWebSearchOptions.cs
----
namespace redb.Route.Llm.Tools;
///
/// Configuration for .
///
public sealed class TavilyWebSearchOptions
{
/// Endpoint URI the tool is mounted on. Default "direct:llm.web_search".
public string EndpointUri { get; init; } = "direct:llm.web_search";
/// Tool name exposed to the model. Default "web_search".
public string ToolName { get; init; } = "web_search";
///
/// Tavily API key. Required. Get one at https://tavily.com/.
///
public string ApiKey { get; init; } = string.Empty;
///
/// Tavily search endpoint. Override only for testing/proxying.
/// Default https://api.tavily.com/search.
///
public string Endpoint { get; init; } = "https://api.tavily.com/search";
///
/// Maximum results to request from Tavily. Default 5. Tavily caps at 20.
///
public int MaxResults { get; init; } = 5;
///
/// "basic" (faster, cheaper) or "advanced" (deeper crawl).
/// Default "basic".
///
public string SearchDepth { get; init; } = "basic";
///
/// When true, ask Tavily to include a short answer summary in the response.
/// Default true.
///
public bool IncludeAnswer { get; init; } = true;
///
/// HTTP request timeout. Default 20 seconds.
///
public TimeSpan Timeout { get; init; } = TimeSpan.FromSeconds(20);
}