How ravindra-y/athena-live works
Athena is a browser-based, full-duplex voice assistant. A user starts a session in the frontend, which streams microphone audio over WebSocket to the FastAPI bridge; the bridge runs the ADK agent against Gemini Live and relays audio, transcripts, tool actions, and results back to the UI. The agent supports Google Cloud help, Socratic learning, resource links, browser control, and generated visuals. The GCP and learning tools shown are placeholder responses, not live integrations. Edges reflect README statements and the supplied source/index; unsampled implementation details are omitted.
Main entry points: server.py WebSocket bridge · agent.py ADK agent · tools.py Assistant tools · visuals.py Visual generation
Components 18
Browser client
- Voice and UI client
frontend/main.js - PCM worklet
frontend/pcm-processor.js
Live session bridge
- WebSocket bridge
athena/server.py
Assistant capabilities
- ADK agent
athena/agent.py - Assistant persona
athena/persona.py - Assistant tools
athena/tools.py - GCP assistance
athena/tools.py - Learning tutor
athena/tools.py - Resource links
athena/tools.py
Visual generation
- Visual tool
athena/tools.py - Visual generation
athena/visuals.py - Generated assets
athena/visuals.py
Browser control
- Browser actions
athena/browser_tools.py
Other components
- User
- Gemini Live API
- Gemini image models
- Pollinations image service
- Websites and search
Connections 20
- User → Voice and UI client: speaks to
README.md - Voice and UI client → PCM worklet: loads worklet
frontend/main.js - Voice and UI client → WebSocket bridge: streams audio
README.md - WebSocket bridge → Voice and UI client: relays events
athena/server.py - WebSocket bridge → ADK agent: runs agent
athena/server.py - ADK agent → Gemini Live API: streams requests
README.md - ADK agent → Assistant persona: uses instructions
athena/agent.py - ADK agent → Assistant tools: registers tools
athena/agent.py - ADK agent → Browser actions: registers actions
athena/agent.py - Assistant tools → GCP assistance: provides
athena/tools.py - Assistant tools → Learning tutor: provides
athena/tools.py - Assistant tools → Resource links: provides
athena/tools.py - Assistant tools → Visual tool: provides
athena/tools.py - Visual tool → Visual generation: generates
athena/tools.py - WebSocket bridge → Visual generation: delivers results
athena/server.py - Visual generation → Generated assets: saves assets
athena/visuals.py - Visual generation → Gemini image models: tries image models
athena/visuals.py - Visual generation → Pollinations image service: tries fallback
athena/visuals.py - Browser actions → Websites and search: browses pages
athena/browser_tools.py - WebSocket bridge → Browser actions: closes browser
athena/server.py