<s>[INST] I have a relatively simple model for a system that involves a complex network of agents interacting with each other. I've implemented this model using a simple object-oriented framework where the agents are instances of a single class, and I've run some basic simulations to validate that the model is functioning as expected.

I'd like to add some new functionality to this model that will allow me to analyze the flow of information through the network. To do this, I'd like to attach a "signal" to each agent that will propagate through the network as the agents interact with each other.

Can anyone suggest a design pattern or framework that might be useful for implementing this signal propagation system?[/INST]