pakrym-oai
6326163b9a
Send incremental tool catalog updates in Responses Lite ( #50540 )
...
## What changed
When `IncrementalTools` is enabled for Responses Lite, track tool definitions in world state and conversation history. Send the initial catalog once, then append only added or changed definitions while preserving earlier request history. Emit developer notices for removed tools and namespace instruction changes.
Use history-supplied definitions for normal requests and remote compaction, and omit empty `additional_tools` prefixes. Keep the existing tool delivery behavior for the Responses API and when the feature is disabled.
## Testing
Add unit and snapshot coverage for catalog and namespace transitions, empty catalogs, and stable hashing across JSON object key order. Add a request-history scenario covering unchanged tools, a model switch that changes one definition, persisted catalog hashes, and Responses API behavior.
GitOrigin-RevId: 76bde175973b81f8ad23873919da3c8ddcdf6065
2026-10-03 05:59:07 +00:00
..
2026-09-26 04:19:46 +00:00
2026-10-03 05:59:07 +00:00
2026-09-25 00:07:35 +00:00
2026-09-30 03:45:21 +00:00
2026-09-02 22:45:19 +00:00
2026-09-11 22:55:38 +00:00
2026-10-01 20:17:34 +00:00
2026-09-24 20:59:51 +00:00
2026-10-01 20:17:34 +00:00
2026-10-01 20:17:34 +00:00
2026-09-23 19:16:20 +00:00
2026-10-01 17:44:52 +00:00
2026-09-30 11:59:13 +00:00
2026-09-16 21:50:07 +00:00
2026-09-24 20:28:31 +00:00
2026-08-20 17:46:05 +00:00
2026-09-24 16:36:57 +00:00
2026-10-01 15:57:03 +00:00
2026-08-13 00:00:16 +00:00
2026-09-23 00:47:07 +00:00
2026-09-19 00:18:56 +00:00
2026-09-29 19:03:30 +00:00
2026-10-03 00:31:51 +00:00
2026-09-15 18:23:08 +00:00
2026-09-29 01:14:41 +00:00
2026-08-25 21:34:05 +00:00
2026-10-03 05:59:07 +00:00
2026-10-02 23:26:27 +00:00
2026-09-30 14:37:56 +00:00
2026-08-13 00:00:16 +00:00
2026-09-21 22:49:17 +00:00
2026-09-29 23:24:37 +00:00
2026-09-14 15:06:28 +00:00
2026-08-25 23:42:50 +00:00
2026-09-29 01:14:41 +00:00
2026-09-19 00:46:06 +00:00
2026-10-01 08:57:53 +00:00
2026-09-12 18:41:47 +00:00
2026-09-23 15:15:24 +00:00
2026-09-24 18:07:37 +00:00
2026-10-01 08:57:53 +00:00
2026-09-15 21:19:08 +00:00
2026-09-16 18:54:45 +00:00
2026-10-01 08:57:53 +00:00
2026-08-20 18:29:35 +00:00
2026-08-27 00:02:26 +00:00
2026-08-20 18:29:35 +00:00
2026-09-29 23:24:37 +00:00
2026-09-19 01:21:32 +00:00
2026-09-19 01:21:32 +00:00
2026-09-24 04:16:35 +00:00
2026-10-01 15:57:03 +00:00
2026-09-30 11:59:13 +00:00
2026-09-18 22:42:46 +00:00
2026-09-05 01:04:12 +00:00
2026-09-24 11:19:16 +00:00
2026-09-24 11:19:16 +00:00
2026-09-17 16:06:11 +00:00
2026-09-30 11:59:13 +00:00
2026-10-03 05:51:19 +00:00
2026-09-30 11:05:59 +00:00
2026-10-01 16:14:27 +00:00
2026-09-30 11:59:13 +00:00
2026-09-23 20:05:09 +00:00
2026-09-27 15:03:38 +00:00
2026-09-30 11:58:50 +00:00
2026-09-30 11:59:13 +00:00
2026-09-10 09:50:59 +00:00
2026-09-16 22:25:29 +00:00
2026-10-01 15:57:03 +00:00
2026-10-01 16:14:27 +00:00
2026-10-01 10:47:18 +00:00
2026-09-30 11:59:13 +00:00
2026-09-29 16:53:11 +00:00
2026-09-29 13:08:37 +00:00
2026-09-24 20:39:37 +00:00
2026-09-25 03:12:10 +00:00
2026-09-21 22:58:49 +00:00
2026-09-08 20:37:30 +00:00
2026-08-25 01:27:18 +00:00
2026-09-15 21:19:08 +00:00
2026-09-01 15:04:11 +00:00
2026-06-15 21:53:47 -07:00
2026-09-24 18:07:37 +00:00
2026-09-21 20:34:46 +00:00
2026-09-25 17:15:29 +00:00
2026-09-29 13:08:37 +00:00
2026-09-21 07:01:52 +00:00
2026-09-29 13:08:37 +00:00
2026-09-29 13:08:37 +00:00
2026-10-01 18:05:05 +00:00
2026-10-02 15:26:58 +00:00
2026-09-29 13:08:37 +00:00
2026-09-29 23:01:46 +00:00
2026-09-20 19:42:18 +00:00
2026-09-16 20:32:52 +00:00
2026-09-29 13:08:37 +00:00
2026-10-02 16:55:41 +00:00
2026-09-07 17:26:10 +00:00
2026-10-03 00:31:51 +00:00
2026-05-18 21:03:51 -07:00
2026-09-17 19:12:42 +00:00
2026-09-23 22:10:04 +00:00
2026-08-13 00:00:16 +00:00
2026-09-24 18:07:37 +00:00
2026-09-24 20:28:31 +00:00
2026-09-19 01:36:53 +00:00
2026-09-29 01:14:41 +00:00
2026-08-20 17:46:05 +00:00
2026-08-29 03:28:19 +00:00
2026-09-30 11:59:13 +00:00
2026-09-24 12:15:57 +00:00
2026-09-23 21:34:11 +00:00
2026-08-27 00:02:26 +00:00
2026-09-22 21:57:52 +00:00
2026-09-30 11:46:28 +00:00
2026-09-22 23:56:23 +00:00
2026-09-24 20:28:31 +00:00
2026-06-08 13:55:15 -07:00
2026-09-30 11:59:13 +00:00
2026-09-26 18:36:55 +00:00
2026-09-24 18:07:37 +00:00
2026-09-24 20:28:31 +00:00
2026-10-01 15:57:03 +00:00
2026-09-24 18:07:37 +00:00
2026-09-16 21:01:13 +00:00
2026-07-22 20:23:35 +00:00
2026-09-15 04:20:38 +00:00
2026-10-03 05:37:28 +00:00
2026-09-22 22:20:00 +00:00
2026-09-22 22:20:00 +00:00
2026-09-23 00:47:07 +00:00
2026-09-22 22:20:00 +00:00
2026-09-24 18:07:37 +00:00
2026-09-29 15:10:17 +00:00
2026-09-09 18:50:32 +00:00
2026-09-28 20:42:04 +00:00
2026-10-01 03:38:50 +00:00
2026-09-29 02:33:55 +00:00
2026-08-13 00:00:16 +00:00
2026-08-31 20:50:44 +00:00
2026-08-31 20:50:44 +00:00
2026-09-29 13:08:37 +00:00
2026-09-24 07:21:20 +00:00
2026-08-13 00:00:16 +00:00
2026-08-13 00:00:16 +00:00
2026-09-15 21:19:08 +00:00
2026-09-10 03:18:28 +00:00
2026-09-30 11:59:13 +00:00
2026-10-02 16:55:41 +00:00
2026-10-02 20:19:28 +00:00
2026-09-17 14:47:42 +00:00
2026-10-02 15:26:58 +00:00
2026-09-11 21:32:04 +00:00
2026-09-30 11:59:13 +00:00
2026-07-23 19:19:35 +00:00
2026-08-13 00:00:16 +00:00
2026-09-22 20:07:50 +00:00
2026-09-30 17:33:59 +00:00
2026-09-29 13:52:04 +00:00
2026-10-03 04:24:52 +00:00
2026-09-29 01:14:41 +00:00
2026-09-29 14:52:58 +00:00
2026-09-29 13:08:37 +00:00
2026-09-24 12:34:04 +00:00
2026-10-01 16:14:27 +00:00
2026-09-24 16:07:15 +00:00
2026-10-03 05:59:07 +00:00
2026-09-24 20:59:51 +00:00
2026-09-29 13:09:30 +00:00
2026-09-23 22:09:18 +00:00
2026-09-22 21:57:52 +00:00
2026-09-22 05:53:29 +00:00
2026-10-02 23:26:27 +00:00
2026-09-16 22:25:54 +00:00
2026-09-24 18:07:37 +00:00
2026-09-29 01:57:57 +00:00
2026-09-26 23:46:10 +00:00
2026-10-03 05:59:07 +00:00
2026-09-24 20:39:37 +00:00
2026-09-24 20:59:51 +00:00
2026-09-24 20:59:51 +00:00
2026-10-02 18:48:49 +00:00
2026-10-01 15:57:03 +00:00
2026-10-01 06:29:03 +00:00
2026-09-21 17:28:14 +00:00
2026-10-01 00:57:53 +00:00
2026-09-22 11:10:29 +00:00
2026-09-24 20:39:37 +00:00
2026-10-01 01:57:56 +00:00
2026-09-09 18:04:04 +00:00
2026-09-09 17:56:33 +00:00
2026-10-02 18:48:49 +00:00
2026-10-02 23:26:27 +00:00
2026-10-02 23:26:27 +00:00
2026-10-01 19:45:28 +00:00
2026-09-29 16:53:11 +00:00
2026-08-28 09:48:13 +00:00
2026-09-24 20:39:37 +00:00
2026-09-02 22:45:19 +00:00
2026-08-30 07:40:36 +00:00
2026-09-23 20:49:48 +00:00
2026-09-23 20:49:48 +00:00
2026-08-20 17:46:05 +00:00
2026-09-24 18:07:37 +00:00
2026-09-24 20:39:37 +00:00
2026-09-29 02:40:51 +00:00
2026-10-01 03:31:48 +00:00
2026-09-29 13:09:30 +00:00
2026-09-04 20:38:08 +00:00
2026-09-23 11:42:45 +00:00
2026-09-28 15:58:17 +00:00
2026-09-30 03:22:55 +00:00
2026-09-29 19:50:50 +00:00
2026-08-28 15:44:48 +00:00
2026-09-19 01:27:26 +00:00
2026-10-02 18:48:49 +00:00
2026-08-10 19:26:52 +00:00
2026-10-01 15:57:03 +00:00
2026-10-02 18:48:49 +00:00
2026-09-24 20:28:31 +00:00
2026-09-22 06:24:49 +00:00
2026-09-24 20:28:31 +00:00
2026-08-13 00:00:16 +00:00
2026-09-24 18:07:37 +00:00
2026-10-01 15:57:03 +00:00
2026-09-25 19:14:31 +00:00
2026-08-20 06:29:32 +00:00