Class ProcedureCatalog

java.lang.Object
com.axelor.ai.procedure.ProcedureCatalog

public class ProcedureCatalog extends Object
A skill's procedures as an agent may see and run them: parsed, and only those in its scope.
  • Constructor Details

    • ProcedureCatalog

      public ProcedureCatalog()
  • Method Details

    • available

      public List<Procedure> available(AiSkill skill, Access access)
      The skill's procedures the call may run; none when unreadable.
    • inScope

      public boolean inScope(Procedure procedure, Access access)
      Whether the user and the agent may do what the procedure does on its model: create for a procedure on a new record, update for one on a saved record.
    • denial

      public String denial(Procedure procedure, FormSpec spec, Access access)
      The refusal for running the procedure, on the form's spec the caller has built already, or null when inScope(Procedure, Access).
    • listing

      public String listing(AiSkill skill, Access access)
      What loading a skill adds for its procedures: one line each — name, title, guard, inputs — or nothing when none is in scope.