Skip to content

Semantic Kernel

Add a function-invocation filter so Kaizen inspects every function the kernel calls.

from kaizen_security import Kaizen
from kaizen_security.integrations.semantic_kernel import kaizen_filter

kz = Kaizen(api_key="kz_live_...", agent="sk-agent")
kernel.add_filter("function_invocation", kaizen_filter(kz))

Every function invocation is inspected. When Kaizen blocks, the function is not invoked and the result is a refusal.

Install:

pip install kaizen-security semantic-kernel