aea.protocols.default.message

This module contains default's message definition.

DefaultMessage

class DefaultMessage(Message)

A protocol for exchanging any bytes message.

Performative

class Performative(Enum)

Performatives for the default protocol.

__str__

 | __str__()

Get the string representation.

__init__

 | __init__(performative: Performative, dialogue_reference: Tuple[str, str] = ("", ""), message_id: int = 1, target: int = 0, **kwargs, ,)

Initialise an instance of DefaultMessage.

Arguments:

  • message_id: the message id.
  • dialogue_reference: the dialogue reference.
  • target: the message target.
  • performative: the message performative.

valid_performatives

 | @property
 | valid_performatives() -> Set[str]

Get valid performatives.

dialogue_reference

 | @property
 | dialogue_reference() -> Tuple[str, str]

Get the dialogue_reference of the message.

message_id

 | @property
 | message_id() -> int

Get the message_id of the message.

performative

 | @property
 | performative() -> Performative

Get the performative of the message.

target

 | @property
 | target() -> int

Get the target of the message.

content

 | @property
 | content() -> bytes

Get the 'content' content from the message.

error_code

 | @property
 | error_code() -> CustomErrorCode

Get the 'error_code' content from the message.

error_data

 | @property
 | error_data() -> Dict[str, bytes]

Get the 'error_data' content from the message.

error_msg

 | @property
 | error_msg() -> str

Get the 'error_msg' content from the message.