📄️ Actions and events
The GenWorlds framework is built around the concept of asynchronous communication, and thus event based communication. We think that is the natural way for autonomous AI agents to communicate with other entities because you never know when an agent is going to finish a task, or how it would react to a specific event and change its plan.
The 'World' in GenWorlds serves as the setting for all the action. It keeps track of all the agents, objects, and world properties such as agent inventories.
Objects are the simplest GenWorlds event listener. Every object defines a unique set actions (usually deterministic), and is reactive. So listens to world events and reacts to them with its actions. Thus, enabling agents to accomplish specific tasks and work together in a dynamic environment.