# gustavoeenriquez/makerai architecture

> Architecture diagram of the GitHub repository gustavoeenriquez/makerai, 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/gustavoeenriquez/makerai
- Repository: https://github.com/gustavoeenriquez/makerai

## Overview

MakerAI Suite is a Delphi AI application framework spanning provider-backed chat, tools, retrieval, agents, and production controls. A typical user asks through a chat or agent application; the framework can call an LLM and deterministic tools, retrieve from vector or graph stores, and return a result. README capabilities also include embeddings, MCP, A2A, Skills, realtime voice, and FMX chat UI. Source excerpts cover only palette-generation utilities, so component links below rely on README statements; internal call paths could not be verified.

Main entry points: [`Source/Agents`](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents) (Agent graphs), [`Source/Chat`](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Chat) (Provider chat), [`Source/Tools`](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools) (ChatTools), [`Source/RAG`](https://github.com/gustavoeenriquez/makerai/tree/master/Source/RAG) (Vector RAG)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chat["Chat and media"]
  node_chat["Provider chat"]
  node_connectors["Universal Connector"]
end

subgraph group_retrieval["Retrieval and memory"]
  node_embeddings["Embeddings"]
  node_vector_rag["Vector RAG"]
  node_graph_rag["Graph RAG"]
  node_memory[("Persistent memory")]
end

subgraph group_agents["Agents and orchestration"]
  node_agents_core["Agent graphs"]
  node_orchestration["Graph orchestration"]
end

subgraph group_integrations["Tools and integrations"]
  node_chattools["ChatTools"]
  node_mcp["MCP servers and clients"]
  node_mcp_client["MCP client"]
  node_a2a["A2A"]
  node_skills["Skills"]
end

subgraph group_production["Production and interfaces"]
  node_production["Guardrails and evals"]
  node_telemetry["OpenTelemetry"]
  node_chat_ui["FMX chat UI"]
end

node_user(("Application user"))
node_llm_provider{{"LLM providers"}}
node_tool_services{{"External tool services"}}

node_user -->|"asks"| node_chat
node_chat -->|"selects provider"| node_connectors
node_connectors -->|"calls provider"| node_llm_provider
node_chat -->|"uses tools"| node_chattools
node_chattools -->|"accesses capabilities"| node_tool_services
node_user -->|"starts agent"| node_agents_core
node_agents_core -->|"runs graph"| node_orchestration
node_user -->|"queries"| node_vector_rag
node_user -->|"queries"| node_graph_rag
node_embeddings -->|"supports retrieval"| node_vector_rag
node_agents_core -->|"uses memory"| node_memory
node_mcp_client -->|"consumes tools"| node_mcp
node_agents_core -->|"exposes or calls agents"| node_a2a
node_agents_core -->|"loads instructions"| node_skills
node_chat -->|"applies guardrails"| node_production
node_agents_core -->|"traces execution"| node_telemetry
node_user -->|"uses interface"| node_chat_ui

click node_chat "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Chat"
click node_connectors "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Chat"
click node_embeddings "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Embeddings"
click node_vector_rag "https://github.com/gustavoeenriquez/makerai/tree/master/Source/RAG"
click node_graph_rag "https://github.com/gustavoeenriquez/makerai/tree/master/Source/RAG"
click node_memory "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Memory"
click node_agents_core "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents"
click node_orchestration "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents"
click node_chattools "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools"
click node_mcp "https://github.com/gustavoeenriquez/makerai/tree/master/Source/MCPServer"
click node_mcp_client "https://github.com/gustavoeenriquez/makerai/tree/master/Source/MCPClient"
click node_a2a "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents"
click node_skills "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools"
click node_production "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools"
click node_telemetry "https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools"
click node_chat_ui "https://github.com/gustavoeenriquez/makerai/tree/master/Source/ChatUI"

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_chat,node_connectors,node_user toneBlue
class node_embeddings,node_vector_rag,node_graph_rag,node_memory toneAmber
class node_agents_core,node_orchestration toneMint
class node_chattools,node_mcp,node_mcp_client,node_a2a,node_skills toneRose
class node_production,node_telemetry,node_chat_ui,node_llm_provider,node_tool_services toneIndigo
```

## Components

### Chat and media

- [Provider chat](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Chat): `Source/Chat`
- [Universal Connector](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Chat): `Source/Chat`

### Retrieval and memory

- [Embeddings](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Embeddings): `Source/Embeddings`
- [Vector RAG](https://github.com/gustavoeenriquez/makerai/tree/master/Source/RAG): `Source/RAG`
- [Graph RAG](https://github.com/gustavoeenriquez/makerai/tree/master/Source/RAG): `Source/RAG`
- [Persistent memory](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Memory): `Source/Memory`

### Agents and orchestration

- [Agent graphs](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents): `Source/Agents`
- [Graph orchestration](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents): `Source/Agents`

### Tools and integrations

- [ChatTools](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools): `Source/Tools`
- [MCP servers and clients](https://github.com/gustavoeenriquez/makerai/tree/master/Source/MCPServer): `Source/MCPServer`
- [MCP client](https://github.com/gustavoeenriquez/makerai/tree/master/Source/MCPClient): `Source/MCPClient`
- [A2A](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Agents): `Source/Agents`
- [Skills](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools): `Source/Tools`

### Production and interfaces

- [Guardrails and evals](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools): `Source/Tools`
- [OpenTelemetry](https://github.com/gustavoeenriquez/makerai/tree/master/Source/Tools): `Source/Tools`
- [FMX chat UI](https://github.com/gustavoeenriquez/makerai/tree/master/Source/ChatUI): `Source/ChatUI`

### Other components

- **Application user**
- **LLM providers**
- **External tool services**

## Connections

- Application user → Provider chat: asks
- Provider chat → Universal Connector: selects provider
- Universal Connector → LLM providers: calls provider
- Provider chat → ChatTools: uses tools
- ChatTools → External tool services: accesses capabilities
- Application user → Agent graphs: starts agent
- Agent graphs → Graph orchestration: runs graph
- Application user → Vector RAG: queries
- Application user → Graph RAG: queries
- Embeddings → Vector RAG: supports retrieval
- Agent graphs → Persistent memory: uses memory
- MCP client → MCP servers and clients: consumes tools
- Agent graphs → A2A: exposes or calls agents
- Agent graphs → Skills: loads instructions
- Provider chat → Guardrails and evals: applies guardrails
- Agent graphs → OpenTelemetry: traces execution
- Application user → FMX chat UI: uses interface
