# ericklopez-tech/nexus-agent-adk architecture

> Architecture diagram of the GitHub repository ericklopez-tech/nexus-agent-adk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ericklopez-tech/nexus-agent-adk
- Repository: https://github.com/ericklopez-tech/nexus-agent-adk

## Overview

Este repositorio implementa un agente de tienda con Google ADK: el usuario envía una consulta al runtime, que la entrega al agente principal para responder o delegar en especialistas. El especialista de catálogo dispone de una herramienta de búsqueda; los especialistas de pedidos y soporte están definidos, aunque no tienen herramientas implementadas en el código mostrado. El agente carga credenciales y configura LiteLLM para Groq. La sesión, la interfaz web y el ciclo completo de eventos se describen en el README, pero su implementación no aparece en el árbol proporcionado.

Main entry points: [`agents/tienda_delta/agent.py`](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py) (Configuración LiteLLM), [`agents/tienda_delta/tools.py`](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/tools.py) (Búsqueda de productos), [`.env.example`](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/.env.example) (Credenciales .env)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Interacción y runtime"]
  node_adk_runtime["ADK runtime y sesión"]
  node_adk_web["Interfaz adk web"]
end

subgraph group_agents["Agentes de tienda"]
  node_root_agent["Agente principal<br/>[agent.py]"]
  node_catalog_agent["Agente de catálogo<br/>[agent.py]"]
  node_orders_agent["Agente de pedidos<br/>[agent.py]"]
  node_support_agent["Agente de soporte<br/>[agent.py]"]
end

subgraph group_models_tools["Modelos y herramientas"]
  node_model_config["Configuración LiteLLM<br/>[agent.py]"]
  node_catalog_tool["Búsqueda de productos<br/>[tools.py]"]
  node_env_config["Credenciales .env<br/>[.env.example]"]
end

node_user(("Usuario"))
node_groq["Groq"]
node_product_catalog[("Catálogo de productos")]

node_user -->|"envía consulta"| node_adk_web
node_adk_web -->|"interactúa mediante"| node_adk_runtime
node_adk_runtime -->|"entrega consulta"| node_root_agent
node_root_agent -->|"delega tareas"| node_catalog_agent
node_root_agent -->|"delega tareas"| node_orders_agent
node_root_agent -->|"delega tareas"| node_support_agent
node_catalog_agent -->|"invoca herramienta"| node_catalog_tool
node_catalog_tool -.->|"buscaría productos"| node_product_catalog
node_root_agent -->|"configura modelo"| node_model_config
node_catalog_agent -->|"configura modelo"| node_model_config
node_orders_agent -->|"configura modelo"| node_model_config
node_support_agent -->|"configura modelo"| node_model_config
node_model_config -->|"carga credenciales"| node_env_config
node_model_config -->|"configura proveedor"| node_groq
node_adk_runtime -->|"responde y registra"| node_user

click node_root_agent "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py"
click node_catalog_agent "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py"
click node_orders_agent "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py"
click node_support_agent "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py"
click node_model_config "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py"
click node_catalog_tool "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/tools.py"
click node_env_config "https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/.env.example"

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_adk_runtime,node_adk_web toneBlue
class node_root_agent,node_catalog_agent,node_orders_agent,node_support_agent,node_product_catalog toneAmber
class node_model_config,node_catalog_tool,node_env_config toneMint
class node_user,node_groq toneIndigo
```

## Components

### Interacción y runtime

- **ADK runtime y sesión**
- **Interfaz adk web**

### Agentes de tienda

- [Agente principal](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py): `agents/tienda_delta/agent.py`
- [Agente de catálogo](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py): `agents/tienda_delta/agent.py`
- [Agente de pedidos](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py): `agents/tienda_delta/agent.py`
- [Agente de soporte](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py): `agents/tienda_delta/agent.py`

### Modelos y herramientas

- [Configuración LiteLLM](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/agent.py): `agents/tienda_delta/agent.py`
- [Búsqueda de productos](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/agents/tienda_delta/tools.py): `agents/tienda_delta/tools.py`
- [Credenciales .env](https://github.com/ericklopez-tech/nexus-agent-adk/blob/main/.env.example): `.env.example`

### Other components

- **Usuario**
- **Groq**
- **Catálogo de productos**

## Connections

- Usuario → Interfaz adk web: envía consulta (evidence: `README.md`)
- Interfaz adk web → ADK runtime y sesión: interactúa mediante (evidence: `README.md`)
- ADK runtime y sesión → Agente principal: entrega consulta (evidence: `README.md`)
- Agente principal → Agente de catálogo: delega tareas (evidence: `agents/tienda_delta/agent.py`)
- Agente principal → Agente de pedidos: delega tareas (evidence: `agents/tienda_delta/agent.py`)
- Agente principal → Agente de soporte: delega tareas (evidence: `agents/tienda_delta/agent.py`)
- Agente de catálogo → Búsqueda de productos: invoca herramienta (evidence: `agents/tienda_delta/agent.py`)
- Búsqueda de productos → Catálogo de productos: buscaría productos
- Agente principal → Configuración LiteLLM: configura modelo (evidence: `agents/tienda_delta/agent.py`)
- Agente de catálogo → Configuración LiteLLM: configura modelo (evidence: `agents/tienda_delta/agent.py`)
- Agente de pedidos → Configuración LiteLLM: configura modelo (evidence: `agents/tienda_delta/agent.py`)
- Agente de soporte → Configuración LiteLLM: configura modelo (evidence: `agents/tienda_delta/agent.py`)
- Configuración LiteLLM → Credenciales .env: carga credenciales (evidence: `agents/tienda_delta/agent.py`)
- Configuración LiteLLM → Groq: configura proveedor (evidence: `agents/tienda_delta/agent.py`)
- ADK runtime y sesión → Usuario: responde y registra (evidence: `README.md`)
