Enhance greeting context management in Brain classes

- Introduce greeting context handling in BaseBrain and WorkflowBrain to manage assistant greetings effectively.
- Implement prepare_greeting_context method to add greeting messages to the local context while preserving playback order.
- Update pipeline event handling to ensure greeting timestamps are maintained until the client is ready.
- Enhance tests to verify the correct behavior of greeting context management in various scenarios.
This commit is contained in:
Xin Wang
2026-07-14 13:26:47 +08:00
parent 35cbee4786
commit d069e5282e
6 changed files with 327 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
你编写具有可维护性、高可读性、模块化的的代码尽量不去对pipecat框架本身修改
你编写具有可维护性、高可读性、可扩展性、模块化的的代码尽量不去对pipecat框架本身修改
以MVP构建为目标
适合CS的本科学生阅读修改
编写代码之前先用易于理解的语言说清楚思路
界面设计要参考 frontend/DESIGN.md