Class AiConfigService

java.lang.Object
com.axelor.ai.seed.AiConfigService

@Singleton public class AiConfigService extends Object
Orchestrates whole-bundle AI config import/export by fanning out to the per-type services in dependency order. A bundle is one path→bytes tree whose top-level dirs are the type roots: providers/, roles/, tools/, knowledge/, skills/, agents/, and governance/ with its policies/ and usage/.
  • Method Details

    • importBundle

      public SeedResult importBundle(AiSource source, SeedMode mode)
      Imports a bundle, dispatching each type's sub-tree in dependency order.
    • reload

      public SeedResult reload()
      Re-seeds the built-in classpath bundle, overwriting.
    • export

      public byte[] export()
      Exports the full live config as one zip, entries under each type's dir prefix.
    • applyBundle

      public SeedResult applyBundle(AiConfigBundle bundle, byte[] zip)
      Applies a stored bundle's zip in its own AiConfigApplyMode, stamping the record's lastAppliedAt/lastResult. The caller persists the bundle.