GAIA Agent: Agents Course Unit 4
Source code of a tool-calling research agent for the Hugging Face Agents Course final assignment (20 GAIA level-1 questions). The agent runs locally; this static Space hosts the code.
Browse the code. Setup, commands, architecture and limitations are in the README.
Files
gaia_agent/agent.py: agent loop (OpenAI Responses API or Gemini) and answer extractiongaia_agent/tools.py: search, web/PDF fetch, Wikipedia (dated revisions), sandboxed Python, attachments, mediagaia_agent/llm_openai.py,gaia_agent/llm.py: model clients, retries, cost tracking and budget capgaia_agent/scoring_api.py: course scoring API client and payload validationcli.py: fetch / smoke / run / review / validate / submitapp.py: the course template's Gradio UI wired to this agenttests/test_offline.py: offline tests
No API keys, run logs or answers are published here.