AI and LLM Strategy
Goal
The robot must not depend on a single AI vendor or model.
Contract
Application code talks to LLMProvider:
- input: neutral
LLMMessageobjects - optional input: neutral
LLMTooldefinitions - output: neutral
LLMResponse - tool requests: neutral
LLMToolCallobjects
Provider adapters
Current adapter locations:
src/robot/ai/providers/openai_provider.pysrc/robot/ai/providers/anthropic_provider.pysrc/robot/ai/providers/local_provider.py
Only these adapters may import vendor SDKs.
Proposed model strategy — not delivered as a conversation runtime
The provider contracts and adapters are scaffolding for future conversational
integration. The current production runtime does not compose a general
conversation loop through RobotAgent and LLMProvider. Configured local
voice-command behavior is separate; see voice commands.
Normal mode (proposed)
Use a fast, relatively inexpensive remote model for ordinary dialogue and tool selection.
Complex mode (future)
A routing policy may escalate selected tasks to a stronger model. Routing must target capabilities/configured providers, not hard-code application behavior around a brand.
Offline mode (future)
A small model may handle limited offline tasks. Raspberry Pi 3 performance constraints mean a LAN-hosted model is also considered a local/offline-capable backend when the local network is available.
Speech pipeline (proposed composition)
The diagram describes a possible composition, not an end-to-end feature in the current runtime. Keep these stages independently testable:
microphone -> STT -> RobotAgent/LLMProvider -> TTS -> speaker
This is easier to debug and permits changing each component independently. Realtime end-to-end voice can be evaluated later.
Home Assistant — deferred
PHOS does not currently implement a native Home Assistant integration or expose Home Assistant actions as robot tools. Home Assistant support is deferred; the presence of provider/tool abstractions does not mean this integration exists. Any future integration must use PHOS application services and explicit authorization. A model provider's tool-calling support alone does not grant access to physical actions.