tongzhou wang
e974aad3b1
Support model-specific function description prefixes ( #51930 )
...
## What changed
Add `functions_namespace_functions_description_prefixes` to model tool messages, keyed by unqualified tool name. Prepend this guidance to descriptions in the `functions` namespace across direct declarations, Code Mode documentation, and tool-search results, including custom tools.
Trim prefixes, ignore empty values and unavailable functions, and enforce a combined 256-byte UTF-8 limit including separators for reachable tools. Keep overrides local to each step, preserve search ranking text, and retain runtime caches for unaffected tools.
## Testing
Extend coverage for direct and indirect descriptions, clearing prefixes when switching models, namespace scoping for deferred dynamic tools, and tool-search cache reuse and reset.
GitOrigin-RevId: f434e37cec010764fe3e09fb12c339e933b3c21c
2026-10-08 03:20:54 +00:00
..
2026-10-06 16:56:39 +00:00
2026-10-08 03:20:54 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 01:39:50 +00:00
2026-09-24 20:59:51 +00:00
2026-10-06 23:28:55 +00:00
2026-10-01 20:17:34 +00:00
2026-10-06 21:28:13 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 17:11:07 +00:00
2026-10-03 18:15:13 +00:00
2026-10-03 18:15:13 +00:00
2026-10-06 22:39:32 +00:00
2026-09-24 16:36:57 +00:00
2026-10-06 17:11:07 +00:00
2026-09-23 00:47:07 +00:00
2026-10-06 19:30:57 +00:00
2026-09-29 19:03:30 +00:00
2026-10-07 18:32:50 +00:00
2026-10-06 01:46:33 +00:00
2026-10-05 18:52:51 +00:00
2026-10-08 01:02:21 +00:00
2026-10-06 17:11:07 +00:00
2026-09-30 14:37:56 +00:00
2026-09-21 22:49:17 +00:00
2026-10-08 03:20:54 +00:00
2026-10-06 17:11:07 +00:00
2026-09-19 00:46:06 +00:00
2026-10-05 16:10:27 +00:00
2026-10-06 01:39:50 +00:00
2026-09-23 15:15:24 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 17:11:07 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 16:56:39 +00:00
2026-10-08 00:54:27 +00:00
2026-10-07 03:07:51 +00:00
2026-10-06 17:11:07 +00:00
2026-09-19 01:21:32 +00:00
2026-10-06 17:11:07 +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-10-06 16:56:39 +00:00
2026-09-24 11:19:16 +00:00
2026-10-06 17:11:07 +00:00
2026-09-17 16:06:11 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 23:44:17 +00:00
2026-10-07 13:05:06 +00:00
2026-10-05 22:17:02 +00:00
2026-10-05 17:35:24 +00:00
2026-10-06 17:11:07 +00:00
2026-09-27 15:03:38 +00:00
2026-10-07 15:47:21 +00:00
2026-10-07 19:42:35 +00:00
2026-10-07 13:05:06 +00:00
2026-10-06 17:11:07 +00:00
2026-10-07 11:18:05 +00:00
2026-10-01 16:14:27 +00:00
2026-10-06 01:39:50 +00:00
2026-10-07 11:18:05 +00:00
2026-09-29 16:53:11 +00:00
2026-10-06 17:11:07 +00:00
2026-09-24 20:39:37 +00:00
2026-09-25 03:12:10 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 16:56:39 +00:00
2026-09-25 17:15:29 +00:00
2026-09-29 13:08:37 +00:00
2026-10-07 00:29:04 +00:00
2026-10-06 01:39:50 +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-10-06 17:11:07 +00:00
2026-10-06 01:39:50 +00:00
2026-10-07 07:57:14 +00:00
2026-09-29 13:08:37 +00:00
2026-10-06 19:30:57 +00:00
2026-10-06 01:39:50 +00:00
2026-10-07 23:11:18 +00:00
2026-09-17 19:12:42 +00:00
2026-09-23 22:10:04 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-09-19 01:36:53 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-09-30 11:59:13 +00:00
2026-10-06 00:16:18 +00:00
2026-09-23 21:34:11 +00:00
2026-10-06 22:39:32 +00:00
2026-09-22 21:57:52 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:10:43 +00:00
2026-09-24 20:28:31 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 16:56:39 +00:00
2026-10-07 19:42:35 +00:00
2026-09-24 18:07:37 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 17:11:07 +00:00
2026-10-07 01:28:59 +00:00
2026-10-06 16:56:39 +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-10-08 00:09:03 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:11:07 +00:00
2026-10-05 18:54:17 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-09-29 13:08:37 +00:00
2026-10-08 02:06:58 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 22:39:06 +00:00
2026-10-06 01:46:33 +00:00
2026-10-06 18:17:48 +00:00
2026-10-06 22:39:06 +00:00
2026-10-06 17:11:07 +00:00
2026-09-30 11:59:13 +00:00
2026-10-06 17:11:07 +00:00
2026-09-30 17:33:59 +00:00
2026-09-29 13:52:04 +00:00
2026-10-05 16:58:29 +00:00
2026-10-03 04:24:52 +00:00
2026-09-29 01:14:41 +00:00
2026-10-05 22:17:02 +00:00
2026-09-29 13:08:37 +00:00
2026-10-06 19:30:57 +00:00
2026-10-01 16:14:27 +00:00
2026-10-07 19:42:35 +00:00
2026-10-07 15:47:21 +00:00
2026-10-06 21:28:13 +00:00
2026-10-05 23:49:21 +00:00
2026-10-08 03:20:54 +00:00
2026-10-06 03:27:04 +00:00
2026-10-03 06:42:48 +00:00
2026-09-22 21:57:52 +00:00
2026-10-06 03:27:04 +00:00
2026-09-22 05:53:29 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:39:50 +00:00
2026-09-29 01:57:57 +00:00
2026-10-03 18:15:13 +00:00
2026-10-06 01:39:50 +00:00
2026-10-08 00:09:03 +00:00
2026-10-06 17:10:43 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 16:56:39 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:11:07 +00:00
2026-10-01 00:57:53 +00:00
2026-09-22 11:10:29 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 22:39:06 +00:00
2026-10-06 01:46:33 +00:00
2026-10-02 23:26:27 +00:00
2026-10-02 23:26:27 +00:00
2026-10-06 01:39:50 +00:00
2026-10-06 19:29:40 +00:00
2026-09-24 20:39:37 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:10:43 +00:00
2026-09-23 20:49:48 +00:00
2026-10-06 17:11:07 +00:00
2026-10-07 23:11:18 +00:00
2026-10-08 00:54:27 +00:00
2026-10-06 17:11:07 +00:00
2026-09-29 02:40:51 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 16:56:39 +00:00
2026-09-23 11:42:45 +00:00
2026-09-28 15:58:17 +00:00
2026-10-06 17:11:07 +00:00
2026-09-29 19:50:50 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 17:11:07 +00:00
2026-10-01 15:57:03 +00:00
2026-10-06 17:11:07 +00:00
2026-10-06 22:39:32 +00:00
2026-10-06 17:26:19 +00:00
2026-09-22 06:24:49 +00:00
2026-09-24 20:28:31 +00:00
2026-10-06 17:11:07 +00:00
2026-09-24 18:07:37 +00:00
2026-09-25 19:14:31 +00:00