Overridding classes __repr__

This commit is contained in:
João Moura
2024-03-05 10:12:49 -03:00
parent ba28ab1680
commit 99be4f5a61
3 changed files with 9 additions and 0 deletions

View File

@@ -318,3 +318,6 @@ class Agent(BaseModel):
@staticmethod
def __tools_names(tools) -> str:
return ", ".join([t.name for t in tools])
def __repr__(self):
return f"Agent(role={self.role}, goal={self.goal}, backstory={self.backstory})"