Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

report abs path

shenchucheng2079cbf3ae69
diff --git a/metagpt/utils/report.py b/metagpt/utils/report.py
index 616a52f30..85f9bfa22 100644
--- a/metagpt/utils/report.py
+++ b/metagpt/utils/report.py
@@ -135,6 +135,9 @@ class ResourceReporter(BaseModel):
value = value.model_dump(mode="json")
elif isinstance(value, Path):
value = str(value)
+
+ if name == "path":
+ value = os.path.abspath(value)
data["value"] = value
data["name"] = name
role = CURRENT_ROLE.get(None)