importlogginglogger=logging.getLogger(__name__)fromagenticaiframework.communicationimportCommunicationManager# Example: Using the CommunicationManager# ----------------------------------------# This example demonstrates how to:# 1. Create a CommunicationManager# 2. Send and receive messages## Expected Output:# - Logs showing messages being sent and receivedif__name__=="__main__":# Create a communication managercomm_manager=CommunicationManager()# Define a simple message handlerdefmessage_handler(message):logger.info(f"Received message: {message}")# Register the handlercomm_manager.register_handler(message_handler)# Send a messagecomm_manager.send_message("Hello from CommunicationManager!")