Class KnowledgeSearchTool

Assembly: redb.Route.Llm.dll

Self-contained RouteBuilder that mounts knowledge_search as an
LLM tool. Prefer the DSL .KnowledgeSearch(opts) on an existing route;
this shim is for handing a ready route to context.AddRoutes(...).

context.AddRoutes(new KnowledgeSearchTool(new KnowledgeSearchOptions
{
Collection = "rules", // pin the agent to one collection
}));
// ...then expose it: Llm.Factory("claude").Tools("knowledge_search")

public sealed class KnowledgeSearchTool : RouteBuilder, IRouteBuilder

Inheritance

Object→RouteBuilder→KnowledgeSearchTool

Implements

Inherited Members

Methods

Configure()

Override this method to define routes using .

protected override void Configure()

Constructors

KnowledgeSearchTool(KnowledgeSearchOptions)

Creates the tool with the given options.