🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: pydantic validate
莘权 马b612393151d9
diff --git a/metagpt/utils/file_repository.py b/metagpt/utils/file_repository.pyindex 85e7dc8a4..846e811cc 100644--- a/metagpt/utils/file_repository.py+++ b/metagpt/utils/file_repository.py@@ -63,7 +63,7 @@ class FileRepository:await dependency_file.update(pathname, set(dependencies))logger.info(f"update dependency: {str(pathname)}:{dependencies}")- return Document(root_path=str(self._relative_path), filename=filename, content=content)+ return Document(root_path=str(self._relative_path), filename=str(filename), content=content)async def get_dependency(self, filename: Path | str) -> Set[str]:"""Get the dependencies of a file.