add_message


Description:

public void add_message (Message message)

Adds a message to the session and relays it to the UI via Manager signal.

This method is called by tools to add messages directly to the session. It adds the message to session.messages array and relays to UI via Manager's add_message signal. The session passes itself to the signal so the UI can access session.chat.

Parameters:

message

The message to add