Paper ID: 2409.13693

Declarative Integration and Management of Large Language Models through Finite Automata: Application to Automation, Communication, and Ethics

Thierry Petit, Arnault Pachot, Claire Conan-Vrinat, Alexandre Dubarry

This article introduces an innovative architecture designed to declaratively combine Large Language Models (LLMs) with shared histories, and triggers to identify the most appropriate LLM for a given task. Our approach is general and declarative, relying on the construction of finite automata coupled with an event management system. The developed tool is crafted to facilitate the efficient and complex integration of LLMs with minimal programming effort, especially, but not only, for integrating methods of positive psychology to AI. The flexibility of our technique is demonstrated through applied examples in automation, communication, and ethics.

Submitted: Sep 2, 2024