# krishna-dhawangale/news-ai-agent-crew-ai- architecture

> Architecture diagram of the GitHub repository krishna-dhawangale/news-ai-agent-crew-ai-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/krishna-dhawangale/news-ai-agent-crew-ai-
- Repository: https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-

## Overview

This is a small CrewAI application that researches and writes a technology article. Its main workflow starts in `crew.py`, where a sequential crew runs the research task and then the writing task for the configured healthcare-AI topic. Tasks assign work to Gemini-backed agents and provide a Serper search tool; the writer task saves its article to `crewgooglegemini/new-blog-post.md`. Source excerpts support these configuration and invocation links; runtime details inside CrewAI and external services are not shown.

Main entry points: [`crewgooglegemini/crew.py`](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/crew.py) (Crew entry), [`crewgooglegemini/tools.py`](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tools.py) (Serper search tool), [`crewgooglegemini/tasks.py`](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tasks.py) (Writing task), [`crewgooglegemini/agents.py`](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/agents.py) (Research agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Crew workflow"]
  node_crew["Crew entry<br/>[crew.py]"]
  node_article["Generated article<br/>[new-blog-post.md]"]
end

subgraph group_agents["Agents and tasks"]
  node_research_task["Research task<br/>[tasks.py]"]
  node_writer_task["Writing task<br/>[tasks.py]"]
  node_research_agent["Research agent<br/>[agents.py]"]
  node_writer_agent["Writer agent<br/>[agents.py]"]
end

subgraph group_integrations["External services"]
  node_search_tool["Serper search tool<br/>[tools.py]"]
  node_gemini["Google Gemini"]
  node_serper["Serper API"]
end

node_user(("Invoker"))

node_user -->|"runs"| node_crew
node_crew -->|"runs first"| node_research_task
node_crew -->|"runs next"| node_writer_task
node_crew -->|"registers"| node_research_agent
node_crew -->|"registers"| node_writer_agent
node_research_task -->|"assigns to"| node_research_agent
node_writer_task -->|"assigns to"| node_writer_agent
node_research_task -->|"provides"| node_search_tool
node_writer_task -->|"provides"| node_search_tool
node_research_agent -->|"uses"| node_search_tool
node_writer_agent -->|"uses"| node_search_tool
node_research_agent -->|"configures"| node_gemini
node_writer_agent -->|"configures"| node_gemini
node_search_tool -->|"queries"| node_serper
node_writer_task -->|"writes"| node_article

click node_crew "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/crew.py"
click node_research_task "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tasks.py"
click node_writer_task "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tasks.py"
click node_research_agent "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/agents.py"
click node_writer_agent "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/agents.py"
click node_search_tool "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tools.py"
click node_article "https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/new-blog-post.md"

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_crew,node_article toneBlue
class node_research_task,node_writer_task,node_research_agent,node_writer_agent toneAmber
class node_search_tool,node_gemini,node_serper toneMint
class node_user toneIndigo
```

## Components

### Crew workflow

- [Crew entry](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/crew.py): `crewgooglegemini/crew.py`
- [Generated article](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/new-blog-post.md): `crewgooglegemini/new-blog-post.md`

### Agents and tasks

- [Research task](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tasks.py): `crewgooglegemini/tasks.py`
- [Writing task](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tasks.py): `crewgooglegemini/tasks.py`
- [Research agent](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/agents.py): `crewgooglegemini/agents.py`
- [Writer agent](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/agents.py): `crewgooglegemini/agents.py`

### External services

- [Serper search tool](https://github.com/krishna-dhawangale/news-ai-agent-crew-ai-/blob/main/crewgooglegemini/tools.py): `crewgooglegemini/tools.py`
- **Google Gemini**
- **Serper API**

### Other components

- **Invoker**

## Connections

- Invoker → Crew entry: runs (evidence: `README.md`)
- Crew entry → Research task: runs first (evidence: `crewgooglegemini/crew.py`)
- Crew entry → Writing task: runs next (evidence: `crewgooglegemini/crew.py`)
- Crew entry → Research agent: registers (evidence: `crewgooglegemini/crew.py`)
- Crew entry → Writer agent: registers (evidence: `crewgooglegemini/crew.py`)
- Research task → Research agent: assigns to (evidence: `crewgooglegemini/tasks.py`)
- Writing task → Writer agent: assigns to (evidence: `crewgooglegemini/tasks.py`)
- Research task → Serper search tool: provides (evidence: `crewgooglegemini/tasks.py`)
- Writing task → Serper search tool: provides (evidence: `crewgooglegemini/tasks.py`)
- Research agent → Serper search tool: uses (evidence: `crewgooglegemini/agents.py`)
- Writer agent → Serper search tool: uses (evidence: `crewgooglegemini/agents.py`)
- Research agent → Google Gemini: configures (evidence: `crewgooglegemini/agents.py`)
- Writer agent → Google Gemini: configures (evidence: `crewgooglegemini/agents.py`)
- Serper search tool → Serper API: queries (evidence: `crewgooglegemini/tools.py`)
- Writing task → Generated article: writes (evidence: `crewgooglegemini/tasks.py`)
