xiaozhi-esp32-server/main/xiaozhi-server/TODO_JOE_AI.md

1.5 KiB

Joe AI - Future Features TODO

Ready for Testing

  • Multilingual support (responds in user's language)
  • CGM status always in context
  • CGM trends injection when asked
  • News RAG injection when asked
  • History RAG (past conversations)
  • Concise, casual persona

Planned Features

  • Schedule/Calendar awareness

    • Integrate with Google Calendar or iCloud
    • Detect queries like "what do I have tomorrow?"
    • Add needs_schedule to classifier
  • Class notes RAG

    • Index notes/documents for specific classes
    • Useful for study help, assignment reminders
    • Add needs_class_notes to classifier
  • Activity tracking (LOCAL on device, exposed via MCP)

    • Use gyroscope + accelerometer for step counting
    • Detect activity level (walking, stationary, sleeping)
    • Expose as MCP tool: get_activity_stats
    • Similar to existing get_battery_level pattern
    • Server can query when relevant to conversation
  • Reduce classifier latency

    • Currently 4-7 seconds per call
    • Consider smaller model for intent detection
    • Or run classifier in parallel with other processing

Architecture Notes

  • Context classifier: core/utils/cgm_intent.py
  • Context injection: core/connection.py (lines ~930-1000)
  • Client configs: data/<client-id>/config.json
  • Persona prompts: data/<client-id>/prompt.txt

To add a new context type:

  1. Update classifier prompt in cgm_intent.py
  2. Add injection logic in connection.py
  3. (Optional) Add config flag in client's config.json