How https-deeplearning-ai/agentic-ai-public works
This is a FastAPI research-reporting app: a user submits a topic, the API creates a task and plan, then a background thread executes research, writing, and editing steps and stores the final report in PostgreSQL. Users can poll in-memory step progress or retrieve persisted task status and results. Research uses web, arXiv, and Wikipedia tools; arXiv results can include extracted PDF text. The README documents the UI and polling capabilities. Source excerpts show the API and agent calls; tool-to-provider behavior is documented or visible in the tool module, while some UI wiring is not sampled.
Main entry points: main.py Task API · agents.py Research agent · planning_agent.py Step executor · research_tools.py arXiv search
Components 21
Web interface
- Research form
templates/index.html
API and tasks
- Task API
main.py - Workflow runner
main.py - Live progress
main.py
Agent workflow
- Research planner
src/planning_agent.py - Step executor
src/planning_agent.py - Research agent
src/agents.py - Report writer
src/agents.py - Report editor
src/agents.py
Research sources
- Web search
src/research_tools.py - arXiv search
src/research_tools.py - PDF extraction
src/research_tools.py - Wikipedia search
src/research_tools.py
Task persistence
- Task progress state
main.py - PostgreSQL tasks
main.py
Other components
- Research user
- LLM service
- Tavily service
- arXiv service
- Wikipedia service
- PDF hosts
Connections 27
- Research user → Research form: opens
README.md - Research user → Task API: submits task
README.md - Research form → Task API: starts research
README.md - Task API → PostgreSQL tasks: creates task
main.py - Task API → Research planner: plans task
main.py - Task API → Task progress state: initializes progress
main.py - Task API → Workflow runner: starts thread
main.py - Task API → PostgreSQL tasks: reads task result
main.py - Task API → Task progress state: serves progress
main.py - Workflow runner → Step executor: executes steps
main.py - Workflow runner → Task progress state: updates progress
main.py - Workflow runner → PostgreSQL tasks: stores report
main.py - Research planner → LLM service: requests plan
src/planning_agent.py - Step executor → Research agent: dispatches research
src/planning_agent.py - Step executor → Report writer: dispatches writing
src/planning_agent.py - Step executor → Report editor: dispatches editing
src/planning_agent.py - Research agent → LLM service: requests tool use
src/agents.py - Report writer → LLM service: generates draft
src/agents.py - Report editor → LLM service: revises report
src/agents.py - Research agent → Web search: offers tool
src/agents.py - Research agent → arXiv search: offers tool
src/agents.py - Research agent → Wikipedia search: offers tool
src/agents.py - Web search → Tavily service: searches web
src/research_tools.py - arXiv search → arXiv service: queries papers
src/research_tools.py - arXiv search → PDF extraction: extracts full text
src/research_tools.py - PDF extraction → PDF hosts: fetches PDFs
src/research_tools.py - Wikipedia search → Wikipedia service: searches pages
src/research_tools.py