SIB (Self-Improving Benchmark)
A framework for building self-improving AI agents that autonomously refine their performance on benchmark tasks.
Installation
pip install sib-agent
Usage
from sib import Generation, GenerationLog, ScoreTracker
# Track generations in a self-improvement loop
log = GenerationLog()
gen = log.new_generation(config={"model": "claude-sonnet", "temperature": 0.7})
# ... run your agent ...
gen.finish(result={"accuracy": 0.82})
gen = log.new_generation(config={"model": "claude-sonnet", "temperature": 0.5})
# ... run improved agent ...
gen.finish(result={"accuracy": 0.91})
# Find the best generation
best = log.best("accuracy")
print(best.generation_id, best.result) # 1 {'accuracy': 0.91}
# Save and reload logs
log.save("run_log.json")
log = GenerationLog.load("run_log.json")
# Track scores across generations
tracker = ScoreTracker()
tracker.record("accuracy", 0.82)
tracker.record("accuracy", 0.91)
summary = tracker.summarise("accuracy")
print(summary.improvement) # 0.09
print(summary.is_improving) # True
License
MIT
Metadata
Release files for sib-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sib_agent-0.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sib_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / sib_agent-0.1.0.tar.gz
| Download URL | sib_agent-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b438fff9a16050fd2bfc20bfac2f1a8b9b7afd826585a2e1a18884349b23f70
|
|
BLAKE2b-256 checksum How to use checksums |
f9854f458af21f9e9b45cde09724df3aef7fbd3a6cb2a8757c098cab6d271ea8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / sib_agent-0.1.0-py3-none-any.whl
| Download URL | sib_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41c8b76410fe8089418927603cbecb8e8f8a6424af01b3d911148189c2f89629
|
|
BLAKE2b-256 checksum How to use checksums |
e4a9a2c7a9725bc261df0c125f5ec1168580b9cc8f2e27fe69bfea0cf2b758e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|