AF-AgentSpeak

From Agent Factory

Jump to: navigation, search

Introduction

AF-AgentSpeak (AF-AS) is a basic implementation of the Rao's AgentSpeak language for Agent Factory. It is intended primarily to demonstrate how Agent Factory can be used to rapidly prototype different Agent Programming Languages / Models. The implementation of the language is based on the well known Jason implementation of AgentSpeak with a few modifications:

  • There are some minor syntactic differences to the logic to make the language more consistent with AFAPL2.
  • The interface with the environment is realised through Actions and Sensors (similar to AFAPL2 Actuators and Perceptors) as opposed to an environment class.
  • Support for reuse is realised through a #include statement.

Additionally, AF-SE comes with a basic set of interfaces that can be used to debug programs via the Agent Factory Debugger.

A basic AF-SE example can be found in the Agent Factory Eclipse Plugin guide.

Basic Syntax

TBC

Plan Rule

<triggering-event> : <context> <- <plan-body>;
<initial-belief>;
action <id> -> <class>;
sensor <id> -> <class>;