- conversation.rs: the loop between the core's events and the rest. Finals go through call detection and the response policy; answers are asked of the brain and spoken from the app's queue, an interruption cancels only that answer, a voice stop silences everything, and missed requests are kept without text (last 100). Tested with a fake voice side. - Core: answer(user, text) adopts a playback request the worker speaks under the same id, cancel(id) stops one request, ask_addressed and ask_rank pass the conversation's questions; new SpeakingStopped, Addressed and Ranked events. - Worker client: reply, addressed and rank messages and their results; a reply with no answer, refused or not sent ends its speech as failed. - Voice worker: addressed and rank messages on their own threads, beside a running reply; a spoken reply cancelled while the brain is answering is not spoken. judges.py holds the two short LLM judgements with the heard text fenced as data; eval evals/test_voice_judges.py. - Specs (conversation, discord core, voice worker), docs/llm_contexts.md and the roadmap updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
311 B
Rust
17 lines
311 B
Rust
//! Jarvis v2 app core (see `app/src/discord_core.spec.md`).
|
|
|
|
pub mod log;
|
|
pub mod calls;
|
|
pub mod chat;
|
|
pub mod conversation;
|
|
pub mod discord;
|
|
pub mod frames;
|
|
pub mod playback;
|
|
pub mod policy;
|
|
pub mod receive;
|
|
pub mod services;
|
|
pub mod settings;
|
|
pub mod speakers;
|
|
pub mod worker_client;
|
|
pub mod worker_process;
|