panteao 1.1.37 copy "panteao: ^1.1.37" to clipboard
panteao: ^1.1.37 copied to clipboard

Dart client for the Panteao BDI Coprocessor. Integrates multi-agent BDI systems via JSON and Sockets natively in your Dart or Flutter application.

example/example.dart

import 'package:panteao/panteao.dart';

void main() async {
  // Initialize the Panteão engine and auto-spawn the BDI coprocessor
  final engine = Panteao(host: '127.0.0.1', port: 0, project: './project.jcm');
  
  // Connect via sockets
  await engine.connect();
  
  // Register an action that the BDI agent might request
  engine.registerAction('turn_on_ac', (args, respond) {
    print("Action received! Turning on AC in ${args[0]}");
    
    // Send a perception back to the agent
    engine.sendMsg('tell', 'sensor', 'bob', 'ac_status(on)');
    
    // Acknowledge the action was successful
    respond(true);
  });

  // Block the main thread while the simulation runs
  await engine.wait();
}
0
likes
160
points
439
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart client for the Panteao BDI Coprocessor. Integrates multi-agent BDI systems via JSON and Sockets natively in your Dart or Flutter application.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on panteao