Skip to content

A Python-based interpreter for the agent-oriented programming language JASON

License

Notifications You must be signed in to change notification settings

niklasf/python-agentspeak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1aa5b14 · Mar 21, 2024
Mar 21, 2024
Feb 16, 2024
Jun 11, 2019
Jan 27, 2023
Jun 11, 2019
Jan 27, 2023
Jun 11, 2019
Nov 24, 2023
Mar 21, 2024
Jul 7, 2016
Jun 11, 2019
Nov 24, 2023
Sep 19, 2016
Mar 21, 2024
Nov 24, 2023

Repository files navigation

Jason-style AgentSpeak for Python

GPL 3 License Downloads

A Python-based interpreter for the agent-oriented programming language JASON.

python-agentspeak is a Python-based interpreter for the agent-oriented programming language JASON. This library makes it easy to create and manage intelligent agents, offering syntax and functionalities similar to JASON in a Python environment.

Key Features

  • Jason-style AgentSpeak interpretation
  • Easy integration with existing Python code
  • Support for complex agent constructions

Setup

pip install agentspeak

Requirements

  • Python 3.6 or higher
  • Additional dependencies are automatically installed

Usage example

!hello_world.

+!hello_world <-
  .print("Hello world!").

Usage

Run a standalone agent program:

$ python -m agentspeak examples/hello_world.asl

Run an interactive console:

$ python -m agentspeak

See examples/embedded for an example that interfaces with custom Python code.

Jason compability

python-agentspeak should be mostly equivalent to Jason.

  • Plan annotations are ignored as of yet.
  • Standard library does not yet contain syntactic transformations with {begin ...} and {end}.
  • Standard library does not yet contain introspective and plan-manipulation actions.
  • Jason 2.0 fork join operators not yet supported.
  • Literals are only comparable if they have the same signature.