How tom-platform/tom-server-python works
Main Components
a. Core Server Components:
• WebSocket Server (primary communication hub)
• Base Component System
• Configuration Management
• Database Layer
b. Service Layer:
• Running Service
• Martial Arts Service
• PandaLens Service
• Memory Assistance Service
• Learning Service
• Dashboard Service
• Context Service
c. API Integration Layer:
• Cloud Vision API
• Fitbit Web API
• Geoapify API
• Google Maps API
• HoloLens API
• LangChain LLM APIs (OpenAI, Gemini, Anthropic)
• Local Services (CLIP, LLM, Vector DB)
d. Processors:
• YOLOv8 Object Detection
• Background Audio Classifier
• Emotion Classifier
• Whisper Speech Recognition
e. Data Management:
• Protocol Buffers (DataFormat)
• Database Models
• Memory Management
[Client Layer]
[Communication Layer (WebSocket)]
[Service Layer]
[Processing Layer]
[API Integration Layer]
[Data Layer]
Connection Types
• Double lines: High-bandwidth connections (e.g., video streams)
Important Details
• WebSocket communication on port 8090
• Protocol Buffer message types between components
• Database table relationships
• External API authentication points
• Real-time processing pipelines
• Service state management
Subdiagrams
• Running Service Architecture
• Martial Arts Service Flow
• PandaLens Service Pipeline
• Memory Assistance System
Notes
• Real-time nature of the system
• Scalability points
• Configuration dependencies
• Security boundaries
• Error handling paths
Remember to include documentation references and link to the DeveloperGuide.md for detailed implementation guidelines.