@@ -106,62 +106,62 @@ graph TB
106106 end
107107
108108 subgraph "📊 Observability"
109- Agents --> Arize[Arize/Phoenix <br/>• 97% Traced<br/>• 10+ Scorers]
110- Postgres --> Arize
109+ Agents --> Langfuse[Langfuse Traces <br/>• 97% Traced<br/>• 10+ Scorers]
110+ Postgres --> Langfuse
111111 end
112112
113113 UI --> App
114114 App --> Agents
115115
116- style Client fill:#e1f5fe
117- style Arize fill:#f3e5f5
118- style UI fill:#e8f5e9
116+ style Client fill:#e8f5e9,stroke:#ff9800
117+ style Langfuse fill:#e8f5e9,stroke:#ff9800
118+ style UI fill:#e8f5e9,stroke:#64b5f6
119119```
120120
121121## 📊 ** System Flowchart**
122122
123123``` mermaid
124124flowchart TD
125- A[app/chat] -->|components|< B[chat-header.tsx]
126- A -->|components|< C[chat-messages.tsx]
127- A -->|components|< D[chat-input.tsx]
128- A -->|config|< E[agents.ts]
129- A -->|providers|< F[chat-context.tsx]
125+ A[app/chat] -->|components| B[chat-header.tsx]
126+ A -->|components| C[chat-messages.tsx]
127+ A -->|components| D[chat-input.tsx]
128+ A -->|config| E[agents.ts]
129+ A -->|providers| F[chat-context.tsx]
130130
131- G[app/networks] -->|components|< H[network-header.tsx]
132- G -->|components|< I[network-messages.tsx]
133- G -->|config|< J[networks.ts]
134- G -->|providers|< K[network-context.tsx]
131+ G[app/networks] -->|components| H[network-header.tsx]
132+ G -->|components| I[network-messages.tsx]
133+ G -->|config| J[networks.ts]
134+ G -->|providers| K[network-context.tsx]
135135
136- L[app/workflows] -->|components|< M[workflow-canvas.tsx]
137- L -->|components|< N[workflow-header.tsx]
138- L -->|config|< O[workflows.ts]
139- L -->|providers|< P[workflow-context.tsx]
136+ L[app/workflows] -->|components| M[workflow-canvas.tsx]
137+ L -->|components| N[workflow-header.tsx]
138+ L -->|config| O[workflows.ts]
139+ L -->|providers| P[workflow-context.tsx]
140140
141- Q[app/dashboard] -->|components|< R[dashboard.tsx]
142- Q -->|components|< S[agent-list.tsx]
143- Q -->|providers|< T[dashboard-context.tsx]
141+ Q[app/dashboard] -->|components| R[dashboard.tsx]
142+ Q -->|components| S[agent-list.tsx]
143+ Q -->|providers| T[dashboard-context.tsx]
144144
145- U[lib] -->|hooks|< V[use-mastra.ts]
146- U -->|hooks|< W[use-dashboard-queries.ts]
147- U -->|utils|< X[utils.ts]
148- U -->|client|< Y[mastra-client.ts]
145+ U[lib] -->|hooks| V[use-mastra.ts]
146+ U -->|hooks| W[use-dashboard-queries.ts]
147+ U -->|utils| X[utils.ts]
148+ U -->|client| Y[mastra-client.ts]
149149
150- Z[src/types] -->|api|< AA[mastra-api.ts]
150+ Z[src/types] -->|api| AA[mastra-api.ts]
151151
152- AB[src/mastra/index.ts] -->|imports|< AC[agents/*]
153- AB -->|imports|< AD[tools/*]
154- AB -->|imports|< AE[workflows/*]
155- AB -->|imports|< AF[networks/*]
156- AB -->|imports|< AG[config/*]
152+ AB[src/mastra/index.ts] -->|imports| AC[agents/*]
153+ AB -->|imports| AD[tools/*]
154+ AB -->|imports| AE[workflows/*]
155+ AB -->|imports| AF[networks/*]
156+ AB -->|imports| AG[config/*]
157157
158158 style A fill:#e8f5e9,stroke:#81c784
159159 style G fill:#e8f5e9,stroke:#81c784
160160 style L fill:#e8f5e9,stroke:#81c784
161161 style Q fill:#e8f5e9,stroke:#81c784
162162 style U fill:#e3f2fd,stroke:#64b5f6
163163 style Z fill:#e3f2fd,stroke:#64b5f6
164- style AB fill:#fff3e0 ,stroke:#ff9800
164+ style AB fill:#000000 ,stroke:#ff9800
165165```
166166
167167## 🔄 ** RAG Pipeline (Production-Grade)**
@@ -553,11 +553,11 @@ AgentStack
553553
554554| Env Var | Purpose | Required |
555555| ------------------------------ | ------------------------------------- | ------------- |
556- | ` PG_CONNECTION ` | Postgres + PgVector RAG | ✅ |
556+ | ` SUPABASE ` | Postgres + PgVector RAG | ✅ |
557557| ` GOOGLE_GENERATIVE_AI_API_KEY` | Gemini LLM/Embeddings | ✅ |
558558| ` SERPAPI_API_KEY` | Search/News/Shopping (10+ tools) | ✅ |
559559| ` POLYGON_API_KEY` | Stock/Crypto quotes/aggs/fundamentals | ✅ |
560- | ` PHOENIX_ENDPOINT ` | Arize/Phoenix tracing | Observability |
560+ | ` LANGFUSE_BASE_URL ` | Langfuse tracing | Observability |
561561
562562** Full** : ` .env.example` + ` src/mastra/config/AGENTS.md`
563563
@@ -583,7 +583,7 @@ npx vitest -t "polygon" # Filter (e.g., financial tools)
583583# # 📊 **Observability (Production-Ready)**
584584
585585` ` ` bash
586- Arize/Phoenix Exporters:
586+ Langfuse Exporters:
587587├── Traces: 100% (spans/tools/agents)
588588├── Scorers: 10+ (diversity/quality/task-completion)
589589├── Metrics: Latency/errors/tool-calls
0 commit comments