feat: add web_search and fetch_url research tools (#2)

- Add ResearchTools class in gitea/tools/research_tools.py
  - web_search: DuckDuckGo HTML search, no API key required
  - fetch_url: httpx-based URL fetcher with HTML stripping + truncation
- Wire both tools into planning_tools and coding_tools_list in dispatcher.py
- Add 19 unit tests covering all methods, error paths, and edge cases

---------

Co-authored-by: Michael <michael@example.com>
Reviewed-on: #2
This commit is contained in:
2026-06-28 19:01:55 +02:00
parent 0461c6c7ab
commit c0c9278d75
5 changed files with 1596 additions and 4 deletions
+5
View File
@@ -11,6 +11,11 @@ dependencies = [
"pydantic>=2.13.4",
"pydantic-settings>=2.0.0",
"lmstudio>=1.5.0",
# Research tools
"duckduckgo-search>=6.0",
"trafilatura>=1.12",
"readability-lxml>=0.8",
"markdownify>=0.13",
]
[project.scripts]