Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message system unclear and buggy #112

Open
8 tasks
jwaa opened this issue Mar 22, 2020 · 1 comment
Open
8 tasks

Message system unclear and buggy #112

jwaa opened this issue Mar 22, 2020 · 1 comment
Labels
bug Something isn't working core Work related to the core functionality

Comments

@jwaa
Copy link
Member

jwaa commented Mar 22, 2020

Currently MATRX uses a bit of a mix of two message systems. The old one where messaging was handled in a very closed-off way. Users had to provide the content (a simple dict), and pass it to MATRX who wraps it in a Message instance and does all the rest. The new system allows more customization, most importantly the creation of your own message classes that inherit from Message. This changed the "just provide content" mandate to "provide a Message instance". However, this switch was not complete.

There are quite some unclarities in the code, inline comments and documentation. Also, something just work strangely with potential unintended side effects.

This resulted in the following list, which will be updated as we discover more things;

  • This line still implies that messages are just content, not actual Message instances (as the check a few lines above it does imply.
  • All received messages are deleted in agents (see this line)
  • Unclear now how to actually make and send a message from an AgentBrain
  • Unclear how to properly receive and read a received message in an AgentBrain
  • Messages to groups of agents and teams was never sufficiently tested.
  • Agents can only access the content of a received message (see Received messages only contain the content #230)
  • Messages an agent send to all agents are also received by that agent but never cleared (see received messages remain in queue #240)
  • Agents cannot access their past send messages (for instance this prevents the logging of send messages, see Logging send messages does not work nicely with step() #254)
@jwaa jwaa added the bug Something isn't working label Mar 22, 2020
@jwaa jwaa added the core Work related to the core functionality label Mar 27, 2020
@thaije
Copy link
Collaborator

thaije commented Jul 8, 2020

Also see the related issue #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Work related to the core functionality
Projects
None yet
Development

No branches or pull requests

2 participants