# sunkinani8-max/jarvis_new_tutorial architecture

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

- Interactive diagram: https://gitdiagram.com/sunkinani8-max/jarvis_new_tutorial
- Repository: https://github.com/sunkinani8-max/jarvis_new_tutorial

## Overview

JARVIS is a LiveKit-hosted voice assistant: a user speaks through a real-time session, the agent reasons with a configured realtime model and may invoke web-search or browser tools, then responds through the voice session. Browser automation covers page inspection, navigation, interaction, tabs and screenshots; web search is a separate capability. The sampled source shows the agent’s model and tool configuration and the implementations of search and browser operations. Additional deployment and simulation capabilities are documented but are not runtime components in this graph.

Main entry points: [`src/agent.py`](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/agent.py) (Assistant), [`src/tools.py`](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/tools.py) (Web search), [`src/browser_tools.py`](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/browser_tools.py) (Browser tool API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_voice["Voice runtime"]
  node_livekit["LiveKit session"]
  node_agent["Agent session<br/>[agent.py]"]
end

subgraph group_assistant["Assistant reasoning"]
  node_assistant_core["Assistant<br/>[agent.py]"]
  node_realtime_model["Realtime model"]
end

subgraph group_capabilities["Tools and browsing"]
  node_search["Web search<br/>[tools.py]"]
  node_browser_tools["Browser tool API<br/>[browser_tools.py]"]
  node_browser_manager["Browser manager<br/>[browser_tools.py]"]
end

node_user(("Voice user"))
node_duckduckgo["DuckDuckGo search"]
node_playwright["Playwright browser"]
node_web["Web pages"]

node_user -->|"speaks through"| node_livekit
node_livekit -->|"routes session"| node_agent
node_agent -->|"starts with"| node_assistant_core
node_assistant_core -->|"configures"| node_realtime_model
node_assistant_core -->|"registers tool"| node_search
node_assistant_core -->|"registers tools"| node_browser_tools
node_search -->|"queries"| node_duckduckgo
node_browser_tools -->|"delegates actions"| node_browser_manager
node_browser_manager -->|"controls browser"| node_playwright
node_playwright -.->|"loads and interacts"| node_web
node_agent -->|"responds through"| node_livekit
node_livekit -->|"returns voice"| node_user

click node_agent "https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/agent.py"
click node_assistant_core "https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/agent.py"
click node_search "https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/tools.py"
click node_browser_tools "https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/browser_tools.py"
click node_browser_manager "https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/browser_tools.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_livekit,node_agent,node_user,node_playwright toneBlue
class node_assistant_core,node_realtime_model toneAmber
class node_search,node_browser_tools,node_browser_manager toneMint
class node_duckduckgo,node_web toneIndigo
```

## Components

### Voice runtime

- **LiveKit session**
- [Agent session](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/agent.py): `src/agent.py`

### Assistant reasoning

- [Assistant](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/agent.py): `src/agent.py`
- **Realtime model**

### Tools and browsing

- [Web search](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/tools.py): `src/tools.py`
- [Browser tool API](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/browser_tools.py): `src/browser_tools.py`
- [Browser manager](https://github.com/sunkinani8-max/jarvis_new_tutorial/blob/main/src/browser_tools.py): `src/browser_tools.py`

### Other components

- **Voice user**
- **DuckDuckGo search**
- **Playwright browser**
- **Web pages**

## Connections

- Voice user → LiveKit session: speaks through (evidence: `README.md`)
- LiveKit session → Agent session: routes session (evidence: `README.md`)
- Agent session → Assistant: starts with (evidence: `src/agent.py`)
- Assistant → Realtime model: configures (evidence: `src/agent.py`)
- Assistant → Web search: registers tool (evidence: `src/agent.py`)
- Assistant → Browser tool API: registers tools (evidence: `src/agent.py`)
- Web search → DuckDuckGo search: queries (evidence: `src/tools.py`)
- Browser tool API → Browser manager: delegates actions (evidence: `src/browser_tools.py`)
- Browser manager → Playwright browser: controls browser (evidence: `src/browser_tools.py`)
- Playwright browser → Web pages: loads and interacts
- Agent session → LiveKit session: responds through (evidence: `README.md`)
- LiveKit session → Voice user: returns voice (evidence: `README.md`)
