mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
report abs path
This commit is contained in:
parent
d0486f8e11
commit
2079cbf3ae
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue