On the Formal Semantics of Speech-Act Based Communication in an Agent-Oriented Programming Language

Rafael H. Bordini, Álvaro F. Moreira, Renata Vieira, Michael J. Wooldridge · DOI

Abstract: Research on agent communication languages has typically taken the speech acts paradigm as its starting point. Despite their manifest attractions, speech-act models of communication have several serious disadvantages as a foundation for communication in artificial agent systems. In particular, it has proved to be extremely difficult to give a satisfactory semantics to speech-act based agent communication languages. In part, the problem is that speech-act semantics typically make reference to the "mental states" of agents (their beliefs, desires, and intentions), and there is in general no way to attribute such attitudes to arbitrary computational agents. In addition, agent programming languages have only had their semantics formalised for abstract, stand-alone versions, neglecting aspects such as communication primitives. With respect to communication, implemented agent programming languages have tended to be rather ad hoc. This paper addresses both of these problems, by giving semantics to speech-act based messages received by an AgentSpeak agent. AgentSpeak is a logic-based agent programming language which incorporates the main features of the PRS model of reactive planning systems. The paper builds upon a structural operational semantics to AgentSpeak that we developed in previous work. The main contributions of this paper are as follows: an extension of our earlier work on the theoretical foundations of AgentSpeak interpreters; a computationally grounded semantics for (the core) performatives used in speech-act based agent communication languages; and a well-defined extension of AgentSpeak that supports agent communication.

Introduction

In the field of Multi-Agent Systems (MAS), autonomous agents must communicate to coordinate their actions and achieve shared goals. For decades, researchers have relied on Speech-Act Theory, which treats communication as a functional action (e.g., "requesting" or "informing"). While standards like KQML and FIPA were developed based on these theories, they suffered from a significant gap: their semantics were defined using abstract mental states that were difficult to map onto actual software implementations.

This paper, published in the Journal of Artificial Intelligence Research, bridges this gap by providing a "computationally grounded" formal semantics for communication within AgentSpeak, a prominent agent-oriented programming language.

The AgentSpeak BDI Architecture

AgentSpeak is based on the Belief-Desire-Intention (BDI) model of agency. In this model, an agent's internal state is composed of its current knowledge (Beliefs), the states of affairs it wishes to bring about (Goals/Desires), and the plans it has committed to executing (Intentions).

The internal architecture of a BDI agent, showing the relationship between the interpreter and the agent's mental components.

As shown in the figure above, the Interpreter serves as the central reasoning engine. It processes sensor input to update the Belief base, selects plans from the Plan Library to satisfy Goals, and manages the execution of Intentions. Prior to this work, the formal semantics of this cycle were largely limited to stand-alone agents, leaving communication as an ad-hoc addition rather than a core, verifiable component of the language.

Formalizing Communication via Operational Semantics

The authors extend the operational semantics of AgentSpeak using Plotkin-style transition systems. This mathematical framework describes how an agent's state evolves over time. To support communication, the authors introduced several key extensions to the agent's formal state:

  1. Mailbox and Suspended Intentions: A "Mailbox" was added for asynchronous message handling. Furthermore, a "Suspended Intentions" set allows an agent to pause a plan while waiting for a response (e.g., after an ask-if message), preventing the system from hanging during network latency.
  2. Performative Transition Rules: The paper defines exact rules for how core message types (performatives) modify the agent's state:
  3. tell / untell: Directly updates the Belief Base.
  4. achieve / unachieve: Triggers the adoption or removal of a new goal.
  5. ask-if / ask-all: Initiates a query against another agent's knowledge.
  6. Social Acceptance (SocAcc): To preserve agent autonomy, the authors introduced a SocAcc function. This filter allows an agent to decide whether to accept a message based on social factors like trust or hierarchy, ensuring that a request to achieve a goal is not automatically binding.

Key Insights: Computational Grounding

The primary contribution of this work is computational grounding. Instead of defining "belief" as a philosophical abstraction, the authors define it as the literal presence of a predicate in the agent's belief base. This allows developers to formally reason about and verify the behavior of complex systems. For example, the authors use Linear Temporal Logic to prove that under specific conditions, two agents are guaranteed to reach a state of "Shared Belief."

Additionally, the paper introduces Source Annotations. By tagging beliefs with their origin (e.g., fire(south)[agent1]), agents can reason about the reliability of information and handle conflicting data from different sources.

Impact and Future Work

This formal framework provided the theoretical foundation for Jason, one of the most widely used interpreters for AgentSpeak. By integrating communication into the core reasoning cycle, the authors enabled the development of BDI systems with predictable, verifiable communication behavior.

While foundational, the work leaves room for expansion into more complex social dynamics. Future research directions include formalizing "commissive" speech acts (such as binding contracts), handling heterogeneous agent environments where not all participants use AgentSpeak, and developing more sophisticated models of social power and norms within the SocAcc framework.

Summary updated

BibTeX
@article{bordini2007formal,
  author = {Rafael H. Bordini and Álvaro F. Moreira and Renata Vieira and Michael J. Wooldridge},
  title = {{On the Formal Semantics of Speech-Act Based Communication in an Agent-Oriented Programming Language}},
  journal = {J. Artif. Intell. Res.},
  year = {2007},
  url = {https://openreview.net/forum?id=q2MzeMJ34h},
}
Figure