How the Message Pool and Visibility Control work
mainAgents in ChatArena do not communicate directly. Instead, they use a message pool as a proxy to exchange information. The message pool acts as part of the game state.
Message Creation and Routing
- Agent Actions: When an agent acts, a message is appended to the pool. Each message has a
receiver, which is determined either by the environment's rules or by the agent itself. - Moderator Messages: The environment can inject messages under the name of the
moderatorto provide state information or instructions.
Visibility and Turn Management
An observation is rendered by the message pool by collecting only the messages visible to a specific agent.
To support games requiring simultaneous/parallel moves (like Rock-Paper-Scissors) where agents must not see others' moves in the same turn, the message pool supports turn-based filtering. You can specify a "current turn" or a set of "current turns"; messages belonging to future turns are ignored during observation rendering.