Package com.axelor.ai.seed
Class AiConfigService
java.lang.Object
com.axelor.ai.seed.AiConfigService
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 Summary
Modifier and TypeMethodDescriptionapplyBundle(AiConfigBundle bundle, byte[] zip) Applies a stored bundle's zip in its ownAiConfigApplyMode, stamping the record'slastAppliedAt/lastResult.byte[]export()Exports the full live config as one zip, entries under each type's dir prefix.importBundle(AiSource source, SeedMode mode) Imports a bundle, dispatching each type's sub-tree in dependency order.reload()Re-seeds the built-in classpath bundle, overwriting.
-
Method Details
-
importBundle
Imports a bundle, dispatching each type's sub-tree in dependency order. -
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
Applies a stored bundle's zip in its ownAiConfigApplyMode, stamping the record'slastAppliedAt/lastResult. The caller persists the bundle.
-