Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aasm

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aasm

Agents Assembly translator

  • 0.1.9
  • Source
  • PyPI
  • Socket score

Maintainers
2

Agents Assembly Translator

Table of Contents

  • About
  • Agents Assembly
  • Getting Started
  • Structure
  • Contributing

About

A target agnostic translator for Agents Assembly. The translator can be tested live on Agents Assembly website. It is a part of the Agents Assembly ecosystem. Other applications are:

Agents Assembly

Documentation of Agents Assembly can be read here.

Getting Started

Prerequisites

Python 3.10

Installation

The translator package can be installed by running:

pip install aasm

Alternatively, 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 usage information, 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
  • preprocessor
    • constants.py - constants used in the preprocessor
    • macro.py - macro definitions used in the preprocessor
    • preprocessor_item.py - preprocessor base item
    • preprocessor.py
  • utils
    • exception.py
    • validation.py
    • iteration.py
  • translate.py - entrypoint

Contributing

Please follow the contributing guide if you wish to contribute to the project.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc