From 5f75b67a161e2418298dd2d9f26ba270b81c25b3 Mon Sep 17 00:00:00 2001 From: Sasha Vezhnevets Date: Thu, 14 Dec 2023 06:24:52 -0800 Subject: [PATCH] Improved formatting. Removed the name to reduce repetition. PiperOrigin-RevId: 590918567 Change-Id: I6a35b8f45b81d23387017af4eac74cc9d3d9c862 --- concordia/components/agent/identity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concordia/components/agent/identity.py b/concordia/components/agent/identity.py index 6f694c78..6b9a7acd 100644 --- a/concordia/components/agent/identity.py +++ b/concordia/components/agent/identity.py @@ -78,6 +78,6 @@ def update(self): for c in self._identity_components: executor.submit(c.update) - self._state = f'Name: {self._agent_name}\n' + '\n'.join( - [c.state() for c in self._identity_components] + self._state = '\n'.join( + [f'{c.name()}: {c.state()}' for c in self._identity_components] )