Real-Time BDI Agents: A Model and Its Implementation

Andrea Traldi, Francesco Bruschetti, Marco Robol, Marco Roveri, Paolo Giorgini

Introduction

Autonomous agents based on the Belief-Desire-Intention (BDI) model are widely used for high-level reasoning. However, traditional BDI frameworks often ignore the physical constraints of the hardware they run on, such as CPU cycles and strict temporal deadlines. In dynamic, high-stakes environments like autonomous driving or real-time gaming, an agent that "thinks" too long or creates a plan exceeding its computational capacity can fail catastrophically. This paper introduces a novel architecture that integrates real-time scheduling and temporal planning directly into the BDI reasoning cycle.

Proposed Architecture

The authors propose a three-layer architecture designed to make time and computational capacity "first-class citizens" in the reasoning process.

The proposed three-layer architecture integrating BDI reasoning with real-time execution and monitoring.
  1. BDI Layer: This layer handles high-level deliberation using PDDL 2.1 and the OPTIC planner. It generates time-triggered plans that specify not just the sequence of actions, but their intended start times and durations.
  2. Execution and Monitoring Layer: This intermediate layer translates high-level plans into executable tasks. Its primary role is to perform a schedulability check, ensuring that the proposed plan can be executed within the current environment's constraints without overloading the system.
  3. Real-Time Layer: The "muscle" of the system, this layer uses hard real-time algorithms like Earliest Deadline First (EDF) and Constant Bandwidth Server (CBS) to ensure critical tasks receive the necessary CPU time.

Evaluation and Key Insights

The system was evaluated using Kronity, a custom resource-collection environment where agents must coordinate tasks while managing limited resources and reacting to unpredictable events.

A critical insight from this work is the distinction between a plan being temporally valid and being schedulable. A plan might be logically sound and fit within a timeframe, but if the cumulative computational cost of parallel actions exceeds the system's capacity, it will fail in practice.

Timeline of agent actions (top) and the corresponding computational load (bottom) showing how parallel tasks can approach or exceed system capacity.

The architecture allows agents to be proactive. By integrating deadlines into the deliberation phase, an agent can identify impossible goals before wasting resources. Furthermore, the system is robust to external changes; if a new agent enters the environment, the system detects a "context violation" and triggers immediate re-planning to optimize the new state.

Conclusion and Future Work

This implementation represents a significant step toward practical, time-aware autonomous agents. While the current model successfully manages task execution within computational budgets, future work is needed to address the "thinking overhead"—the time the agent spends deliberating. Integrating scheduling constraints directly into the plan-search phase and utilizing faster "satisficing" planners are key areas for further development.

Summary updated

BibTeX
@inproceedings{traldi2022real,
  author = {Andrea Traldi and Francesco Bruschetti and Marco Robol and Marco Roveri and Paolo Giorgini},
  title = {{Real-Time BDI Agents: A Model and Its Implementation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/73},
}
Figure