# sachinshettys90/-data-analyst-agent architecture

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

- Interactive diagram: https://gitdiagram.com/sachinshettys90/-data-analyst-agent
- Repository: https://github.com/sachinshettys90/-data-analyst-agent

## Overview

This repository is a small collection of AI applications: a Streamlit data analyst, a Streamlit multi-agent research tool, a command-line code reviewer, and two Agno examples. The main user workflows run from uploaded data or a query to an agent-generated answer or review. The README documents the data and research capabilities; sampled source also shows the code-review and example apps. Arrows reflect calls and tool/model configuration visible in those sources; external services are shown where integrations are explicit.

Main entry points: [`DataAnalyst_Agent.py`](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py) (Streamlit App), [`Research_Agent.py`](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py) (Research Streamlit App), [`AgnoBasics/Agno_MultiAgents.py`](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py) (Research Finance Team), [`Code-Review-Agent/CodeReviewAgent.py`](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py) (Review CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data Analyst"]
  node_data_app["Streamlit App"]
  node_data_preprocess["File Preprocessing"]
  node_data_frame["Pandas DataFrame"]
  node_duckdb[("DuckDB Tools")]
  node_data_agent["Analyst Agent"]
  node_data_answer["Displayed Answer"]
end

subgraph group_research["Research Agent"]
  node_research_app["Research Streamlit App<br/>[Research_Agent.py]"]
  node_research_team["Research Team<br/>[Research_Agent.py]"]
  node_hn_agent["HackerNews Researcher<br/>[Research_Agent.py]"]
  node_web_agent["Web Searcher<br/>[Research_Agent.py]"]
  node_article_agent["Article Reader<br/>[Research_Agent.py]"]
  node_research_result["Research Summary<br/>[Research_Agent.py]"]
end

subgraph group_review["Code Review"]
  node_review_cli["Review CLI<br/>[CodeReviewAgent.py]"]
  node_review_function["Review Function<br/>[CodeReviewAgent.py]"]
  node_review_model["ChatOpenAI<br/>[CodeReviewAgent.py]"]
  node_review_result["Review Output<br/>[CodeReviewAgent.py]"]
end

subgraph group_examples["Agno Examples"]
  node_simple_agent["Simple Web Agent"]
  node_multi_team["Research Finance Team"]
  node_example_web_agent["Web Agent"]
  node_finance_agent["Finance Agent"]
end

node_data_user(("Data User"))
node_openai{{"OpenAI"}}
node_research_user(("Research User"))
node_hn_service{{"HackerNews"}}
node_search_service{{"DuckDuckGo"}}
node_articles["Online Articles"]
node_review_user(("Review Requester"))
node_langsmith{{"LangSmith"}}
node_example_user(("Example User"))
node_yfinance{{"Yahoo Finance"}}

node_data_user -->|"uploads and queries"| node_data_app
node_data_app -->|"preprocesses upload"| node_data_preprocess
node_data_preprocess -->|"parses into"| node_data_frame
node_data_preprocess -->|"loads CSV to"| node_duckdb
node_data_app -->|"runs query with"| node_data_agent
node_data_agent -->|"queries table via"| node_duckdb
node_data_agent -->|"uses model"| node_openai
node_data_app -->|"displays response"| node_data_answer
node_research_user -->|"submits query"| node_research_app
node_research_app -->|"runs query on"| node_research_team
node_research_team -->|"includes member"| node_hn_agent
node_research_team -->|"includes member"| node_web_agent
node_research_team -->|"includes member"| node_article_agent
node_hn_agent -->|"uses tools"| node_hn_service
node_web_agent -->|"uses tools"| node_search_service
node_article_agent -->|"reads articles"| node_articles
node_research_app -->|"configures models"| node_openai
node_research_app -->|"displays response"| node_research_result
node_review_user -->|"provides code"| node_review_cli
node_review_cli -->|"calls review"| node_review_function
node_review_function -->|"invokes model"| node_review_model
node_review_function -->|"traced by"| node_langsmith
node_review_cli -->|"prints review"| node_review_result
node_example_user -->|"runs example"| node_simple_agent
node_example_user -->|"runs example"| node_multi_team
node_multi_team -->|"includes member"| node_example_web_agent
node_multi_team -->|"includes member"| node_finance_agent
node_example_web_agent -->|"uses tools"| node_search_service
node_simple_agent -->|"uses tools"| node_search_service
node_finance_agent -->|"uses tools"| node_yfinance
node_multi_team -->|"configures model"| node_openai
node_simple_agent -->|"configures model"| node_openai

click node_data_app "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_data_preprocess "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_data_frame "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_duckdb "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_data_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_data_answer "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py"
click node_research_app "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_research_team "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_hn_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_web_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_article_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_research_result "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py"
click node_review_cli "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py"
click node_review_function "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py"
click node_review_model "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py"
click node_review_result "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py"
click node_simple_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_simpleAgent.py"
click node_multi_team "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py"
click node_example_web_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py"
click node_finance_agent "https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.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_data_app,node_data_preprocess,node_data_frame,node_duckdb,node_data_agent,node_data_answer,node_data_user,node_research_user,node_review_user,node_example_user toneBlue
class node_research_app,node_research_team,node_hn_agent,node_web_agent,node_article_agent,node_research_result toneAmber
class node_review_cli,node_review_function,node_review_model,node_review_result toneMint
class node_simple_agent,node_multi_team,node_example_web_agent,node_finance_agent toneRose
class node_openai,node_hn_service,node_search_service,node_articles,node_langsmith,node_yfinance toneIndigo
```

## Components

### Data Analyst

- [Streamlit App](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`
- [File Preprocessing](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`
- [Pandas DataFrame](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`
- [DuckDB Tools](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`
- [Analyst Agent](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`
- [Displayed Answer](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/DataAnalyst_Agent.py): `DataAnalyst_Agent.py`

### Research Agent

- [Research Streamlit App](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`
- [Research Team](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`
- [HackerNews Researcher](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`
- [Web Searcher](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`
- [Article Reader](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`
- [Research Summary](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Research_Agent.py): `Research_Agent.py`

### Code Review

- [Review CLI](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py): `Code-Review-Agent/CodeReviewAgent.py`
- [Review Function](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py): `Code-Review-Agent/CodeReviewAgent.py`
- [ChatOpenAI](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py): `Code-Review-Agent/CodeReviewAgent.py`
- [Review Output](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/Code-Review-Agent/CodeReviewAgent.py): `Code-Review-Agent/CodeReviewAgent.py`

### Agno Examples

- [Simple Web Agent](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_simpleAgent.py): `AgnoBasics/Agno_simpleAgent.py`
- [Research Finance Team](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py): `AgnoBasics/Agno_MultiAgents.py`
- [Web Agent](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py): `AgnoBasics/Agno_MultiAgents.py`
- [Finance Agent](https://github.com/sachinshettys90/-data-analyst-agent/blob/main/AgnoBasics/Agno_MultiAgents.py): `AgnoBasics/Agno_MultiAgents.py`

### Other components

- **Data User**
- **OpenAI**
- **Research User**
- **HackerNews**
- **DuckDuckGo**
- **Online Articles**
- **Review Requester**
- **LangSmith**
- **Example User**
- **Yahoo Finance**

## Connections

- Data User → Streamlit App: uploads and queries (evidence: `DataAnalyst_Agent.py`)
- Streamlit App → File Preprocessing: preprocesses upload (evidence: `DataAnalyst_Agent.py`)
- File Preprocessing → Pandas DataFrame: parses into (evidence: `DataAnalyst_Agent.py`)
- File Preprocessing → DuckDB Tools: loads CSV to (evidence: `DataAnalyst_Agent.py`)
- Streamlit App → Analyst Agent: runs query with (evidence: `DataAnalyst_Agent.py`)
- Analyst Agent → DuckDB Tools: queries table via (evidence: `DataAnalyst_Agent.py`)
- Analyst Agent → OpenAI: uses model (evidence: `DataAnalyst_Agent.py`)
- Streamlit App → Displayed Answer: displays response (evidence: `DataAnalyst_Agent.py`)
- Research User → Research Streamlit App: submits query (evidence: `Research_Agent.py`)
- Research Streamlit App → Research Team: runs query on (evidence: `Research_Agent.py`)
- Research Team → HackerNews Researcher: includes member (evidence: `Research_Agent.py`)
- Research Team → Web Searcher: includes member (evidence: `Research_Agent.py`)
- Research Team → Article Reader: includes member (evidence: `Research_Agent.py`)
- HackerNews Researcher → HackerNews: uses tools (evidence: `Research_Agent.py`)
- Web Searcher → DuckDuckGo: uses tools (evidence: `Research_Agent.py`)
- Article Reader → Online Articles: reads articles (evidence: `Research_Agent.py`)
- Research Streamlit App → OpenAI: configures models (evidence: `Research_Agent.py`)
- Research Streamlit App → Research Summary: displays response (evidence: `Research_Agent.py`)
- Review Requester → Review CLI: provides code (evidence: `Code-Review-Agent/CodeReviewAgent.py`)
- Review CLI → Review Function: calls review (evidence: `Code-Review-Agent/CodeReviewAgent.py`)
- Review Function → ChatOpenAI: invokes model (evidence: `Code-Review-Agent/CodeReviewAgent.py`)
- Review Function → LangSmith: traced by (evidence: `Code-Review-Agent/CodeReviewAgent.py`)
- Review CLI → Review Output: prints review (evidence: `Code-Review-Agent/CodeReviewAgent.py`)
- Example User → Simple Web Agent: runs example (evidence: `AgnoBasics/Agno_simpleAgent.py`)
- Example User → Research Finance Team: runs example (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Research Finance Team → Web Agent: includes member (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Research Finance Team → Finance Agent: includes member (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Web Agent → DuckDuckGo: uses tools (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Simple Web Agent → DuckDuckGo: uses tools (evidence: `AgnoBasics/Agno_simpleAgent.py`)
- Finance Agent → Yahoo Finance: uses tools (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Research Finance Team → OpenAI: configures model (evidence: `AgnoBasics/Agno_MultiAgents.py`)
- Simple Web Agent → OpenAI: configures model (evidence: `AgnoBasics/Agno_simpleAgent.py`)
