Conversation
…equirement for event handlers
… class; add is_global_banned field in StreamEdge class
|
Caution Review failedThe pull request is closed. WalkthroughThis PR introduces eager turn detection for vision agents. It relocates AgentOptions to a new types module with TrackInfo and LLMTurn dataclasses, implements pending LLM turn coordination in the Agent class, adds eager turn detection fields to STT and turn detection events, refactors event emission signatures, updates plugin implementations, and adds comprehensive test coverage. Changes
Sequence DiagramsequenceDiagram
participant STT as STT Module
participant Agent as Agent
participant LLM as LLM
participant TTS as TTS
rect rgb(200, 220, 255)
Note over STT,TTS: Eager Turn Detection Flow
STT->>STT: Detect eager end-of-turn (EagerEndOfTurn event)
STT->>Agent: Emit TurnEndedEvent (eager_end_of_turn=true)
Agent->>Agent: Store pending LLM turn (_pending_turn)
Agent->>LLM: Request response
LLM->>Agent: Return response (async)
Agent->>Agent: _finish_llm_turn()
Agent->>TTS: Trigger speech synthesis
end
rect rgb(220, 255, 220)
Note over STT,TTS: Normal Turn Detection Flow
STT->>STT: Detect normal end-of-turn
STT->>Agent: Emit TurnEndedEvent (eager_end_of_turn=false)
Agent->>Agent: Process turn completion
Agent->>LLM: Request response
LLM->>Agent: Return response
Agent->>TTS: Trigger speech synthesis
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Areas requiring extra attention:
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (23)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
Release Notes
New Features
Improvements
Documentation
Tests