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
This commit is contained in:
Xubin Ren
2026-04-06 13:37:55 +08:00
committed by Xubin Ren
parent bc0ff7f214
commit 7ffd93f48d
3 changed files with 3 additions and 15 deletions
@@ -5,7 +5,7 @@ from __future__ import annotations
import pytest
from unittest.mock import AsyncMock, MagicMock, patch
from nanobot.agent.tools.search_usage import (
from nanobot.utils.searchusage import (
SearchUsageInfo,
_parse_tavily_usage,
fetch_search_usage,