Liang Wu
7fa13edacd
fix(live): Buffer tool calls and emit them together upon turn completion
...
The `receive` method now accumulates function calls from multiple `LiveServerMessage` instances. These accumulated tool calls are yielded as a single `LlmResponse` containing all function call parts only when a turn_complete message is received.
Without the change, the tool_1's response is sent to the model as soon as it's generated, triggering a second call for tool_2. Upon receiving two consecutive tool_2's responses, the model utters the same message twice.
Fixes issue #4902
Co-authored-by: Liang Wu <wuliang@google.com >
PiperOrigin-RevId: 893197482
2026-04-01 17:45:51 -07:00
..
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-03-26 17:16:06 -07:00
2026-02-04 12:31:54 -08:00
2026-03-12 23:56:52 -07:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-04 12:31:54 -08:00
2026-01-20 14:50:09 -08:00
2026-03-17 11:59:20 -07:00
2026-03-15 13:48:07 -07:00
2026-02-20 14:25:08 -08:00
2026-03-31 13:55:25 -07:00
2026-03-04 14:09:44 -08:00
2026-01-21 12:01:54 -08:00
2026-01-20 14:50:09 -08:00
2026-03-02 10:21:29 -08:00
2026-03-04 05:20:16 -08:00
2026-03-04 13:41:54 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-12 08:37:04 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-23 11:11:56 -08:00
2026-03-03 17:18:53 -08:00
2026-01-20 14:50:09 -08:00
2026-03-16 12:12:21 -07:00
2026-01-20 14:50:09 -08:00
2026-03-10 21:48:28 -07:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 17:38:53 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-03 15:33:44 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-12 14:53:56 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-04-01 17:45:51 -07:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-03-27 16:18:33 -07:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-21 10:06:46 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-21 10:06:46 -08:00
2026-02-05 11:04:36 -08:00
2026-01-20 14:50:09 -08:00
2026-01-21 10:06:46 -08:00
2026-01-21 10:06:46 -08:00
2026-01-21 10:06:46 -08:00
2026-01-21 10:06:46 -08:00
2026-02-06 11:18:32 -08:00
2026-02-01 20:22:25 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-21 12:01:54 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:25:52 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-03-05 13:52:46 -08:00
2026-03-09 17:21:21 -07:00
2026-03-18 15:21:01 -07:00
2026-03-04 18:48:47 -08:00
2026-03-17 11:14:37 -07:00
2026-03-04 18:48:47 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-02-11 13:01:32 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-03-27 14:20:34 -07:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00
2026-01-20 14:50:09 -08:00