跳转到内容

快速开始

提交 Agent 定义与评测集,设定预算与允许进化的层,等待报告。默认只动上下文、技能与记忆三层,权重层需要显式开启。

# 1. 安装 SDK
pip install ouro-evolve
# 2. 提交 Agent 定义 + 评测集 + 预算
from ouro import Evolve
job = Evolve().submit(
agent="./agent.yaml", # 支持 OpenAI / Anthropic / LangGraph / CrewAI 格式
evals="./evals.jsonl", # 私有评测集,只上链哈希
layers=["context", "skills", "memory"],
budget_usd=200,
rounds=5,
)
# 3. 等待进化报告
report = job.wait()
print(report.score_before, "→", report.score_after) # 0.61 → 0.74
print(report.poe_tx) # 链上记录
report.export("./agent.v15.yaml")