# jaswanthyamana/agentic-newsroom architecture

> Architecture diagram of the GitHub repository jaswanthyamana/agentic-newsroom, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaswanthyamana/agentic-newsroom
- Repository: https://github.com/jaswanthyamana/agentic-newsroom

## Overview

Agentic Newsroom turns a user's story idea into an editorially reviewed article through an orchestrated eight-agent workflow, with research, fact-check feedback, headlines, and generated hero imagery. The README documents the browser app and streaming API; source excerpts show workflow orchestration, research search, image generation, and typed state. The graph preserves documented stages, but some agent internals and frontend implementation are unsampled, so those links rely on README documentation.

Main entry points: [`backend/src/agentic_newsroom/workflows/newsroom_workflow.py`](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/workflows/newsroom_workflow.py) (Newsroom workflow), [`backend/src/agentic_newsroom/llm/nvidia.py`](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/llm/nvidia.py) (NVIDIA model client), [`backend/src/agentic_newsroom/agents/fact_checker.py`](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/fact_checker.py) (Fact checker), [`backend/server.py`](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/server.py) (FastAPI service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application entrypoints"]
  node_web_app["Web application"]
  node_api["FastAPI service<br/>[server.py]"]
  node_cli["CLI runner<br/>[main.py]"]
end

subgraph group_editorial["Editorial workflow"]
  node_workflow["Newsroom workflow"]
  node_assignment["Assignment editor"]
  node_research["Research assistant"]
  node_reporter["Reporter<br/>[reporter.py]"]
  node_fact_checker["Fact checker<br/>[fact_checker.py]"]
  node_copy_editor["Copy editor<br/>[copy_editor.py]"]
  node_headlines["Headline writer<br/>[headline_writer.py]"]
  node_graphics["Graphic desk<br/>[graphic_desk.py]"]
  node_editor_chief["Editor-in-chief<br/>[editor_in_chief.py]"]
end

subgraph group_platform["AI and research services"]
  node_llm["NVIDIA model client<br/>[nvidia.py]"]
  node_tavily_tool["Tavily search tool<br/>[tavily_search.py]"]
end

subgraph group_data["Content and state"]
  node_state["Workflow state<br/>[states.py]"]
  node_models["Editorial schemas<br/>[models.py]"]
  node_artifacts["Article artifacts<br/>[base.py]"]
end

node_reader(("Story idea author"))
node_tavily{{"Tavily and web sources"}}
node_image_service{{"NVIDIA image API"}}

node_reader -->|"submits idea"| node_web_app
node_web_app -->|"calls API"| node_api
node_reader -->|"runs idea"| node_cli
node_api -->|"runs workflow"| node_workflow
node_cli -->|"runs workflow"| node_workflow
node_workflow -->|"runs stage"| node_assignment
node_workflow -->|"runs stage"| node_research
node_workflow -->|"runs stage"| node_reporter
node_workflow -->|"runs stage"| node_fact_checker
node_workflow -->|"runs stage"| node_copy_editor
node_workflow -->|"runs stage"| node_headlines
node_workflow -->|"runs stage"| node_graphics
node_workflow -->|"runs stage"| node_editor_chief
node_fact_checker -->|"requests revision"| node_reporter
node_research -->|"searches sources"| node_tavily_tool
node_fact_checker -->|"checks claims"| node_tavily_tool
node_tavily_tool -->|"searches and extracts"| node_tavily
node_graphics -->|"generates image"| node_image_service
node_assignment -->|"invokes model"| node_llm
node_research -->|"invokes model"| node_llm
node_reporter -->|"invokes model"| node_llm
node_fact_checker -->|"invokes model"| node_llm
node_copy_editor -->|"invokes model"| node_llm
node_headlines -->|"invokes model"| node_llm
node_editor_chief -->|"invokes model"| node_llm
node_workflow -->|"uses state"| node_state
node_state -->|"types outputs"| node_models
node_models -->|"serializes content"| node_artifacts
node_api -->|"serves generated files"| node_artifacts

click node_web_app "https://github.com/jaswanthyamana/agentic-newsroom/tree/main/frontend"
click node_api "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/server.py"
click node_cli "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/main.py"
click node_workflow "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/workflows/newsroom_workflow.py"
click node_assignment "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/assignment_editor.py"
click node_research "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/research_assistant.py"
click node_reporter "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/reporter.py"
click node_fact_checker "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/fact_checker.py"
click node_copy_editor "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/copy_editor.py"
click node_headlines "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/headline_writer.py"
click node_graphics "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/graphic_desk.py"
click node_editor_chief "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/editor_in_chief.py"
click node_llm "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/llm/nvidia.py"
click node_tavily_tool "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/tools/tavily_search.py"
click node_state "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/states.py"
click node_models "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/models.py"
click node_artifacts "https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/base.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web_app,node_api,node_cli toneBlue
class node_workflow,node_assignment,node_research,node_reporter,node_fact_checker,node_copy_editor,node_headlines,node_graphics,node_editor_chief toneAmber
class node_llm,node_tavily_tool,node_image_service toneMint
class node_state,node_models,node_artifacts toneRose
class node_reader,node_tavily toneIndigo
```

## Components

### Application entrypoints

- [Web application](https://github.com/jaswanthyamana/agentic-newsroom/tree/main/frontend): `frontend`
- [FastAPI service](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/server.py): `backend/server.py`
- [CLI runner](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/main.py): `backend/main.py`

### Editorial workflow

- [Newsroom workflow](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/workflows/newsroom_workflow.py): `backend/src/agentic_newsroom/workflows/newsroom_workflow.py`
- [Assignment editor](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/assignment_editor.py): `backend/src/agentic_newsroom/agents/assignment_editor.py`
- [Research assistant](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/research_assistant.py): `backend/src/agentic_newsroom/agents/research_assistant.py`
- [Reporter](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/reporter.py): `backend/src/agentic_newsroom/agents/reporter.py`
- [Fact checker](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/fact_checker.py): `backend/src/agentic_newsroom/agents/fact_checker.py`
- [Copy editor](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/copy_editor.py): `backend/src/agentic_newsroom/agents/copy_editor.py`
- [Headline writer](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/headline_writer.py): `backend/src/agentic_newsroom/agents/headline_writer.py`
- [Graphic desk](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/graphic_desk.py): `backend/src/agentic_newsroom/agents/graphic_desk.py`
- [Editor-in-chief](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/agents/editor_in_chief.py): `backend/src/agentic_newsroom/agents/editor_in_chief.py`

### AI and research services

- [NVIDIA model client](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/llm/nvidia.py): `backend/src/agentic_newsroom/llm/nvidia.py`
- [Tavily search tool](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/tools/tavily_search.py): `backend/src/agentic_newsroom/tools/tavily_search.py`

### Content and state

- [Workflow state](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/states.py): `backend/src/agentic_newsroom/schemas/states.py`
- [Editorial schemas](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/models.py): `backend/src/agentic_newsroom/schemas/models.py`
- [Article artifacts](https://github.com/jaswanthyamana/agentic-newsroom/blob/main/backend/src/agentic_newsroom/schemas/base.py): `backend/src/agentic_newsroom/schemas/base.py`

### Other components

- **Story idea author**
- **Tavily and web sources**
- **NVIDIA image API**

## Connections

- Story idea author → Web application: submits idea (evidence: `README.md`)
- Web application → FastAPI service: calls API (evidence: `README.md`)
- Story idea author → CLI runner: runs idea (evidence: `README.md`)
- FastAPI service → Newsroom workflow: runs workflow (evidence: `backend/server.py`)
- CLI runner → Newsroom workflow: runs workflow (evidence: `backend/main.py`)
- Newsroom workflow → Assignment editor: runs stage (evidence: `README.md`)
- Newsroom workflow → Research assistant: runs stage (evidence: `README.md`)
- Newsroom workflow → Reporter: runs stage (evidence: `README.md`)
- Newsroom workflow → Fact checker: runs stage (evidence: `README.md`)
- Newsroom workflow → Copy editor: runs stage (evidence: `README.md`)
- Newsroom workflow → Headline writer: runs stage (evidence: `README.md`)
- Newsroom workflow → Graphic desk: runs stage (evidence: `README.md`)
- Newsroom workflow → Editor-in-chief: runs stage (evidence: `README.md`)
- Fact checker → Reporter: requests revision (evidence: `README.md`)
- Research assistant → Tavily search tool: searches sources (evidence: `backend/src/agentic_newsroom/agents/research_assistant.py`)
- Fact checker → Tavily search tool: checks claims (evidence: `backend/src/agentic_newsroom/agents/fact_checker.py`)
- Tavily search tool → Tavily and web sources: searches and extracts (evidence: `backend/src/agentic_newsroom/tools/tavily_search.py`)
- Graphic desk → NVIDIA image API: generates image (evidence: `backend/src/agentic_newsroom/agents/graphic_desk.py`)
- Assignment editor → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/assignment_editor.py`)
- Research assistant → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/research_assistant.py`)
- Reporter → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/reporter.py`)
- Fact checker → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/fact_checker.py`)
- Copy editor → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/copy_editor.py`)
- Headline writer → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/headline_writer.py`)
- Editor-in-chief → NVIDIA model client: invokes model (evidence: `backend/src/agentic_newsroom/agents/editor_in_chief.py`)
- Newsroom workflow → Workflow state: uses state (evidence: `backend/src/agentic_newsroom/workflows/newsroom_workflow.py`)
- Workflow state → Editorial schemas: types outputs (evidence: `backend/src/agentic_newsroom/schemas/states.py`)
- Editorial schemas → Article artifacts: serializes content (evidence: `backend/src/agentic_newsroom/schemas/base.py`)
- FastAPI service → Article artifacts: serves generated files (evidence: `README.md`)
