feat: add review effort accounting and budget governor
This commit is contained in:
@@ -201,6 +201,13 @@ def test_parse_events_text_and_usage_summed():
|
||||
assert usage["cache_write"] == 1
|
||||
assert usage["total"] == 150
|
||||
assert abs(usage["cost"] - 0.01) < 1e-9
|
||||
assert usage["tool_calls"] == 0
|
||||
assert usage["iterations"] == [
|
||||
{"step": 1, "input": 90, "output": 10, "reasoning": 0,
|
||||
"cache_read": 5, "cache_write": 0, "total": 100, "cost": 0.0},
|
||||
{"step": 2, "input": 40, "output": 10, "reasoning": 2,
|
||||
"cache_read": 0, "cache_write": 1, "total": 50, "cost": 0.01},
|
||||
]
|
||||
|
||||
|
||||
def test_parse_events_no_step_finish_returns_none_usage():
|
||||
@@ -481,4 +488,3 @@ def test_committed_config_has_no_private_address():
|
||||
# ---------------------------------------------------------------------------
|
||||
# Multi-lens orchestration
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user