How embeddedos-org/eai works
eAI is an embedded, on-device AI runtime with lightweight and industrial variants, model-format loaders, optional acceleration, platform adapters, and a BCI module. A user can invoke the CLI to run a configured agent: it registers built-in tools, then selects EAI-Min or initializes Framework services. The BCI pipeline separately reads device samples, preprocesses and buffers signals, decodes intents, and dispatches outputs. The graph also preserves documented model, deployment, connector, and update capabilities. Some subsystems are represented from the README and file tree; their internal links are omitted where source excerpts do not establish calls.
Main entry points: main.c Command line · pipeline.c Signal pipeline · agent.c EAI-Min agent · orchestrator.c Workflow orchestrator
Components 24
User entry
- Command line
cli/src/main.c
Shared runtime
- Shared contracts
common/include/eai/common.h - Built-in tools
common/src/tools_builtin.c - EIPC listener
common/src/eipc_listener.c
Inference and platforms
- EAI-Min agent
min/src/agent.c - Lightweight runtime
min/src/runtime.c - Inference router
min/src/router.c - Lightweight memory
min/src/memory_lite.c - Model loaders
formats/src/format_registry.c - GGUF loader
formats/src/gguf_loader.c - ONNX loader
formats/src/onnx_loader.c - Accelerator dispatch
accel/src/accel.c - CPU backend
accel/src/backend_cpu.c - Platform adapters
platform/src/platform.c
Industrial framework
- Workflow orchestrator
framework/src/orchestrator.c - Runtime manager
framework/src/runtime_manager.c - Industrial connectors
framework/src/connector_mqtt.c - Update manager
framework/src/update_manager.c
Brain-computer interface
- BCI devices
bci/src/device_manager.c - Signal pipeline
bci/src/pipeline.c - Signal processing
bci/src/signal.c - Intent decoders
bci/src/decoder_snn.c - Intent outputs
bci/src/output_log.c
Other components
- CLI user
Connections 21
- CLI user → Command line: invokes
- Command line → Built-in tools: registers
cli/src/main.c - Command line → Platform adapters: detects platform
cli/src/main.c - Command line → EAI-Min agent: runs agent
cli/src/main.c - Command line → Lightweight memory: initializes memory
cli/src/main.c - Command line → EIPC listener: starts listener
cli/src/main.c - Command line → Runtime manager: initializes manager
cli/src/main.c - Command line → Workflow orchestrator: initializes workflow
cli/src/main.c - EAI-Min agent → Lightweight runtime: runs inference
- EAI-Min agent → Built-in tools: uses tools
- EAI-Min agent → Lightweight memory: uses memory
- Inference router → Lightweight runtime: routes locally
- Model loaders → GGUF loader: dispatches GGUF
- Model loaders → ONNX loader: dispatches ONNX
- Accelerator dispatch → CPU backend: dispatches compute
- Workflow orchestrator → Runtime manager: orchestrates
- Workflow orchestrator → Industrial connectors: uses connectors
- Signal pipeline → BCI devices: reads samples
bci/src/pipeline.c - Signal pipeline → Signal processing: preprocesses signals
bci/src/pipeline.c - Signal pipeline → Intent decoders: decodes intent
bci/src/pipeline.c - Signal pipeline → Intent outputs: executes output
bci/src/pipeline.c