From d67a17ea88707c21c53270cb2214947456339fa2 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Fri, 30 Aug 2024 16:25:56 -0400 Subject: [PATCH 1/2] chore: sys.read: improve description Signed-off-by: Grant Linville --- pkg/builtin/builtin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/builtin/builtin.go b/pkg/builtin/builtin.go index f972d14c..f8f44ba9 100644 --- a/pkg/builtin/builtin.go +++ b/pkg/builtin/builtin.go @@ -59,7 +59,7 @@ var tools = map[string]types.Tool{ "sys.read": { ToolDef: types.ToolDef{ Parameters: types.Parameters{ - Description: "Reads the contents of a file", + Description: "Reads the contents of a file. Can only read plain text files, not binary files", Arguments: types.ObjectSchema( "filename", "The name of the file to read"), }, From ce535bb69b5ff76593a7e2ccac6133080f2d9946 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Fri, 30 Aug 2024 16:33:35 -0400 Subject: [PATCH 2/2] fix tests Signed-off-by: Grant Linville --- pkg/tests/testdata/TestToolsChange/call1.golden | 2 +- pkg/tests/testdata/TestToolsChange/step1.golden | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tests/testdata/TestToolsChange/call1.golden b/pkg/tests/testdata/TestToolsChange/call1.golden index 6c7c2d55..69ab3d03 100644 --- a/pkg/tests/testdata/TestToolsChange/call1.golden +++ b/pkg/tests/testdata/TestToolsChange/call1.golden @@ -22,7 +22,7 @@ "function": { "toolID": "sys.read", "name": "read", - "description": "Reads the contents of a file", + "description": "Reads the contents of a file. Can only read plain text files, not binary files", "parameters": { "properties": { "filename": { diff --git a/pkg/tests/testdata/TestToolsChange/step1.golden b/pkg/tests/testdata/TestToolsChange/step1.golden index 1aae05d1..e26862ae 100644 --- a/pkg/tests/testdata/TestToolsChange/step1.golden +++ b/pkg/tests/testdata/TestToolsChange/step1.golden @@ -30,7 +30,7 @@ "function": { "toolID": "sys.read", "name": "read", - "description": "Reads the contents of a file", + "description": "Reads the contents of a file. Can only read plain text files, not binary files", "parameters": { "properties": { "filename": {