pakrym-oai
0df76892b1
Support ordered response items in world-state context updates ( #50441 )
...
## Why
World-state sections could return only a single optional text fragment, with message separation controlled by the fragment itself. They could not contribute explicit `ResponseItem` values alongside instructions.
## What changed
- Let sections return ordered `WorldStateUpdate` values containing fragments or response items, with `Prefix`, `Standalone`, or `Mergeable` placement.
- Preserve explicit item boundaries when grouping context updates, and place prefix updates first when assembling initial context.
- Move standalone-message decisions from fragments to world-state updates and retain snapshot handling.
## Testing
Add tests for mixed fragment/item ordering, role and standalone boundaries, initial-context prefix placement, and snapshot restoration without repeated updates.
GitOrigin-RevId: c2514c3c98538da83f5140c10a9d89f531de6549
2026-10-02 22:12:07 +00:00
..
2026-10-01 20:44:54 +00:00
2026-10-02 06:50:10 +00:00
2026-10-02 22:12:07 +00:00
2026-10-02 22:12:07 +00:00
2026-09-30 11:58:03 +00:00
2026-09-28 17:29:52 +00:00
2026-09-14 15:30:22 +00:00
2026-09-22 23:37:39 +00:00
2026-09-19 01:21:32 +00:00
2026-10-02 22:12:07 +00:00
2026-10-01 05:33:36 +00:00
2026-10-02 18:48:49 +00:00
2026-10-01 20:44:54 +00:00
2026-10-02 18:48:49 +00:00
2026-10-02 18:48:49 +00:00
2026-10-01 20:17:34 +00:00
2026-09-30 17:33:59 +00:00
2026-09-19 02:15:20 +00:00
2026-09-19 01:21:32 +00:00
2026-09-16 04:59:23 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-09-14 23:25:09 +00:00
2026-09-26 18:36:55 +00:00
2026-09-29 23:24:37 +00:00
2026-09-24 22:54:29 +00:00
2026-09-24 22:54:29 +00:00
2026-09-30 00:08:55 +00:00
2026-10-01 03:31:48 +00:00
2026-10-01 03:31:48 +00:00
2026-10-02 00:45:26 +00:00
2026-09-17 23:54:31 +00:00
2026-09-09 18:40:53 +00:00
2026-09-09 18:40:53 +00:00
2026-09-30 11:58:03 +00:00
2026-09-17 01:38:13 +00:00
2026-09-25 10:49:50 +00:00
2026-09-30 11:58:03 +00:00
2026-09-29 13:08:37 +00:00
2026-09-10 18:24:13 +00:00
2026-10-01 03:38:50 +00:00
2026-09-26 23:17:41 +00:00
2026-10-01 08:57:53 +00:00
2026-09-28 20:42:04 +00:00
2026-09-28 20:42:04 +00:00
2026-09-15 21:19:08 +00:00
2026-09-15 21:19:08 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-18 23:07:36 +00:00
2026-09-18 23:07:36 +00:00
2026-10-01 15:57:03 +00:00
2026-09-28 17:29:52 +00:00
2026-09-24 14:48:41 +00:00
2026-09-21 22:58:49 +00:00
2026-09-21 22:58:49 +00:00
2026-10-01 03:31:48 +00:00
2026-10-01 05:33:36 +00:00
2026-09-24 20:39:37 +00:00
2026-10-01 05:33:36 +00:00
2026-10-01 05:33:36 +00:00
2026-09-25 02:54:07 +00:00
2026-10-01 17:44:52 +00:00
2026-09-16 15:17:41 +00:00
2026-09-26 18:36:55 +00:00
2026-09-23 22:10:04 +00:00
2026-09-23 00:47:34 +00:00
2026-09-26 23:17:41 +00:00
2026-09-22 22:20:00 +00:00
2026-09-23 17:34:58 +00:00
2026-09-27 22:05:19 +00:00
2026-09-15 17:09:11 +00:00
2026-09-24 18:06:07 +00:00
2026-09-29 02:05:56 +00:00
2026-09-30 02:12:42 +00:00
2026-09-19 01:03:55 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-09-17 18:20:28 +00:00
2026-09-29 16:53:11 +00:00
2026-09-29 16:53:11 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-25 14:15:05 +00:00
2026-09-29 04:38:37 +00:00
2026-09-30 03:22:55 +00:00
2026-09-30 03:22:55 +00:00
2026-09-30 17:45:25 +00:00
2026-09-29 04:38:37 +00:00
2026-09-29 13:08:37 +00:00
2026-09-27 11:30:52 +00:00
2026-09-24 18:07:37 +00:00
2026-10-01 03:38:50 +00:00
2026-10-02 16:55:41 +00:00
2026-10-01 03:38:50 +00:00
2026-09-18 23:37:35 +00:00
2026-10-02 16:55:41 +00:00
2026-10-01 03:31:48 +00:00
2026-09-21 18:19:07 +00:00
2026-09-17 18:20:28 +00:00
2026-09-18 00:25:37 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-09 19:31:12 +00:00
2026-09-23 18:40:12 +00:00