Integration · Adapter
Kyvvu for your own framework
Map your framework's events to Kyvvu steps in a YAML template, and capture them with a small adapter class.
Set up
A few lines, then every step is checked.
- Templates
- Each rule maps an event to a kind, verb, step name and properties. The first match wins.
- Start from ours
- kyvvu template show prints the built-in templates for the decorator, LangChain, LangGraph and CrewAI.
- Adapters
- Subclass FrameworkAdapter to capture your framework's events and pass them through the template.
from kyvvu import BehaviorTemplatetemplate = BehaviorTemplate.from_path("my_framework.template.yaml")# Test matchingresult = template.match({ "event": "llm_invoke", "name": "chat", "provider": "openai", "model_name": "gpt-4o",})assert result["kind"] == "step.model"assert result["properties"] == {"provider": "openai", "model": "gpt-4o"}Good to know
- A template you supply replaces the built-in one rather than extending it.
- Include a rule for every task boundary your adapter opens.
Next
Try it before you install it.
In your browser
The playground
Build an agent's path, pick a policy and watch the engine decide.
On your machine
Five minutes, no account
kyvvu try runs a demo agent against the bundled baseline.