Commit a2a68bb
authored
feat(agent): guide agents to report missing guidance when grep finds no matches (#1860)
## Summary
- When `speakeasy agent context --grep` returns no results, the error
message now includes instructions for submitting feedback about missing
documentation
- Added `missing_guidance` feedback type (stored in metadata) for
tracking documentation gaps
- This helps agents track and report gaps in the agent context docs when
they search for something that doesn't exist
## Example
Before:
```
$ speakeasy agent context --grep "bumpMajor"
Error: Exit code 1
no matches found for: bumpMajor
```
After:
```
$ speakeasy agent context --grep "bumpMajor"
no matches found for: bumpMajor
This may indicate missing guidance in the agent context documentation.
Please submit feedback so we can improve the docs:
speakeasy agent feedback --type missing_guidance --message "Searched for 'bumpMajor' but found no results. Context: <describe what you were trying to accomplish>"
Your feedback helps us identify gaps in the documentation.
```
## Test plan
- [x] Build passes
- [x] Unit tests pass
- [x] Manually tested grep with no matches shows new message
- [x] Verified feedback help shows new `missing_guidance` type1 parent 663b6b3 commit a2a68bb
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
463 | 472 | | |
464 | 473 | | |
465 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments