mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
fix bugs
This commit is contained in:
parent
ccecb45b13
commit
222694c329
3 changed files with 16 additions and 5 deletions
|
|
@ -74,6 +74,12 @@ class Document(BaseModel):
|
|||
return None
|
||||
return str(CONFIG.git_repo.workdir / self.root_path / self.filename)
|
||||
|
||||
def __str__(self):
|
||||
return self.content
|
||||
|
||||
def __repr__(self):
|
||||
return self.content
|
||||
|
||||
|
||||
class Documents(BaseModel):
|
||||
"""A class representing a collection of documents.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue