Commit 9ff42b0
Add RoomKitAssistantServer implementation
Concrete implementation of AssistantServerBase using RoomKit's voice
pipeline while reusing EVA's AgenticSystem, AuditLog, and ToolExecutor
for LLM reasoning.
Architecture:
- TwilioWebSocketBackend (from roomkit.voice.backends.twilio_ws)
bridges EVA's Twilio WebSocket protocol to RoomKit's VoiceChannel
- RoomKit VoiceChannel handles STT (Deepgram), TTS (ElevenLabs), VAD
- RoomKit WavFileRecorder with ALL mode for audio output
(inbound + outbound + mixed WAV files)
- RoomKit hooks produce framework_logs.jsonl events
- EVA's AgenticSystem handles LLM reasoning + tool calling unchanged
- Dedicated write queue for full-duplex WebSocket audio
Tested end-to-end: full conversations with correct metrics,
clean audio recordings, user_behavioral_fidelity = 1.0.
Usage: EVA_FRAMEWORK=roomkit EVA_MODEL__STT=deepgram \
EVA_MODEL__TTS=elevenlabs python main.py --debug
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 77cc1d0 commit 9ff42b0
2 files changed
Lines changed: 554 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
42 | | - | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
| |||
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments