English

Implementing Agents in JavaScript

Multiagent Systems 2025-10-03 v2

Abstract

This chapter gives an introduction to agent-oriented programming in JavaScript. It provides an example-based walk-through of how to implement abstractions for reasoning loop agents in vanilla JavaScript. The initial example is used as a stepping stone for explaining how to implement slightly more advanced agents and multi-agent systems using JS-son, a JavaScript library for agent-oriented programming. In this context, the chapter also explains how to integrate reasoning loop agents with generative AI technologies--specifically, large language models. Finally, application scenarios in several technology ecosystems and future research directions are sketched.

Keywords

Cite

@article{arxiv.2505.18228,
  title  = {Implementing Agents in JavaScript},
  author = {Timotheus Kampik},
  journal= {arXiv preprint arXiv:2505.18228},
  year   = {2025}
}

Comments

This chapter will eventually by published in the book "Agents and Multi-Agent Systems Development -- Platforms, Toolkits, Technologies", edited by Collier, Mascardi, and Ricci