def METHOD_NAME(self, observation):
    """
    Receive an observation/action dict.
    """
    self.observation = observation
    if self.observation['id'] == 'context':
        msg = {'role': 'system', 'content': observation['text']}
    else:
        msg = {'role': self.counterparty_role, 'content': observation['text']}
        if self.counterparty_name:
            msg['name'] = self.counterparty_name
    self.turns.append(msg)
    return observation