跳到內容

快速開始

提交 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")