VORIM
We use cookies

We use cookies to analyze site traffic and improve your experience. You can choose to accept all cookies or only essential ones. See our Privacy Policy.

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 });
typescript
Need Help?

Book a demo for a walkthrough, or contact us for support. For enterprise needs, reach out at sales@vorim.ai.