Production-ready architecture blueprint and project scaffold for the AI Desktop Assistant.
core/: Application lifecycle, DI container, state definitions, event bus, orchestrator.config/: Configuration schemas, logging interfaces, constants.utils/: Custom exception hierarchies, validation and helper signatures, decorators.speech/: Audio IO, recording, text-to-speech, speech-to-text.wakeword/: Wake word detector loop and custom ONNX model signatures.llm/: Base LLM, NVIDIA NIM, mock LLM, prompt library, response envelope.intelligence/: Intent detection, planner, task router, response parser, task model.skills/: Extensible skill base, registry, manager +builtin/(ChatSkill, SkillHelpSkill).tests/: Module tests.
- Phase 0 – Foundation & Architecture (DONE)
- Phase 1 – Voice Interaction Pipeline (in progress)
- Phase 2 – Intent & Planning (DONE)
IntentDetectorclassifies utterances via the LLM.Plannerdecomposes intents into a task DAG (single-step intents shortcut).TaskRouterexecutes the DAG in dependency order, injecting results of prior tasks via${{task_id.field}}placeholders.- Built-in
ChatSkill(conversational fallback) andSkillHelpSkill(skill discovery) ship with Phase 2 so the pipeline runs end-to-end. - The
Orchestratorwires the pipeline, emitsUserInputEvent,IntentDetectedEvent,PlanReadyEvent,TaskCompletedEvent,ResponseReadyEventon the sharedEventBus, and records conversation turns onAssistantRuntimeState.
- This is a modular monolithic scaffold.
- All concrete logic must be implemented inside the respective packages.
- No method implementations are provided.
- Developers must start from the method signatures and define the implementation details.
pip install -e ".[dev]"
python -m pytest -q
python -c "import asyncio; from config.settings import Settings; from core.container import ServiceContainer; \
async def main(): \
c = ServiceContainer(Settings.load(debug=True)); await c.initialise(); \
print(await c.assistant.handle_text_input('what skills do you have')); \
await c.shutdown(); \
asyncio.run(main())"