michael c0c9278d75 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
2026-06-28 19:01:55 +02:00
2026-06-28 18:38:28 +02:00
2026-06-28 18:38:28 +02:00

Agent Instructions

  • Prefer using dataclasses when using data structures or similar objects to represent complex data.
  • Follow all instructions provided in the system prompt.
  • Keep responses concise and direct.
  • Minimize output tokens.
  • Use the Task tool for complex multi-step tasks.
  • Verify solutions with tests if possible.
  • Run lint and typecheck commands if provided.
  • Do not commit changes unless explicitly asked.
  • Use GitHub-flavored markdown for formatting.
  • Answer concisely with fewer than 4 lines of text.
  • ALWAYS use uv to run python commands. Do not use python3 directly.
  • Always commit and push changes at the end of a task.
  • NEVER push to the master or main branch.

Running the Agent

# Activate the virtual environment
uv sync

# Run the agent
uv run src/main.py

Resolved Issues

  • #2: Test issue for agent - Resolved by agent.
S
Description
No description provided
Readme MIT 625 KiB
Languages
Python 100%