Metadata-Version: 2.4
Name: zubbl-sdk
Version: 0.3.2
Summary: Self-Evolving AI Agent SDK - Make any AI agent 20-50% smarter automatically
Project-URL: Homepage, https://zubbl.tech
Project-URL: Documentation, https://docs.zubbl.tech
Project-URL: Repository, https://github.com/anupammaurya6767/zubbl-sdk-public
Project-URL: Changelog, https://docs.zubbl.tech/changelog/
Project-URL: Discord, https://discord.gg/68cCeavPVK
Author-email: Zubbl <anupammaurya981@gmail.com>
License-Expression: MIT
Keywords: agents,ai,llm,reinforcement-learning,self-evolving
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: api
Requires-Dist: fastapi>=0.104.0; extra == 'api'
Requires-Dist: neo4j>=5.20.0; extra == 'api'
Requires-Dist: pinecone[asyncio]>=5.0.0; extra == 'api'
Requires-Dist: psycopg2-binary>=2.9.0; extra == 'api'
Requires-Dist: python-jose[cryptography]>=3.3.0; extra == 'api'
Requires-Dist: redis[hiredis]>=5.0.0; extra == 'api'
Requires-Dist: uvicorn[standard]>=0.24.0; extra == 'api'
Provides-Extra: dev
Requires-Dist: black>=23.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: ml
Requires-Dist: accelerate>=0.28.0; extra == 'ml'
Requires-Dist: datasets>=2.18.0; extra == 'ml'
Requires-Dist: peft>=0.10.0; extra == 'ml'
Requires-Dist: torch>=2.2.0; extra == 'ml'
Requires-Dist: transformers>=4.40.0; extra == 'ml'
Requires-Dist: trl>=0.12.0; extra == 'ml'
Description-Content-Type: text/markdown

# Zubbl SDK

**Self-Evolving AI Agent SDK** — Make any AI agent smarter automatically.

Wrap your agent with one line. Zubbl records every execution, learns what works, and recommends better strategies next time. No code changes needed after initial setup.

## Install

```bash
pip install zubbl-sdk
```

## Quick Start

```python
from zubbl import ZubblClient

zubbl = ZubblClient(api_key="zubbl_xxx")
smart_agent = zubbl.wrap(your_agent)

# Use exactly like before — now it learns and improves
result = smart_agent("Your task here")
```

That's it. Your agent now:
- Records every execution as a trajectory
- Extracts patterns from successes and failures
- Builds policies with actionable recommendations
- Injects learned strategies into future runs (~30 token overhead)
- Auto-recovers from failures using known fix patterns

## How It Works

```
wrap(agent) → Agent runs → Record 3 steps automatically
                              ↓
                    Extract patterns by category
                              ↓
                    Build policy (confidence grows with data)
                              ↓
                    Next run: inject [Strategy: ...] prefix
                              ↓
                    Agent gets better — zero code changes
```

## Benchmark Results

| Metric | Result |
|--------|--------|
| Tasks to confidence 1.0 | **8 per category** |
| Latency overhead | **+85ms (+5%)** |
| Actions learned per category | **3** (plan → execute → validate) |
| Code changes required | **Zero** |

## Frameworks Supported

- OpenAI / Anthropic / Google Gemini
- LangChain
- CrewAI
- Any Python callable

## Dashboard Feedback (No Code Changes)

1. Agent runs → trajectory recorded automatically
2. Go to [app.zubbl.tech](https://app.zubbl.tech) → rate the run → add feedback
3. Agent improves on next run — no code changes needed

## Research Foundations

Built on peer-reviewed research:
- Training-Free GRPO (2025) — compact policy injection
- AgentHER (2026) — learn from failures via hindsight relabeling
- ETO (ACL 2024) — contrastive trajectory optimization
- Reflexion (NeurIPS 2023) — verbal self-reflection on failures

## Links

- [Documentation](https://docs.zubbl.tech)
- [Dashboard](https://app.zubbl.tech)
- [Website](https://zubbl.tech)
- [Discord](https://discord.gg/68cCeavPVK)
- [PyPI](https://pypi.org/project/zubbl-sdk/)

## License

MIT
