Skip to main content

knowledge_tools

Function knowledge_tools 

Source
pub fn knowledge_tools(
    kb: Arc<dyn KnowledgeBase>,
    scope: TenantScope,
) -> Vec<Arc<dyn Tool>>
Expand description

Create knowledge tools for agent access to the knowledge base.

Returns 1 tool:

  • knowledge_search — search the knowledge base for relevant documentation

SECURITY (F-KB-1): the scope is baked into the tool so every search is filtered by tenant. A shared Arc<dyn KnowledgeBase> across tenants would otherwise leak documents cross-tenant via knowledge_search.