--- title: GAIA Agent - Agents Course Final Assignment emoji: 🕵🏻‍♂️ colorFrom: indigo colorTo: indigo sdk: static pinned: false --- # GAIA Agent (Hugging Face Agents Course, Unit 4) A [smolagents](https://github.com/huggingface/smolagents) `CodeAgent` driven by **gpt-oss-120b**, served through UF's NaviGator AI Toolkit (an OpenAI-compatible API). | File | Purpose | |---|---| | `agent.py` | Agent definition, instructions, answer normalization | | `tools.py` | Web search, webpage reader, Wikipedia (incl. historical revisions), file reader, Python runner, Whisper, vision, YouTube transcripts | | `config.py` | API configuration (key from `NAVIGATOR_TOOLKIT_API_KEY`) | | `run_all.py` / `run_one.py` | Answer all questions locally, in parallel, with per-question logs | | `submit.py` | Submit cached answers to the scoring API | | `app.py` | Gradio UI adapted from the course template (reference; this Space is static because Gradio Spaces on free CPU now need PRO) | Note: gpt-oss emits hidden reasoning before its answer, and server-side `stop` sequences can fire inside that reasoning and return empty content, so `agent.py` disables server-side stop sequences and lets smolagents trim the output client-side.