Commit d8f9e4a
committed
feat(adk): add jsonschema descriptions to filesystem tool arguments
Add detailed JSON Schema descriptions to all filesystem tool argument
structs for better AI model understanding and tool invocation.
Changes:
- readFileArgs: Added descriptions for file_path, offset, and limit fields
- writeFileArgs: Added descriptions for file_path and content fields
- editFileArgs: Added descriptions for file_path, old_string, new_string,
and replace_all fields with default value annotation
- globArgs: Added descriptions for pattern and path fields
- grepArgs: Added comprehensive descriptions for all 14 fields including
pattern, path, glob, output_mode (with enum values), context options
(-A/-B/-C), line numbers, case sensitivity, file type, pagination
(head_limit/offset), and multiline mode
Also updated tool descriptions in prompt.go:
- WriteFileToolDesc: Improved usage guidelines with clearer instructions
- GlobToolDesc: Simplified description focusing on key capabilities
This enhancement enables LLM-based agents to better understand tool
parameters and generate more accurate tool calls.1 parent aed7865 commit d8f9e4a
File tree
7 files changed
+456
-238
lines changed- adk
- filesystem
- middlewares/filesystem
7 files changed
+456
-238
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments