Class KnowledgeSearchOptions

Assembly: redb.Route.Llm.dll

Options for the knowledge_search LLM tool / step.

public sealed class KnowledgeSearchOptions

Inheritance

Object→KnowledgeSearchOptions

Properties

Collection

Pin the tool to one collection. When set, the model's collection

public string? Collection { get; set; }

DefaultTopK

Top-K when the model does not specify top_k.

public int DefaultTopK { get; set; }

EmbeddingProvider

When set, the tool runs a semantic search: it embeds the query with

public IEmbeddingProvider? EmbeddingProvider { get; set; }

EndpointUri

From(...) URI the tool route binds to.

public string EndpointUri { get; set; }

MaxTextChars

Max chars of chunk text returned per hit (0 = full text).

public int MaxTextChars { get; set; }

Store

Explicit store. When null, resolved from exchange.ServiceProvider

public IKnowledgeStore? Store { get; set; }

ToolName

Model-facing tool name.

public string ToolName { get; set; }