Skip to content

LlamaIndex

Guard a LlamaIndex tool so Kaizen inspects every call. When Kaizen blocks, the tool does not run and returns a refusal.

from kaizen_security import Kaizen
from kaizen_security.integrations.llamaindex import guard_tool

kz = Kaizen(api_key="kz_live_...", agent="llama-agent")

safe = guard_tool(kz, my_tool)
# pass safe to your agent in place of my_tool

guard_tool wraps the tool's call. A blocked call returns Blocked by Kaizen: <reason>.

Install:

pip install kaizen-security llama-index-core