Class KnowledgeSearchTool
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
Implements
Inherited Members
RouteBuilder.Body(),RouteBuilder.Configure(),RouteBuilder.Constant(object),RouteBuilder.Context,RouteBuilder.Definitions,RouteBuilder.ExceptionDefinitions,RouteBuilder.Exchange(Func<IExchange, object?>),RouteBuilder.Expr(string),RouteBuilder.From(string),RouteBuilder.Header(string),RouteBuilder.Intercept(),RouteBuilder.InterceptFrom(string?),RouteBuilder.Intercepts,RouteBuilder.InterceptSendToEndpoint(string),RouteBuilder.jpath(string),RouteBuilder.JPath(string),RouteBuilder.jpath<T>(string),RouteBuilder.JPath<T>(string),RouteBuilder.Method(string, string),RouteBuilder.OnCompletion(),RouteBuilder.OnCompletions,RouteBuilder.OnException(params Type[]),RouteBuilder.OnException<TException>(),RouteBuilder.Placeholder(string),RouteBuilder.Property(string),RouteBuilder.RouteConfigurations,RouteBuilder.RouteConfiguration(string?),RouteBuilder.SplitJsonArray(),RouteBuilder.SplitLines(string, bool),RouteBuilder.SplitXml(string, string?),RouteBuilder.xpath(string),RouteBuilder.XPath(string),RouteBuilder.xpath(string, XPathResult),RouteBuilder.XPath(string, XPathResult),RouteBuilder.xpath<T>(string),RouteBuilder.XPath<T>(string)
Methods
Constructors
KnowledgeSearchTool(KnowledgeSearchOptions)
Creates the tool with the given options.