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

@@ -287,3 +287,6 @@ class Crew(BaseModel):
if self.max_rpm:
self._rpm_controller.stop_rpm_counter()
self._telemetry.end_crew(self, output)
def __repr__(self):
return f"Crew(id={self.id}, process={self.process}, number_of_agents={len(self.agents)}, number_of_tasks={len(self.tasks)})"