def __init__(self, **kwargs: Any) -> None: """ Initialize dialogues. :param agent_address: the address of the agent for whom dialogues are maintained :return: None """ Model.__init__(self, **kwargs) def role_from_first_message( # pylint: disable=unused-argument message: Message, receiver_address: Address) -> BaseDialogue.Role: """Infer the role of the agent from an incoming/outgoing first message :param message: an incoming/outgoing first message :param receiver_address: the address of the receiving agent :return: The role of the agent """ return BaseOefSearchDialogue.Role.AGENT BaseOefSearchDialogues.__init__( self, self_address=self.context.agent_address, role_from_first_message=role_from_first_message, )
def __init__(self) -> None: """ Initialize dialogues. :return: None """ def role_from_first_message( # pylint: disable=unused-argument message: Message, receiver_address: Address ) -> BaseDialogue.Role: """Infer the role of the agent from an incoming/outgoing first message :param message: an incoming/outgoing first message :param receiver_address: the address of the receiving agent :return: The role of the agent """ # The local connection maintains the dialogue on behalf of the node return OefSearchDialogue.Role.OEF_NODE BaseOefSearchDialogues.__init__( self, self_address=str(OEFLocalConnection.connection_id), role_from_first_message=role_from_first_message, dialogue_class=OefSearchDialogue, )
def __init__(self, **kwargs) -> None: """ Initialize dialogues. :return: None """ BaseOefSearchDialogues.__init__(self, str(OEFConnection.connection_id))
def __init__(self, agent_address: str) -> None: """ Initialize dialogues. :param agent_address: the address of the agent for whom dialogues are maintained :return: None """ BaseOefSearchDialogues.__init__(self, agent_address)
def __init__(self, **kwargs) -> None: """ Initialize dialogues. :param agent_address: the address of the agent for whom dialogues are maintained :return: None """ Model.__init__(self, **kwargs) BaseOefSearchDialogues.__init__(self, self.context.agent_address)
def __init__(self, self_address: Address) -> None: """ Initialize dialogues. :return: None """ def role_from_first_message( # pylint: disable=unused-argument message: Message, receiver_address: Address) -> BaseDialogue.Role: """Infer the role of the agent from an incoming/outgoing first message :param message: an incoming/outgoing first message :param receiver_address: the address of the receiving agent :return: The role of the agent """ return OefSearchDialogue.Role.OEF_NODE OefSearchDialogues.__init__( self, self_address=self_address, role_from_first_message=role_from_first_message, dialogue_class=OEFNodeDialogue, )