Class TavilyWebSearchDsl

Assembly: redb.Route.Llm.Tools.dll

DSL extension that wires a Tavily (https://tavily.com/) web-search call
into a route step. Reads {"query":"...","max_results":int?} from
exchange.In.Body, calls the Tavily Search API with the API key
configured in and writes the shaped
response — {"answer":"...?", "results":[{"title","url","content"}]}
— to exchange.Out.Body as a JSON string.

From("direct:llm.web_search")
.AsLlmTool("web_search").Description("Search the web via Tavily.").Then()
.TavilyWebSearch(new TavilyWebSearchOptions { ApiKey = apiKey });

public static class TavilyWebSearchDsl

Inheritance

Object→TavilyWebSearchDsl

Methods

TavilyWebSearch(IRouteDefinition, TavilyWebSearchOptions)

Adds a Tavily web-search step. is required.

public static IRouteDefinition TavilyWebSearch(this IRouteDefinition self, TavilyWebSearchOptions options)