实时事件
会话事件
事件类型
Agent 事件
音频事件
当 Agent 生成新的音频以供播放时触发。
源代码位于 src/agents/realtime/events.py
当 Agent 停止生成音频时触发。
源代码位于 src/agents/realtime/events.py
当 Agent 被中断时触发。用户可以监听此事件以停止音频播放或向用户提供视觉指示。
源代码位于 src/agents/realtime/events.py
工具事件
一个 Agent 正在启动工具调用。
源代码位于 src/agents/realtime/events.py
一个 Agent 已经结束工具调用。
源代码位于 src/agents/realtime/events.py
交接事件
一个 Agent 已将任务交接给另一个 Agent。
源代码位于 src/agents/realtime/events.py
护栏事件
一个护栏被触发,并且 Agent 已被中断。
源代码位于 src/agents/realtime/events.py
历史事件
历史记录已更新。包含会话的完整历史记录。