Skip to content

Commit 1d2b70c

Browse files
authored
chore: sys.read: improve description (#834)
Signed-off-by: Grant Linville <[email protected]>
1 parent 1ad818b commit 1d2b70c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/builtin/builtin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var tools = map[string]types.Tool{
5959
"sys.read": {
6060
ToolDef: types.ToolDef{
6161
Parameters: types.Parameters{
62-
Description: "Reads the contents of a file",
62+
Description: "Reads the contents of a file. Can only read plain text files, not binary files",
6363
Arguments: types.ObjectSchema(
6464
"filename", "The name of the file to read"),
6565
},

pkg/tests/testdata/TestToolsChange/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"function": {
2323
"toolID": "sys.read",
2424
"name": "read",
25-
"description": "Reads the contents of a file",
25+
"description": "Reads the contents of a file. Can only read plain text files, not binary files",
2626
"parameters": {
2727
"properties": {
2828
"filename": {

pkg/tests/testdata/TestToolsChange/step1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"function": {
3131
"toolID": "sys.read",
3232
"name": "read",
33-
"description": "Reads the contents of a file",
33+
"description": "Reads the contents of a file. Can only read plain text files, not binary files",
3434
"parameters": {
3535
"properties": {
3636
"filename": {

0 commit comments

Comments
 (0)