Luis Pater
95d5b2485f
fix(runtime): skip deferred tools when injecting cache_control
...
- Updated `ensureCacheControl` to inject cache_control into the last non-deferred tool instead of the last tool.
- Adjusted `injectToolsCacheControl` to ignore tools marked with `defer_loading` for prompt caching.
- Added unit tests to validate behavior for deferred tools, existing cache_control, and mixed tool arrays.
Closes : #4561
2026-07-25 23:20:17 +08:00
..
2026-07-25 00:32:37 +08:00
2026-05-28 02:59:24 +08:00
2026-07-25 00:32:37 +08:00
2026-06-20 00:22:08 +08:00
2026-07-23 13:42:08 +08:00
2026-07-07 02:39:13 +08:00
2026-07-25 14:07:31 +08:00
2026-07-25 14:07:31 +08:00
2026-07-25 14:07:31 +08:00
2026-07-25 14:07:31 +08:00
2026-07-25 14:07:31 +08:00
2026-06-10 03:19:26 +08:00
2026-07-25 23:20:17 +08:00
2026-07-18 19:36:09 +08:00
2026-07-25 23:20:17 +08:00
2026-06-20 12:15:06 +08:00
2026-07-18 02:18:09 +08:00
2026-07-11 11:42:51 +08:00
2026-07-18 03:58:03 +08:00
2026-07-20 02:02:17 +08:00
2026-05-08 11:46:46 +08:00
2026-07-18 03:58:03 +08:00
2026-07-18 02:18:09 +08:00
2026-06-17 07:19:02 +08:00
2026-07-14 00:35:48 +08:00
2026-07-25 00:32:37 +08:00
2026-07-16 04:38:19 +08:00
2026-05-31 14:38:54 +08:00
2026-07-25 00:32:37 +08:00
2026-06-08 15:47:14 +00:00
2026-06-24 14:43:44 +08:00
2026-07-20 13:57:14 +08:00
2026-07-23 13:42:08 +08:00
2026-07-23 14:31:41 +08:00
2026-07-25 00:32:37 +08:00
2026-07-25 00:32:37 +08:00
2026-07-20 13:57:14 +08:00
2026-07-07 02:39:13 +08:00
2026-07-25 00:32:37 +08:00
2026-07-25 00:32:37 +08:00
2026-07-23 13:42:08 +08:00
2026-07-18 23:29:16 +08:00
2026-07-25 00:32:37 +08:00
2026-05-19 10:13:26 +08:00
2026-07-25 00:32:37 +08:00
2026-07-14 00:35:48 +08:00
2026-07-14 00:35:48 +08:00
2026-07-23 13:42:08 +08:00
2026-07-23 13:42:08 +08:00
2026-07-25 00:32:37 +08:00
2026-07-25 00:32:37 +08:00
2026-07-12 23:59:39 +08:00
2026-07-09 21:49:01 +05:30
2026-07-23 13:07:37 +08:00
2026-07-23 14:31:41 +08:00