# sharwan-rao/final-capstone- architecture

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

- Interactive diagram: https://gitdiagram.com/sharwan-rao/final-capstone-
- Repository: https://github.com/sharwan-rao/final-capstone-

## Overview

Agent Playground is a desktop-capable web application for configuring agents, skills, model settings, and multi-agent workflows, then running and inspecting conversations or benchmarks. Users enter through the Vue interface; workflow runs reach the FastAPI routes and are executed by one of several orchestration implementations, with traces and results shown in the playground. The backend also persists configuration and provides skill synchronization. Source excerpts and the index support the backend call links; the frontend-to-backend HTTP connection is shown as unverified because its implementation was not excerpted.

Main entry points: [`Multi-Agent-Playground-main/backend/app/routes.py`](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/routes.py) (API Routes), [`Multi-Agent-Playground-main/frontend/src/App.vue`](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/App.vue) (Application Shell), [`Multi-Agent-Playground-main/backend/app/runtime.py`](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/runtime.py) (Agent Runtime), [`Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py`](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py) (Graph Adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User Interface"]
  node_app["Application Shell<br/>[App.vue]"]
  node_agents_ui["Agent Manager<br/>[AgentManager.vue]"]
  node_workflows_ui["Workflow Manager"]
  node_playground_ui["Playground<br/>[PlaygroundPage.vue]"]
  node_benchmark_ui["Benchmarking<br/>[BenchmarkPage.vue]"]
  node_settings_ui["Settings<br/>[SettingsPage.vue]"]
  node_graph_view["Workflow Graph<br/>[GraphViewer.vue]"]
end

subgraph group_api["API and Configuration"]
  node_api_client["API Client<br/>[api.js]"]
  node_api_routes["API Routes<br/>[routes.py]"]
  node_schemas["Data Schemas<br/>[schemas.py]"]
  node_store[("Application Store<br/>[store.py]")]
  node_settings["Settings Bridge<br/>[settings_bridge.py]"]
end

subgraph group_execution["Workflow Execution"]
  node_runtime["Agent Runtime<br/>[runtime.py]"]
  node_adapter["Graph Adapter"]
  node_peer["Peer Handoff<br/>[workflow.py]"]
  node_planner["Planner Executor<br/>[workflow.py]"]
  node_router["Router Specialists<br/>[workflow.py]"]
  node_single["Single Agent Chat<br/>[workflow.py]"]
  node_supervisor["Dynamic Supervisor<br/>[workflow.py]"]
end

subgraph group_integration["Tools and Skills"]
  node_skill_client["SkillHub Client<br/>[skillhub_client.py]"]
end

node_user(("User"))
node_skillhub{{"SkillHub"}}

node_user -->|"uses"| node_app
node_app -->|"shows"| node_agents_ui
node_app -->|"shows"| node_workflows_ui
node_app -->|"shows"| node_playground_ui
node_app -->|"shows"| node_benchmark_ui
node_app -->|"shows"| node_settings_ui
node_playground_ui -->|"renders"| node_graph_view
node_app -->|"requests"| node_api_client
node_agents_ui -->|"installs skills"| node_api_client
node_api_client -.->|"HTTP requests"| node_api_routes
node_api_routes -->|"reads and writes"| node_store
node_api_routes -->|"applies settings"| node_settings
node_api_routes -->|"fetches skills"| node_skill_client
node_skill_client -.->|"fetches catalog"| node_skillhub
node_api_routes -->|"runs workflows"| node_runtime
node_api_routes -->|"dispatches"| node_peer
node_api_routes -->|"dispatches"| node_planner
node_api_routes -->|"dispatches"| node_router
node_api_routes -->|"dispatches"| node_single
node_api_routes -->|"dispatches"| node_supervisor
node_peer -->|"uses"| node_runtime
node_planner -->|"uses"| node_runtime
node_router -->|"uses"| node_runtime
node_single -->|"uses"| node_runtime
node_supervisor -->|"uses"| node_runtime
node_planner -->|"adapts graph"| node_adapter
node_router -->|"adapts graph"| node_adapter
node_single -->|"adapts graph"| node_adapter
node_supervisor -->|"adapts graph"| node_adapter
node_api_routes -->|"validates payloads"| node_schemas
node_adapter -->|"builds graph data"| node_schemas

click node_app "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/App.vue"
click node_agents_ui "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/AgentManager.vue"
click node_workflows_ui "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/WorkflowManager.vue"
click node_playground_ui "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/PlaygroundPage.vue"
click node_benchmark_ui "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/BenchmarkPage.vue"
click node_settings_ui "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/SettingsPage.vue"
click node_graph_view "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/GraphViewer.vue"
click node_api_client "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/api.js"
click node_api_routes "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/routes.py"
click node_schemas "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/schemas.py"
click node_store "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/store.py"
click node_settings "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/settings_bridge.py"
click node_runtime "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/runtime.py"
click node_adapter "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py"
click node_peer "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/peer_handoff/workflow.py"
click node_planner "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/planner_executor/workflow.py"
click node_router "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/router_specialists/workflow.py"
click node_single "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/single_agent_chat/workflow.py"
click node_supervisor "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/supervisor_dynamic/workflow.py"
click node_skill_client "https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/skillhub_client.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_app,node_agents_ui,node_workflows_ui,node_playground_ui,node_benchmark_ui,node_settings_ui,node_graph_view,node_user toneBlue
class node_api_client,node_api_routes,node_schemas,node_store,node_settings toneAmber
class node_runtime,node_adapter,node_peer,node_planner,node_router,node_single,node_supervisor toneMint
class node_skill_client toneRose
class node_skillhub toneIndigo
```

## Components

### User Interface

- [Application Shell](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/App.vue): `Multi-Agent-Playground-main/frontend/src/App.vue`
- [Agent Manager](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/AgentManager.vue): `Multi-Agent-Playground-main/frontend/src/components/AgentManager.vue`
- [Workflow Manager](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/WorkflowManager.vue): `Multi-Agent-Playground-main/frontend/src/components/WorkflowManager.vue`
- [Playground](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/PlaygroundPage.vue): `Multi-Agent-Playground-main/frontend/src/pages/PlaygroundPage.vue`
- [Benchmarking](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/BenchmarkPage.vue): `Multi-Agent-Playground-main/frontend/src/pages/BenchmarkPage.vue`
- [Settings](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/pages/SettingsPage.vue): `Multi-Agent-Playground-main/frontend/src/pages/SettingsPage.vue`
- [Workflow Graph](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/components/GraphViewer.vue): `Multi-Agent-Playground-main/frontend/src/components/GraphViewer.vue`

### API and Configuration

- [API Client](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/frontend/src/api.js): `Multi-Agent-Playground-main/frontend/src/api.js`
- [API Routes](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/routes.py): `Multi-Agent-Playground-main/backend/app/routes.py`
- [Data Schemas](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/schemas.py): `Multi-Agent-Playground-main/backend/app/schemas.py`
- [Application Store](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/store.py): `Multi-Agent-Playground-main/backend/app/store.py`
- [Settings Bridge](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/settings_bridge.py): `Multi-Agent-Playground-main/backend/app/settings_bridge.py`

### Workflow Execution

- [Agent Runtime](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/runtime.py): `Multi-Agent-Playground-main/backend/app/runtime.py`
- [Graph Adapter](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py): `Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py`
- [Peer Handoff](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/peer_handoff/workflow.py): `Multi-Agent-Playground-main/backend/app/workflows/peer_handoff/workflow.py`
- [Planner Executor](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/planner_executor/workflow.py): `Multi-Agent-Playground-main/backend/app/workflows/planner_executor/workflow.py`
- [Router Specialists](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/router_specialists/workflow.py): `Multi-Agent-Playground-main/backend/app/workflows/router_specialists/workflow.py`
- [Single Agent Chat](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/single_agent_chat/workflow.py): `Multi-Agent-Playground-main/backend/app/workflows/single_agent_chat/workflow.py`
- [Dynamic Supervisor](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/workflows/supervisor_dynamic/workflow.py): `Multi-Agent-Playground-main/backend/app/workflows/supervisor_dynamic/workflow.py`

### Tools and Skills

- [SkillHub Client](https://github.com/sharwan-rao/final-capstone-/blob/main/Multi-Agent-Playground-main/backend/app/skillhub_client.py): `Multi-Agent-Playground-main/backend/app/skillhub_client.py`

### Other components

- **User**
- **SkillHub**

## Connections

- User → Application Shell: uses (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Application Shell → Agent Manager: shows (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Application Shell → Workflow Manager: shows (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Application Shell → Playground: shows (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Application Shell → Benchmarking: shows (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Application Shell → Settings: shows (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Playground → Workflow Graph: renders (evidence: `Multi-Agent-Playground-main/frontend/src/pages/PlaygroundPage.vue`)
- Application Shell → API Client: requests (evidence: `Multi-Agent-Playground-main/frontend/src/App.vue`)
- Agent Manager → API Client: installs skills (evidence: `Multi-Agent-Playground-main/frontend/src/components/AgentManager.vue`)
- API Client → API Routes: HTTP requests
- API Routes → Application Store: reads and writes (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Settings Bridge: applies settings (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → SkillHub Client: fetches skills (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- SkillHub Client → SkillHub: fetches catalog
- API Routes → Agent Runtime: runs workflows (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Peer Handoff: dispatches (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Planner Executor: dispatches (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Router Specialists: dispatches (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Single Agent Chat: dispatches (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- API Routes → Dynamic Supervisor: dispatches (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- Peer Handoff → Agent Runtime: uses (evidence: `Multi-Agent-Playground-main/backend/app/workflows/peer_handoff/workflow.py`)
- Planner Executor → Agent Runtime: uses (evidence: `Multi-Agent-Playground-main/backend/app/workflows/planner_executor/workflow.py`)
- Router Specialists → Agent Runtime: uses (evidence: `Multi-Agent-Playground-main/backend/app/workflows/router_specialists/workflow.py`)
- Single Agent Chat → Agent Runtime: uses (evidence: `Multi-Agent-Playground-main/backend/app/workflows/single_agent_chat/workflow.py`)
- Dynamic Supervisor → Agent Runtime: uses (evidence: `Multi-Agent-Playground-main/backend/app/workflows/supervisor_dynamic/workflow.py`)
- Planner Executor → Graph Adapter: adapts graph (evidence: `Multi-Agent-Playground-main/backend/app/workflows/planner_executor/workflow.py`)
- Router Specialists → Graph Adapter: adapts graph (evidence: `Multi-Agent-Playground-main/backend/app/workflows/router_specialists/workflow.py`)
- Single Agent Chat → Graph Adapter: adapts graph (evidence: `Multi-Agent-Playground-main/backend/app/workflows/single_agent_chat/workflow.py`)
- Dynamic Supervisor → Graph Adapter: adapts graph (evidence: `Multi-Agent-Playground-main/backend/app/workflows/supervisor_dynamic/workflow.py`)
- API Routes → Data Schemas: validates payloads (evidence: `Multi-Agent-Playground-main/backend/app/routes.py`)
- Graph Adapter → Data Schemas: builds graph data (evidence: `Multi-Agent-Playground-main/backend/app/workflows/langgraph_adapter.py`)
