Autonomous Industrial Control Using An Agentic Framework With Large Language Models
Autonomous Industrial Control Using An Agentic Framework With Large Language Models
Abstract: As chemical plants evolve towards full autonomy, the need for effective fault handling
and control in dynamic, unpredictable environments becomes increasingly critical. This paper
arXiv:2411.05904v1 [cs.MA] 8 Nov 2024
are prone to hallucinations as their inherent model char- Agent, and Reprompter Agent—that interact with a simu-
acteristic may result in erroneous action, which can be lated digital twin environment (see e.g. Fig 1). This digital
hazardous in safety critical systems. Thus, having another twin serves as a proxy for the physical system, enabling
agent which acts as a critique in navigating to an safe-to- safe validation of actions and structured feedback loops
optimal response would decrease the likelihood of the error before passing actions to the physical plant.
rates. More specifically we introduce validation agents
• Monitor Agent: The Monitoring Agent gathers
utilizing a simulation capability e.g. using a digital-twin
the state from the plant and can act as a versatile
to check the utility of the actions generated by the LLM
agent. The Monitoring agent can be used for both
agents and use a reprompting agent to provide feedback
continuous control or anomaly detection. In case of
to the actor agent for improving the action in case the
continuous control, it would keep the track of the
previously suggested action does not pass the validation
performance of the system and would allow for a
check.
planned action in a continuous manner. While in case
To illustrate the potential of this approach, we present of anomaly detection, the Monitoring agent would
a case study focused on temperature control using a only trigger the subsequent agents if it detects the
physical micro-controller. We argue that this methodology anomaly.
aligns with the growing trend towards adaptive, fully • Actor Agent: The Actor Agent initiates actions
autonomous systems and establishes a new pathway for aimed at achieving control objectives, such as modify-
intelligent industrial automation. ing parameters or toggling operational states. It oper-
ates based on predefined goals, and once it formulates
The following sections delve deeper into the components of
an action, the Actor Agent passes this decision to the
the proposed framework. Section 3 provides an overview of
digital twin. This simulation evaluates the potential
the framework and its components. In section 4 we present
effects of the action, minimizing the risk of unsafe
the temperature control case study and its architecture.
interventions on the physical system.
Section 5 discusses the results of the case study and its
• Digital Twin Simulation: The digital twin emu-
findings. Finally, section 6 we touch upon the future work.
lates the behavior of the physical system in response
to the Actor Agent’s actions, enabling real-time as-
3. METHODOLOGY sessment in a no-risk environment. This simulated
feedback captures anticipated system responses, al-
The proposed framework introduces a modular and adap- lowing agents to test actions safely before deploy-
tive LLM-based multi-agent system, with a focus on pro- ment.
grammatically leveraging a Reprompting step via a Re- • Validator Agent: Following the simulation, the Val-
prompter Agent to guide an Actor Agent toward safe idator Agent assesses the Actor Agent’s proposed
and effective solutions. Each agent is assigned a specific action based on safety and operational criteria. If the
role, equipped with tools, and tasked with distinct actions action meets these criteria, it is ready for physical
that contribute to the overarching system objectives. This deployment. However, if it is deemed unsafe or subop-
section outlines the framework’s role in enhancing system timal, the Validator Agent flags the action, prompting
reliability and responsiveness through a coordinated agent- the Reprompter Agent to intervene for a predefined
based approach. iterations after which, if the actions are unsafe, the
safety system would override the actions.
3.1 Framework Overview • Reprompter Agent: The Reprompter Agent is a
pivotal component in ensuring system safety and re-
The core of this framework is built around four principal finement. When an action fails validation, the Re-
agents—the Monitoring Agent, Actor Agent, Validator prompter Agent collaborates with the Actor Agent to
adjust the initial decision. Using alternative prompts
generated by processing the digital-twin outputs, the
Reprompter Agent conditions the Action Agent until
it aligns with the Validator Agent’s criteria. This
process forms a feedback loop in which each iteration
is tested in the digital twin and validated again,
ensuring the action is both safe and optimized. The
loop persists until the action either satisfies validation
standards or reaches a predefined limit on iterations,
safeguarding stability in the control process.
This structured interaction between agents, anchored by
the Reprompter Agent’s corrective capabilities, enables
the system to autonomously navigate complex control en-
vironments. By leveraging programmatic refinement, the Fig. 2. Case Study Schematic
Reprompter Agent helps the Actor Agent reach safe and
effective solutions, ensuring robust and adaptive control in the Actor, Validator, and Reprompter agents in real-world
dynamic industrial settings. scenarios, showcasing the framework’s capability to au-
tonomously navigate complex control challenges.
5. RESULTS