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 — calls are proxied to the original agent
result = smart_agent("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 recovery and retries automatically