Skip to main content

llama-index-callbacks-vaultak

PyPI version License: MIT

Runtime security for LlamaIndex agents, powered by Vaultak.

Intercept every agent action, tool call, and LLM query in real time — score risk, enforce policies, mask PII, and automatically block dangerous behavior before it reaches your production systems.


Install

pip install llama-index-callbacks-vaultak

Quick Start

from llama_index.core.callbacks import CallbackManager
from llama_index.callbacks.vaultak import VaultakCallbackHandler

# Initialize the handler
handler = VaultakCallbackHandler(api_key="vtk_...")
callback_manager = CallbackManager([handler])

# Use with a query engine
query_engine = index.as_query_engine(
    callback_manager=callback_manager
)

# Query — every action is now monitored and secured
response = query_engine.query("Summarize our Q3 revenue data")

Set Globally

from llama_index.core import Settings
from llama_index.core.callbacks import CallbackManager
from llama_index.callbacks.vaultak import VaultakCallbackHandler

Settings.callback_manager = CallbackManager([
    VaultakCallbackHandler(api_key="vtk_...")
])

Use with Agents

from llama_index.core.agent import ReActAgent
from llama_index.core.callbacks import CallbackManager
from llama_index.callbacks.vaultak import VaultakCallbackHandler

handler = VaultakCallbackHandler(
    api_key="vtk_...",
    agent_name="my-production-agent",
    risk_threshold=6.0,
)

agent = ReActAgent.from_tools(
    tools,
    callback_manager=CallbackManager([handler]),
)

What Gets Monitored

LlamaIndex Event Vaultak Action
FUNCTION_CALL start Risk-scores the action, blocks if above threshold
FUNCTION_CALL start Checks tool call against policy rules
FUNCTION_CALL end Scans output for PII and masks it
LLM start Checks LLM inputs against policy
EXCEPTION Sends alert + triggers rollback
QUERY end Scans response for PII

Configuration

handler = VaultakCallbackHandler(
    api_key="vtk_...",           # Required
    agent_name="my-agent",       # Label in the Vaultak dashboard
    block_on_high_risk=True,     # Block actions above threshold
    risk_threshold=7.0,          # 0-10 scale
    verbose=True,                # Log all scored actions
)

Links

Metadata

Release files for llama-index-callbacks-vaultak 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-callbacks-vaultak 0.1.0
File Size Uploaded Provenance
llama_index_callbacks_vaultak-0.1.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-callbacks-vaultak 0.1.0
File Interpreter ABI Platform
llama_index_callbacks_vaultak-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / llama_index_callbacks_vaultak-0.1.0.tar.gz

Download URL llama_index_callbacks_vaultak-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e3e996e3e1e4683445f3cfc109b6215e43a1aacc7cf7bbbf320da1c1a8b13157
BLAKE2b-256 checksum
How to use checksums
4249c3b5aaadcb79eb02d8be0b67d289c47b8108f4e1dd333287ebc21ab9c0c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / llama_index_callbacks_vaultak-0.1.0-py3-none-any.whl

Download URL llama_index_callbacks_vaultak-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4484e3c1f05799de594761bbcc9569b555dee720fe140c30d5133203adf9423
BLAKE2b-256 checksum
How to use checksums
0ffcccddcbb467260d10de11106db40391b8a763960ca75c4d9b5b41f7bddd1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for llama-index-callbacks-vaultak 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page