Skip to main content

Agents Assembly translator

Project description

Agents Assembly Translator

Table of Contents

About

A target agnostic translator for Agents Assembly.

Getting Started

Prerequisites

Python 3.10

Installation

The translator can be installed by running:

pip install aasm

If you are afraid of pip, you can download this repository. No additional dependencies are required.

Usage

You can run the translator as a package. To translate agent.aasm to SPADE, run:

python -m aasm.translate agent.aasm

For more information about usage run:

python -m aasm.translate --help

Structure

  • generating
    • code.py - generated code
    • python_code.py - Python code base class
    • python_graph.py - Python graph code generation from the intermediate representation
    • python_spade.py - SPADE agent code generation from the intermediate representation
  • intermediate
    • action.py
    • agent.py
    • argument.py - arguments used in instructions
    • behaviour.py
    • block.py - block of code representation
    • declaration.py - declarations used in actions
    • graph.py
    • instruction.py - instructions used in actions
    • message.py
  • parsing
    • parse.py - parsing environment from Agents Assembly file
    • op/ - Agents Assembly operations
    • state.py - state definition used for the parsing process
  • utils
    • exception.py
    • validation.py
    • iteration.py
  • translate.py - entrypoint

Design

  • Message
    • Parameter
      • Type
  • Agent
    • Parameter
      • Type
      • Value
    • Behaviour
      • Type
      • Parameter
      • Received message
      • Actions
        • Message to be sent
        • Block
          • Declaration
            • Name
            • Argument
              • Types
          • Instruction
            • Argument
              • Types
          • Block
  • Graph
    • Parameter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aasm-0.0.27.tar.gz (45.0 kB view hashes)

Uploaded Source

Built Distribution

aasm-0.0.27-py2.py3-none-any.whl (37.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page