chengyongru and chengyongru
9895c23cb5
refactor(providers): define typed usage contract
2026-08-25 01:04:25 +08:00
santhreal and Xubin Ren
fe0e65928d
fix(utils): coerce Tavily usage counters to int
...
JSON APIs sometimes return numeric fields as strings; subtracting them raised TypeError and /status dropped the usage block.
2026-07-18 17:23:26 +08:00
chengyongru and chengyongru
2116e32013
test: speed up CI and harden the suite
2026-07-15 00:18:37 +08:00
Xubin Ren and Xubin Ren
dad9c07843
fix(tests): update Tavily usage tests to match actual API response shape
...
The _parse_tavily_usage implementation was updated to use the real
{account: {plan_usage, plan_limit, ...}} structure, but the tests
still used the old flat {used, limit, breakdown} format.
Made-with: Cursor
2026-04-06 19:17:55 +08:00
Xubin Ren and Xubin Ren
7ffd93f48d
refactor: move search_usage to utils/searchusage, remove brave stub
...
- Rename agent/tools/search_usage.py → utils/searchusage.py
(not an LLM tool, matches utils/ naming convention)
- Remove redundant _fetch_brave_usage — handled by else branch
- Move test to tests/utils/test_searchusage.py
Made-with: Cursor
2026-04-06 13:37:55 +08:00