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 authored and Xubin Ren committed 2026-04-06 13:37:55 +08:00
1 parent bc0ff7f214
commit 7ffd93f48d
3 files changed
+3 -15

No files matched your search

@@ -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,