How vertexstudio/bioma works
Main System Components
a) Core Components (Central Layer):
• Bioma Actor System (bioma_actor)
• Behavior Tree Engine (bioma_behavior)
• LLM Integration Layer (bioma_llm)
• Tool System (bioma_tool)
b) Infrastructure Layer (Bottom):
• SurrealDB Database
• File Storage System
• External LLM Services (Ollama)
• Reranking Service
c) Interface Layer (Top):
• REST API Endpoints
• WebSocket Connections
• JavaScript Integration (bioma_js)
Component Relationships
a) Data Flow Paths:
• Client → REST API → Actor System
• Actor System ↔ Behavior Tree Engine
• Actor System ↔ LLM Integration Layer
• LLM Integration Layer ↔ External LLM Services
• All Components ↔ SurrealDB
b) Integration Points:
• Tool System → External Services
• LLM Integration Layer → Embeddings Service
• LLM Integration Layer → Reranking Service
Detailed Component Breakdown
For each major component, include sub-components:
a) Bioma Actor:
• Actor Engine
• Message System
• Object Store
• Factory System
b) Behavior Tree:
• Actions
• Composites
• Decorators
• Tree Manager
c) LLM Integration:
• Chat Interface
• Embeddings Manager
• Indexer
• Retriever
• RAG System
• PDF Analyzer
d) Tool System:
• Echo Tool
• Fetch Tool
• Memory Tool
• Transport Layer
Technical Details
Annotations for:
• REST API endpoints (/upload, /index, /retrieve, /ask, etc.)
• Database schemas (reference sql/ directories)
• File storage patterns
• Configuration points
• Scaling components
The extensibility points for tools and behaviors
Keep the abstraction level high enough to be understandable but detailed enough to show the sophisticated integration of behavior trees, utility AI, and LLMs in the context of a multi-agent system.