LlamaIndex
Wrap query-engine and retriever tools so a permission check runs before the index is touched, and every retrieval is recorded against the agent that asked.
LlamaIndex
Wrap LlamaIndex tools with permission checks. Drop-in replacement for any BaseTool.
import createVorim from "@vorim/sdk";
import { wrapTool, createVorimAgent } from "@vorim/sdk/integrations/llamaindex";
const vorim = createVorim({ apiKey: "agid_sk_live_..." });
// Wrap a single tool
const guarded = wrapTool(searchTool, {
vorim,
agentId: "agid_acme_a1b2c3d4",
permissionMap: { search: "agent:read" },
});
// Or use the agent factory
const { agentId, tools } = await createVorimAgent({
vorim,
name: "research-agent",
capabilities: ["search", "write"],
scopes: ["agent:read", "agent:write", "agent:execute"],
tools: [searchTool, writeTool],
permissionMap: { search: "agent:read", write: "agent:write" },
});
// const agent = new OpenAIAgent({ tools });typescriptNeed Help?
Book a demo for a walkthrough, or contact us for support. For enterprise needs, reach out at sales@vorim.ai.