aea.protocols.generator

This module contains the protocol generator.

ProtocolGenerator

class ProtocolGenerator()

This class generates a protocol_verification package from a ProtocolTemplate object.

__init__

 | __init__(protocol_specification: ProtocolSpecification, output_path: str = ".", path_to_protocol_package: Optional[str] = None) -> None

Instantiate a protocol generator.

Arguments:

  • protocol_specification: the protocol specification object
  • output_path: the path to the location in which the protocol module is to be generated.

Returns:

None

generate

 | generate() -> None

Create the protocol package with Message, Serialization, init, protocol.yaml files.

Returns:

None