How suyashnemade/langgraph-gaia-benchmark-agent works
This is a LangGraph-powered GAIA benchmark agent: users submit a question and optional attachment through the Gradio evaluation interface, which resolves the attachment, invokes the agent, then records and submits answers. The agent reasons with a rotating multi-provider model, dispatches tools for web, files, code, arithmetic, image, audio, and YouTube tasks, and applies a step-limit finalizer. README-documented video analysis is included as a capability, but its connection to the active workflow is not shown. The graph follows excerpted calls and documented behavior; unsampled evaluation details are not inferred.
Main entry points: workflow.py ReAct Workflow · app.py Evaluation Runner · llm.py Rotating LLM · states.py Agent State
Components 16
Evaluation Interface
- Evaluation Runner
app.py - Attachment Resolver
app.py
Agent Orchestration
- ReAct Workflow
agent/workflow.py - Agent State
agent/states.py
Models and Prompts
- GAIA Instructions
agent/prompt.py - Rotating LLM
agent/llm.py
Task Tools
- Web Research
tools/web.py - File Reader
tools/file_tools.py - Python Executor
tools/python_tool.py - Safe Calculator
tools/calculator.py - Image and Audio
tools/tools.py - YouTube Transcript
tools/tools.py - Video Analysis
tools/video_tool.py
Other components
- Benchmark User
- GAIA Service
- LLM Providers
Connections 17
- Benchmark User → Evaluation Runner: submits tasks
README.md - Evaluation Runner → Attachment Resolver: resolves attachment
app.py - Attachment Resolver → GAIA Service: downloads files
app.py - Evaluation Runner → ReAct Workflow: invokes agent
app.py - Evaluation Runner → GAIA Service: fetches and submits
app.py - ReAct Workflow → Agent State: uses state
agent/workflow.py - ReAct Workflow → GAIA Instructions: builds model messages
agent/workflow.py - ReAct Workflow → Rotating LLM: invokes model
agent/workflow.py - Rotating LLM → LLM Providers: rotates requests
README.md - ReAct Workflow → Web Research: dispatches tools
agent/workflow.py - ReAct Workflow → File Reader: dispatches tools
agent/workflow.py - ReAct Workflow → Python Executor: dispatches tools
agent/workflow.py - ReAct Workflow → Safe Calculator: dispatches tools
agent/workflow.py - ReAct Workflow → Image and Audio: dispatches tools
agent/workflow.py - ReAct Workflow → YouTube Transcript: dispatches tools
agent/workflow.py - Rotating LLM → LLM Providers: serves multimodal calls
- Benchmark User → Video Analysis: requests video analysis
README.md