How kali-arthur/mon-ia works
Blad is a personal AI assistant exposed through an authenticated FastAPI service, with chat, voice, memory, desktop control, cybersecurity, vision, and avatar route families. The main demonstrated workflow is an authenticated chat request: intent and context are processed, a response is generated, and the exchange is saved. Voice has both API and local pipeline entry points. Several route implementations are unsampled, so their documented-by-routing capabilities are shown without speculative internal links; the web interface appears to be an unmodified starter and is omitted.
Main entry points: chat.py Chat endpoint · server.py FastAPI server · pipeline.py Voice pipeline · voice.py Voice endpoints
Components 34
API and access
- FastAPI server
api/server.py - JWT authentication
api/auth.py - Chat endpoint
api/routes/chat.py - Memory endpoints
api/routes/memory.py - Voice endpoints
api/routes/voice.py - Cyber endpoints
api/routes/cyber.py - Vision endpoints
api/routes/vision.py - Avatar endpoints
api/routes/avatar.py - Desktop endpoints
api/routes/desktop.py - Execution endpoint
api/routes/execute.py
Assistant and memory
- Assistant reasoning
brain/llm.py - Intent detection
brain/intent.py - Prompt building
brain/prompt.py - Emotion detection
brain/emotion.py - Response formatting
brain/formatter.py - Conversation learning
brain/learner.py - Web search
brain/search.py - Long-term memory
memory/long_term.py - Semantic memory
memory/semantic.py - Short-term memory
memory/short_term.py
Voice and perception
- Voice pipeline
voice/pipeline.py - Wake-word pipeline
voice/auto_pipeline.py - Speech recognition
voice/stt.py - Speech synthesis
voice/tts.py - Wake-word detection
voice/wake_word.py - Camera capture
vision/camera.py - Face recognition
vision/face_id.py - Scene understanding
vision/scene.py - Avatar rendering
avatar/face_engine.py - Avatar expressions
avatar/expressions.py - Lip synchronization
avatar/lip_sync.py
Actions and security
- Cybersecurity tools
cyber/scanner.py - Desktop control
executor/desktop.py
Other components
- API client
Connections 45
- API client → FastAPI server: sends requests
- FastAPI server → Chat endpoint: routes to
api/server.py - FastAPI server → Memory endpoints: routes to
api/server.py - FastAPI server → Voice endpoints: routes to
api/server.py - FastAPI server → Cyber endpoints: routes to
api/server.py - FastAPI server → Vision endpoints: routes to
api/server.py - FastAPI server → Avatar endpoints: routes to
api/server.py - FastAPI server → Desktop endpoints: routes to
api/server.py - FastAPI server → Execution endpoint: routes to
api/server.py - Chat endpoint → JWT authentication: requires token
api/routes/chat.py - Memory endpoints → JWT authentication: requires token
api/routes/memory.py - Voice endpoints → JWT authentication: requires token
api/routes/voice.py - Chat endpoint → Intent detection: detects intent
api/routes/chat.py - Chat endpoint → Prompt building: builds messages
api/routes/chat.py - Chat endpoint → Assistant reasoning: requests response
api/routes/chat.py - Chat endpoint → Emotion detection: detects emotion
api/routes/chat.py - Chat endpoint → Response formatting: formats response
- Chat endpoint → Conversation learning: learns exchange
api/routes/chat.py - Chat endpoint → Web search: searches web
api/routes/chat.py - Chat endpoint → Long-term memory: stores exchange
api/routes/chat.py - Memory endpoints → Long-term memory: reads and writes
api/routes/memory.py - Prompt building → Long-term memory: uses history
brain/prompt.py - Conversation learning → Long-term memory: uses stored memory
brain/learner.py - Voice endpoints → Speech recognition: transcribes audio
api/routes/voice.py - Voice endpoints → Speech synthesis: synthesizes audio
api/routes/voice.py - Voice endpoints → Voice pipeline: starts listening
api/routes/voice.py - Voice pipeline → Speech recognition: transcribes speech
voice/pipeline.py - Voice pipeline → Prompt building: builds messages
voice/pipeline.py - Voice pipeline → Assistant reasoning: requests response
voice/pipeline.py - Voice pipeline → Speech synthesis: speaks response
voice/pipeline.py - Voice pipeline → Long-term memory: saves exchange
voice/pipeline.py - Voice pipeline → Short-term memory: uses context
voice/pipeline.py - Voice pipeline → Semantic memory: stores embedding
voice/pipeline.py - Wake-word pipeline → Wake-word detection: starts listening
voice/auto_pipeline.py - Wake-word pipeline → Speech recognition: transcribes speech
voice/auto_pipeline.py - Wake-word pipeline → Assistant reasoning: requests response
voice/auto_pipeline.py - Wake-word pipeline → Speech synthesis: speaks response
voice/auto_pipeline.py - Avatar rendering → Avatar expressions: uses expressions
avatar/face_engine.py - Avatar rendering → Lip synchronization: uses lip sync
avatar/face_engine.py - Desktop endpoints → Desktop control: controls desktop
api/routes/desktop.py - Vision endpoints → Camera capture: uses camera
- Vision endpoints → Face recognition: uses face recognition
- Vision endpoints → Scene understanding: uses scene analysis
- Cyber endpoints → Cybersecurity tools: dispatches security tools
- Execution endpoint → Desktop control: dispatches actions