MCPcopy Create free account

hub / github.com/NickTikhonov/shuo / types & classes

Types & classes33 in github.com/NickTikhonov/shuo

↓ 11 callersClassFluxEndOfTurnEvent
Deepgram Flux detected user finished speaking.
shuo/types.py:65
↓ 7 callersClassAgentTurnDoneEvent
Agent finished speaking (playback complete).
shuo/types.py:71
↓ 6 callersClassFluxStartOfTurnEvent
Deepgram Flux detected user started speaking (barge-in).
shuo/types.py:59
↓ 6 callersClassMediaEvent
Audio data received from Twilio.
shuo/types.py:53
↓ 6 callersClassServiceLogger
Logger for individual services (Flux, LLM, TTS, Player, Agent).
shuo/log.py:253
↓ 5 callersClassAppState
Application state -- just routing information. Conversation history is owned by Agent, not tracked here.
shuo/types.py:26
↓ 5 callersClassStreamStopEvent
Twilio stream ended.
shuo/types.py:47
↓ 4 callersClassStreamStartEvent
Twilio stream started.
shuo/types.py:41
↓ 2 callersClassResetAgentTurnAction
Cancel agent response and clear Twilio buffer.
shuo/types.py:100
↓ 2 callersClassTTSService
ElevenLabs streaming TTS service. Sends text chunks, receives audio chunks via callback. Audio is returned as base64-encoded mulaw a
shuo/services/tts.py:18
↓ 1 callersClassAgent
Self-contained agent response pipeline. LLM is persistent (keeps conversation history across turns). TTS connections come from TTSPool (
shuo/agent.py:34
↓ 1 callersClassAudioPlayer
Streams audio to Twilio at the correct rate. Features: - Independent playback loop (not affected by incoming messages) - Can be
shuo/services/player.py:19
↓ 1 callersClassColorFormatter
Custom formatter with colors and clean timestamp.
shuo/log.py:67
↓ 1 callersClassFeedFluxAction
Send audio to Deepgram Flux.
shuo/types.py:88
↓ 1 callersClassFluxService
Deepgram Flux streaming service. Audio format: mulaw 8kHz (direct from Twilio, no conversion needed). Turn events: StartOfTurn (barge-in
shuo/services/flux.py:21
↓ 1 callersClassLLMService
OpenAI streaming LLM service. Manages conversation history and streams tokens via callback.
shuo/services/llm.py:18
↓ 1 callersClassLogger
Unified logger for shuo. Class methods -- lifecycle events (server, call, websocket, stream) Instance methods -- event/action/transitio
shuo/log.py:104
↓ 1 callersClassMarker
A named point-in-time within a turn.
shuo/tracer.py:38
↓ 1 callersClassSpan
A named time range within a turn.
shuo/tracer.py:30
↓ 1 callersClassStartAgentTurnAction
Start agent response pipeline.
shuo/types.py:94
↓ 1 callersClassTTSPool
Connection pool for ElevenLabs TTS WebSockets. - Pre-connects `pool_size` connections at startup - Dispenses warm connections via get()
shuo/services/tts_pool.py:45
↓ 1 callersClassTracer
Records spans and markers for each agent turn. All timestamps are stored as milliseconds relative to the turn's t0.
shuo/tracer.py:55
↓ 1 callersClassTurn
All trace data for a single agent turn.
shuo/tracer.py:45
↓ 1 callersClass_Entry
A pooled TTS connection with its creation timestamp.
shuo/services/tts_pool.py:39
ClassC
ANSI color codes.
shuo/log.py:29
ClassPhase
Current phase of the conversation.
shuo/types.py:19
ClassTestAgentTurnDone
tests/test_update.py:171
ClassTestCompleteFlow
tests/test_update.py:194
ClassTestEdgeCases
tests/test_update.py:276
ClassTestFluxEndOfTurn
tests/test_update.py:118
ClassTestFluxStartOfTurn
tests/test_update.py:147
ClassTestMediaRouting
tests/test_update.py:87
ClassTestStreamLifecycle
tests/test_update.py:47