Commit ec87d00
committed
improve search_code query parameter description
The current `query` description for `search_code` gives the model little
useful guidance on GitHub code search syntax, leading to repeated
422 ERROR_TYPE_QUERY_PARSING_FATAL responses from agents that guess at
plausible-looking but invalid syntax (e.g. regex without slashes,
`filename:` instead of `path:`, `OR` between qualifiers without parentheses).
Replace the description with one that explicitly enumerates qualifiers,
boolean operators, regex form (slashes), and path globs, plus realistic
examples covering each.
Updates the search_code toolsnap and README accordingly.
Fixes #2390.1 parent 2dab994 commit ec87d00
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
| 1279 | + | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments