Ahmed Ibrahim
3947f0d0c3
Avoid duplicating deferred sources in tool search ( #35065 )
...
## Why
Deferred tool world state already advertises the available tool sources, so
repeating them in the `tool_search` description adds redundant context.
## What changed
- Omit the source listing from `tool_search` when
`DeferredToolWorldState` is enabled while preserving the tool discovery
instructions.
- Include the source-listing mode in the tool search handler cache key so the
description is rebuilt when the feature state changes.
## Testing
Added coverage for source omission, cache invalidation when the feature is
toggled, and the resulting request payload.
GitOrigin-RevId: f7dc0c4f3351a7c7daadec936b26a080202730bc
2026-07-24 01:23:49 +00:00
..
2026-07-23 19:19:35 +00:00
2026-07-21 22:44:43 +00:00
2026-07-23 22:31:53 +00:00
2026-07-23 23:55:05 +00:00
2026-07-22 21:35:16 +00:00
2026-07-21 08:50:21 +00:00
2026-07-23 23:21:33 +00:00
2026-07-22 22:54:28 +00:00
2026-07-23 19:19:35 +00:00
2026-07-22 02:19:45 +00:00
2026-07-21 08:59:41 +00:00
2026-07-21 15:00:18 +00:00
2026-07-23 01:00:35 +00:00
2026-07-23 22:39:28 +00:00
2026-07-22 02:26:16 +00:00
2026-07-22 01:35:06 +00:00
2026-07-21 08:28:51 +00:00
2026-07-18 23:22:13 +00:00
2026-07-21 02:07:13 +00:00
2026-07-23 19:32:26 +00:00
2026-07-24 00:53:05 +00:00
2026-07-24 00:10:22 +00:00
2026-07-23 01:00:35 +00:00
2026-07-24 01:23:49 +00:00
2026-07-23 19:19:35 +00:00
2026-07-23 22:31:53 +00:00
2026-07-22 00:50:28 +00:00
2026-07-23 22:31:53 +00:00
2026-07-24 00:53:05 +00:00
2026-07-23 23:35:29 +00:00
2026-07-20 06:13:29 +00:00
2026-07-23 19:44:12 +00:00
2026-07-23 17:51:12 +00:00
2026-07-24 01:20:04 +00:00
2026-07-22 16:50:09 +00:00
2026-07-23 23:35:29 +00:00
2026-07-22 02:19:45 +00:00
2026-07-20 20:06:58 +00:00
2026-07-23 23:25:53 +00:00
2026-07-23 19:32:26 +00:00
2026-07-22 04:17:34 +00:00
2026-07-23 00:02:15 +00:00
2026-07-23 23:13:59 +00:00
2026-07-23 19:19:35 +00:00
2026-07-17 20:52:42 +00:00
2026-07-23 19:32:26 +00:00
2026-07-23 00:02:15 +00:00
2026-07-22 06:09:10 +00:00
2026-07-22 00:31:30 +00:00
2026-07-20 16:25:57 +00:00
2026-07-22 19:14:11 +00:00
2026-07-24 01:20:04 +00:00
2026-07-24 00:53:05 +00:00
2026-07-23 19:19:35 +00:00
2026-07-23 23:13:59 +00:00
2026-07-21 21:06:04 +00:00
2026-07-23 21:50:17 +00:00
2026-07-20 23:22:48 +00:00
2026-07-23 21:17:45 +00:00
2026-07-24 00:10:22 +00:00
2026-07-23 23:18:06 +00:00
2026-07-22 21:00:01 +00:00
2026-07-23 23:21:33 +00:00
2026-07-22 02:19:45 +00:00
2026-07-22 16:18:08 +00:00
2026-07-24 00:16:42 +00:00
2026-07-23 23:35:29 +00:00
2026-07-09 17:31:44 -07:00
2026-07-24 00:53:05 +00:00
2026-07-23 19:24:41 +00:00
2026-07-11 03:27:51 +00:00
2026-07-24 00:53:05 +00:00