# jeev1992/fintech-agent-observability-evaluation architecture

> Architecture diagram of the GitHub repository jeev1992/fintech-agent-observability-evaluation, 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/jeev1992/fintech-agent-observability-evaluation
- Repository: https://github.com/jeev1992/fintech-agent-observability-evaluation

## Overview

SecureBank’s multi-agent customer-support system is the product; the A–D modules are workshop hardening layers around it. A customer query enters the supervisor, which classifies and routes it to policy RAG, account lookup, or escalation, then returns a response. The workshop adds tracing, quality evaluation, safety checks, and cost measurement. README and sampled excerpts establish the main workflow and several module-to-agent links; unsampled implementation details are represented only where documented, and the guarded-pipeline link is marked unverified.

Main entry points: [`project/fintech_support_agent.py`](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py) (Agent Runtime), [`module_b_evaluation`](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_b_evaluation) (Evaluation Workflows), [`module_c_guardrails`](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_c_guardrails) (Guardrail Workflows), [`module_a_observability`](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_a_observability) (Tracing Exercises)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agent["Support Agent"]
  node_agent_builder["Agent Runtime"]
  node_supervisor["Supervisor"]
  node_policy_agent["Policy Agent"]
  node_account_agent["Account Agent"]
  node_escalation_agent["Escalation Agent"]
  node_response["Agent Response"]
end

subgraph group_knowledge["Knowledge Sources"]
  node_policy_docs["Policy Documents"]
  node_chroma[("Chroma Retrieval")]
  node_mock_accounts[("Mock Accounts")]
end

subgraph group_observability["Observability"]
  node_module_a["Tracing Exercises"]
  node_langsmith["LangSmith"]
end

subgraph group_evaluation["Evaluation"]
  node_module_b["Evaluation Workflows"]
  node_eval_dataset["Evaluation Dataset<br/>[eval_dataset.py]"]
  node_deepeval["DeepEval"]
end

subgraph group_hardening["Safety And Cost"]
  node_module_c["Guardrail Workflows"]
  node_presidio["Presidio PII"]
  node_guardrails_ai["Guardrails AI"]
  node_module_d["Cost Workflows"]
  node_tiktoken["Token Counter"]
end

node_customer(("Customer"))

node_customer -->|"submits query"| node_agent_builder
node_agent_builder -->|"builds workflow"| node_supervisor
node_supervisor -->|"routes policy"| node_policy_agent
node_supervisor -->|"routes account"| node_account_agent
node_supervisor -->|"routes complaint"| node_escalation_agent
node_policy_agent -->|"retrieves context"| node_chroma
node_policy_docs -->|"indexes policies"| node_chroma
node_account_agent -->|"looks up account"| node_mock_accounts
node_agent_builder -->|"returns response"| node_response
node_module_a -->|"builds and invokes"| node_agent_builder
node_module_a -->|"traces runs"| node_langsmith
node_module_b -->|"evaluates runs"| node_agent_builder
node_module_b -->|"loads dataset"| node_eval_dataset
node_eval_dataset -->|"creates examples"| node_langsmith
node_module_b -->|"measures quality"| node_deepeval
node_module_c -.->|"runs guarded pipeline"| node_agent_builder
node_module_c -->|"detects and redacts"| node_presidio
node_module_c -->|"validates outputs"| node_guardrails_ai
node_module_d -->|"measures configurations"| node_agent_builder
node_module_d -->|"counts tokens"| node_tiktoken

click node_agent_builder "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_supervisor "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_policy_agent "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_account_agent "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_escalation_agent "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_response "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_policy_docs "https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/project/documents"
click node_chroma "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_mock_accounts "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py"
click node_module_a "https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_a_observability"
click node_module_b "https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_b_evaluation"
click node_eval_dataset "https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/module_b_evaluation/eval_dataset.py"
click node_module_c "https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_c_guardrails"
click node_module_d "https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_d_cost_optimization"

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_agent_builder,node_supervisor,node_policy_agent,node_account_agent,node_escalation_agent,node_response toneBlue
class node_policy_docs,node_chroma,node_mock_accounts toneAmber
class node_module_a,node_langsmith toneMint
class node_module_b,node_eval_dataset,node_deepeval toneRose
class node_module_c,node_presidio,node_guardrails_ai,node_module_d,node_tiktoken,node_customer toneIndigo
```

## Components

### Support Agent

- [Agent Runtime](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Supervisor](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Policy Agent](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Account Agent](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Escalation Agent](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Agent Response](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`

### Knowledge Sources

- [Policy Documents](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/project/documents): `project/documents`
- [Chroma Retrieval](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`
- [Mock Accounts](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/project/fintech_support_agent.py): `project/fintech_support_agent.py`

### Observability

- [Tracing Exercises](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_a_observability): `module_a_observability`
- **LangSmith**

### Evaluation

- [Evaluation Workflows](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_b_evaluation): `module_b_evaluation`
- [Evaluation Dataset](https://github.com/jeev1992/fintech-agent-observability-evaluation/blob/master/module_b_evaluation/eval_dataset.py): `module_b_evaluation/eval_dataset.py`
- **DeepEval**

### Safety And Cost

- [Guardrail Workflows](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_c_guardrails): `module_c_guardrails`
- **Presidio PII**
- **Guardrails AI**
- [Cost Workflows](https://github.com/jeev1992/fintech-agent-observability-evaluation/tree/master/module_d_cost_optimization): `module_d_cost_optimization`
- **Token Counter**

### Other components

- **Customer**

## Connections

- Customer → Agent Runtime: submits query (evidence: `README.md`)
- Agent Runtime → Supervisor: builds workflow (evidence: `project/fintech_support_agent.py`)
- Supervisor → Policy Agent: routes policy (evidence: `README.md`)
- Supervisor → Account Agent: routes account (evidence: `README.md`)
- Supervisor → Escalation Agent: routes complaint (evidence: `README.md`)
- Policy Agent → Chroma Retrieval: retrieves context (evidence: `README.md`)
- Policy Documents → Chroma Retrieval: indexes policies (evidence: `README.md`)
- Account Agent → Mock Accounts: looks up account (evidence: `README.md`)
- Agent Runtime → Agent Response: returns response (evidence: `project/fintech_support_agent.py`)
- Tracing Exercises → Agent Runtime: builds and invokes (evidence: `module_a_observability/demo.py`)
- Tracing Exercises → LangSmith: traces runs (evidence: `README.md`)
- Evaluation Workflows → Agent Runtime: evaluates runs (evidence: `module_b_evaluation/demo.py`)
- Evaluation Workflows → Evaluation Dataset: loads dataset (evidence: `module_b_evaluation/demo.py`)
- Evaluation Dataset → LangSmith: creates examples (evidence: `module_b_evaluation/eval_dataset.py`)
- Evaluation Workflows → DeepEval: measures quality (evidence: `README.md`)
- Guardrail Workflows → Agent Runtime: runs guarded pipeline (evidence: `module_c_guardrails/demo.py`)
- Guardrail Workflows → Presidio PII: detects and redacts (evidence: `README.md`)
- Guardrail Workflows → Guardrails AI: validates outputs (evidence: `README.md`)
- Cost Workflows → Agent Runtime: measures configurations (evidence: `module_d_cost_optimization/demo.py`)
- Cost Workflows → Token Counter: counts tokens (evidence: `module_d_cost_optimization/demo.py`)
