@@ -26,7 +26,7 @@ def _function_tool_param(
2626 "type" : "object" ,
2727 "additionalProperties" : False ,
2828 "properties" : inputs or {},
29- "required" : required_inputs or [],
29+ "required" : list ( inputs . keys ()) if inputs else [],
3030 },
3131 "strict" : True ,
3232 },
@@ -47,7 +47,6 @@ def _function_tool_param(
4747 "description" : "Path of the file to be read" ,
4848 },
4949 },
50- required_inputs = ["path" ],
5150 ),
5251 _function_tool_param (
5352 name = "write_file" ,
@@ -65,8 +64,13 @@ def _function_tool_param(
6564 "type" : "string" ,
6665 "description" : "New contents of the file" ,
6766 },
67+ "change_description" : {
68+ "type" : "string" ,
69+ "description" : """\
70+ Brief description of the changes performed on this file
71+ """ ,
72+ },
6873 },
69- required_inputs = ["path" , "contents" ],
7074 ),
7175]
7276
@@ -77,6 +81,8 @@ def _function_tool_param(
7781 You are an expert software engineer, who writes correct and concise code.
7882 Use the provided functions to find the filesyou need to answer the query,
7983 read the content of the relevant ones, and save the changes you suggest.
84+ When writing a file, include a summary description of the changes you have
85+ made.
8086"""
8187
8288
0 commit comments