# daviditse117/ge-hackathon-hackathon-team4 architecture

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

- Interactive diagram: https://gitdiagram.com/daviditse117/ge-hackathon-hackathon-team4
- Repository: https://github.com/daviditse117/ge-hackathon-hackathon-team4

## Overview

This repository provides three Google ADK agents and a TrendOps coordinator that combines them in a market-to-GitHub workflow: analyze Google Trends in BigQuery, check live context with Google Search, and track findings in GitHub. The README also describes a Gemini Enterprise/Model Armor configuration manifest. The BigQuery agent source was not excerpted, so its detailed behavior is represented from README documentation; the coordinator’s agent delegation and the utility’s BigQuery and prompt-template behavior are visible in excerpts.

Main entry points: [`extension-trendops-agent/app/agent.py`](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/extension-trendops-agent/app/agent.py) (TrendOps Coordinator), [`bq-trend-agent/app/agent.py`](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/agent.py) (Trends Analyst), [`bq-trend-agent/app/utils.py`](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/utils.py) (BigQuery Utilities), [`basic-search-agent/app/agent.py`](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/basic-search-agent/app/agent.py) (Search Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_coordination["TrendOps Coordination"]
  node_coordinator["TrendOps Coordinator<br/>[agent.py]"]
  node_manifest["Enterprise Manifest"]
end

subgraph group_trends["Trends Analysis"]
  node_bq_agent["Trends Analyst<br/>[agent.py]"]
  node_bq_utils["BigQuery Utilities<br/>[utils.py]"]
  node_prompt["SQL Prompt Template"]
end

subgraph group_search["Web Search"]
  node_search_agent["Search Agent<br/>[agent.py]"]
end

subgraph group_github["GitHub Engineering"]
  node_github_agent["GitHub MCP Agent<br/>[agent.py]"]
end

node_user(("User"))
node_bigquery[("BigQuery")]
node_google_search{{"Google Search"}}
node_github_mcp{{"GitHub Copilot MCP"}}
node_model_armor{{"Model Armor"}}

node_user -->|"asks"| node_coordinator
node_coordinator -->|"delegates analysis"| node_bq_agent
node_coordinator -->|"delegates context"| node_search_agent
node_coordinator -->|"delegates tracking"| node_github_agent
node_bq_agent -->|"gets date and prompt"| node_bq_utils
node_bq_utils -->|"queries refresh date"| node_bigquery
node_bq_utils -->|"renders"| node_prompt
node_bq_agent -->|"runs analysis queries"| node_bigquery
node_search_agent -->|"searches web"| node_google_search
node_github_agent -->|"calls tools"| node_github_mcp
node_manifest -->|"describes policy"| node_model_armor

click node_coordinator "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/extension-trendops-agent/app/agent.py"
click node_manifest "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/ge-config/ge_app_manifest.json"
click node_bq_agent "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/agent.py"
click node_bq_utils "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/utils.py"
click node_prompt "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/prompts/google_trends_nl2sql_with_few_shot.j2"
click node_search_agent "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/basic-search-agent/app/agent.py"
click node_github_agent "https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/github-mcp-agent/app/agent.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_coordinator,node_manifest,node_user toneBlue
class node_bq_agent,node_bq_utils,node_prompt,node_bigquery toneAmber
class node_search_agent toneMint
class node_github_agent toneRose
class node_google_search,node_github_mcp,node_model_armor toneIndigo
```

## Components

### TrendOps Coordination

- [TrendOps Coordinator](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/extension-trendops-agent/app/agent.py): `extension-trendops-agent/app/agent.py`
- [Enterprise Manifest](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/ge-config/ge_app_manifest.json): `ge-config/ge_app_manifest.json`

### Trends Analysis

- [Trends Analyst](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/agent.py): `bq-trend-agent/app/agent.py`
- [BigQuery Utilities](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/utils.py): `bq-trend-agent/app/utils.py`
- [SQL Prompt Template](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/bq-trend-agent/app/prompts/google_trends_nl2sql_with_few_shot.j2): `bq-trend-agent/app/prompts/google_trends_nl2sql_with_few_shot.j2`

### Web Search

- [Search Agent](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/basic-search-agent/app/agent.py): `basic-search-agent/app/agent.py`

### GitHub Engineering

- [GitHub MCP Agent](https://github.com/daviditse117/ge-hackathon-hackathon-team4/blob/master/github-mcp-agent/app/agent.py): `github-mcp-agent/app/agent.py`

### Other components

- **User**
- **BigQuery**
- **Google Search**
- **GitHub Copilot MCP**
- **Model Armor**

## Connections

- User → TrendOps Coordinator: asks
- TrendOps Coordinator → Trends Analyst: delegates analysis (evidence: `extension-trendops-agent/app/agent.py`)
- TrendOps Coordinator → Search Agent: delegates context (evidence: `extension-trendops-agent/app/agent.py`)
- TrendOps Coordinator → GitHub MCP Agent: delegates tracking (evidence: `extension-trendops-agent/app/agent.py`)
- Trends Analyst → BigQuery Utilities: gets date and prompt (evidence: `README.md`)
- BigQuery Utilities → BigQuery: queries refresh date (evidence: `bq-trend-agent/app/utils.py`)
- BigQuery Utilities → SQL Prompt Template: renders (evidence: `bq-trend-agent/app/utils.py`)
- Trends Analyst → BigQuery: runs analysis queries (evidence: `README.md`)
- Search Agent → Google Search: searches web (evidence: `basic-search-agent/app/agent.py`)
- GitHub MCP Agent → GitHub Copilot MCP: calls tools (evidence: `github-mcp-agent/app/agent.py`)
- Enterprise Manifest → Model Armor: describes policy (evidence: `README.md`)
