mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
add simplest debate example
This commit is contained in:
parent
dd57c45bbe
commit
49377c9db0
7 changed files with 71 additions and 21 deletions
|
|
@ -160,7 +160,10 @@ class Message(BaseModel):
|
|||
|
||||
def __str__(self):
|
||||
# prefix = '-'.join([self.role, str(self.cause_by)])
|
||||
return f"{self.role}: {self.content}"
|
||||
if self.instruct_content:
|
||||
return f"{self.role}: {self.instruct_content.dict()}"
|
||||
else:
|
||||
return f"{self.role}: {self.content}"
|
||||
|
||||
def __repr__(self):
|
||||
return self.__str__()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue