Live请求队列
The input side of a live conversation: everything the user sends reaches the agent through one of these, from any thread and without suspending, so audio can be pushed from a microphone callback or a UI handler without a coroutine.
The cost is an unbounded queue: a producer faster than the agent grows it without limit, an entry per audio chunk spoken.
ADK Python makes the same trade, with an asyncio.Queue that sets no maximum.
函数
Link copied to clipboard
发送 请求; a LiveRequest.close 该请求成功完成了其任务(即传递了所需的数据或信息)。 LiveRequest.stateDelta然后关闭队列。
Link copied to clipboard
当自动活动检测功能被禁用时,该标记表示用户活动的结束。
Link copied to clipboard
当自动活动检测功能被禁用时,该标记表示用户活动的开始。
Link copied to clipboard
该标记表示音频流的结束,从而迫使模型清空其内部存储的所有数据。
Link copied to clipboard
以“逐步发送”的方式传输内容。
Link copied to clipboard
发送一个 RealtimeInput.Audio “chunk, a” RealtimeInput.Video 在实时模式下,该信号可以表示一个帧(frame),也可以表示一个活动信号(activity signal)。