Wrap Your Agent¶
The simplest way to integrate Zubbl — wrap any callable agent.
Basic Wrapping¶
from zubbl import ZubblClient
zubbl = ZubblClient(api_key="zubbl_xxx")
# Wrap any callable
smart_agent = zubbl.wrap(my_agent)
# Use exactly like before
result = smart_agent.run("Review this pull request")
What Wrapping Does¶
- Before execution — queries Zubbl for policy recommendations
- During execution — records steps, tools used, tokens, latency
- After execution — ingests the trajectory for learning
- On failure — triggers reflexion and retries automatically