From 44319d640011ddb957718675197525bc38f92f49 Mon Sep 17 00:00:00 2001 From: Elliot Tower Date: Tue, 24 Oct 2023 19:19:02 -0400 Subject: [PATCH 1/2] Fix minor bug in umshini environments: role not always shown in info --- chatarena/environments/umshini/pettingzoo_wrapper.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/chatarena/environments/umshini/pettingzoo_wrapper.py b/chatarena/environments/umshini/pettingzoo_wrapper.py index 04bde870..ac008df6 100644 --- a/chatarena/environments/umshini/pettingzoo_wrapper.py +++ b/chatarena/environments/umshini/pettingzoo_wrapper.py @@ -246,8 +246,6 @@ def observe(self, agent: AgentID) -> ObsType: # Observations and infos are calculated in step(), but need to be calculated before the first step() call elif type(agent) != str: raise TypeError("AgentID must be a string") - elif self.observations[agent] != {}: - return self.observations[agent] else: # get only the messages that this agent can see messages = self._env.get_observation(agent) From 5084deb276ad2612c58340e1eca6fcd77d593059 Mon Sep 17 00:00:00 2001 From: Elliot Tower Date: Tue, 24 Oct 2023 19:21:13 -0400 Subject: [PATCH 2/2] Bump version number --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0218521c..6c1b1a29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "chatarena" -version = "0.1.12.10" +version = "0.1.12.11" authors = [ { name = "Yuxiang Wu", email = "yuxiang.cs@gmail.com" }, ]