Skip to main content
ExuluDefaultTools is an object that groups the tool factories bundled with IMP. Each factory returns an ExuluTool instance (or undefined when the required license entitlement is absent), ready to pass to ExuluApp.create() or an agent’s tool list. The namespace is intentionally structured so new built-in tools can be added without breaking existing imports.
ExuluDefaultTools.agentic.retrieval.create.pipeline requires the agentic-retrieval EE entitlement. When the entitlement is absent the factory returns undefined and logs a warning — filter undefined before passing to the tool list.

API surface

ExuluDefaultTools.agentic.retrieval.create.pipeline

Creates the agentic knowledge-search tool (agentic_context_search). The tool routes a user question across the supplied contexts, expands it into sub-queries, searches and reranks, and returns deduplicated passages. It integrates with memory and project-scoped items when those options are provided.
contexts
ExuluContext[]
required
The knowledge contexts the tool may search. Their names appear in the tool description shown to the model.
memoryContext
ExuluContext
Optional context used for memory retrieval (prior conversation summaries or user facts).
user
User
Authenticated user record. Forwarded to access-control and budget attribution.
role
string
Role ID for RBAC filtering within searched contexts.
model
LanguageModel
AI SDK LanguageModel used by the routing and query-expansion phases.
instructions
string
Additional instructions prepended to the tool description (admin-supplied guidance on when to use the tool).
preselected
string[]
Global item IDs that are pinned into the result set regardless of semantic relevance.
memoryItems
VectorSearchChunkResult[]
Pre-fetched memory chunks to include in the initial result set.
projectScope
ProjectScope
When set, the tool also searches knowledge items attached to the named project.
return
ExuluTool | undefined
An ExuluTool ready for registration, or undefined when agentic-retrieval is not licensed.

Example