def reply(self, message, text, opts=None):
        """
        Reply to the sender of the provided message with a message \
        containing the provided text.

        :param message: the message to reply to
        :param text: the text to reply with
        :param opts: A dictionary of additional values to add to metadata
        :return: None
        """
        metadata = Metadata(source=self.actor_urn,
                            dest=message['metadata']['source']).__dict__
        metadata['opts'] = opts
        message = Message(text=text, metadata=metadata,
                          should_log=message['should_log']).__dict__
        dest_actor = ActorRegistry.get_by_urn(message['metadata']['dest'])
        if dest_actor is not None:
            dest_actor.tell(message)
        else:
            raise("Tried to send message to nonexistent actor")
def reply ( self , message , text , opts = None ) : metadata = Metadata ( source = self . actor_urn , dest = message [ 'metadata' ] [ 'source' ] ) . __dict__ metadata [ 'opts' ] = opts message = Message ( text = text , metadata = metadata , should_log = message [ 'should_log' ] ) . __dict__ dest_actor = ActorRegistry . get_by_urn ( message [ 'metadata' ] [ 'dest' ] ) if dest_actor is not None : dest_actor . tell ( message ) else : raise ( "Tried to send message to nonexistent actor" )
Reply to the sender of the provided message with a message \
        containing the provided text.

        :param message: the message to reply to
        :param text: the text to reply with
        :param opts: A dictionary of additional values to add to metadata
        :return: None