diff --git a/aider/coders/func_coder.py b/aider/coders/func_coder.py index ff7ddd6e6..cbba13021 100644 --- a/aider/coders/func_coder.py +++ b/aider/coders/func_coder.py @@ -13,22 +13,30 @@ class FunctionCoder(Coder): description="create or update a file", parameters=dict( type="object", - required=["explanation", "file_path", "file_content"], properties=dict( - explanation=dict( - type="string", - description=( - "Explanation of the changes to be made to the code (markdown format)" + items=dict( + type="array", + items=dict( + type="object", + required=["explanation", "file_path", "file_content"], + properties=dict( + explanation=dict( + type="string", + description=( + "Explanation of the changes to be made to the code (markdown format)" + ), + ), + file_path=dict( + type="string", + description="Path of file to write", + ), + file_content=dict( + type="string", + description="Content to write to the file", + ), + ), ), ), - file_path=dict( - type="string", - description="Path of file to write", - ), - file_content=dict( - type="string", - description="Content to write to the file", - ), ), ), ),