Class RunProcedureTool

java.lang.Object
com.axelor.ai.tool.procedure.RunProcedureTool
All Implemented Interfaces:
SystemTool<RunProcedureTool.Input>

public class RunProcedureTool extends Object implements SystemTool<RunProcedureTool.Input>
Runs one of the procedures of the agent's skills on a record: the form's own steps, each handled as the web client would handle it. The model names the procedure and gives its inputs; it never supplies steps or values of its own (invariant 6).

Refused before anything runs when the procedure is in none of the agent's skills, its model is outside the user's or the agent's reach, it no longer checks out against the application, an input is undeclared, missing or mistyped, the user may not change the record, or its guard is false. Once running, it ends where the browser would: after the last step, at an error, at an alert the procedure does not answer, or at a close.

Runs outside the chat's transaction: each round trip commits on its own, as a browser's requests do, so what was saved before a stop stays saved, and the result says so.