Package com.axelor.ai.agent
Class AgentImportService
java.lang.Object
com.axelor.ai.agent.AgentImportService
Seeds AiAgent records from ai/agents/<code>.md files.
-
Method Summary
Modifier and TypeMethodDescriptionvoidattachSkillsToAgents(AiSource skillsSource) Additively attaches skills to agents from each skill'sagents:frontmatter list — the skill→agent counterpart of an agent'sdelegateTo.Seeds agents from anAiSource.
-
Method Details
-
seed
Seeds agents from anAiSource. The tools/skills/knowledge-bases/sub-agents fields accept either a list of codes (inline[a, b]or dashed) or the single wildcard"*"= every record of that type;model/utilityModel/delegateTostay literal. Unresolved codes are logged and skipped rather than failing the load. -
attachSkillsToAgents
Additively attaches skills to agents from each skill'sagents:frontmatter list — the skill→agent counterpart of an agent'sdelegateTo. Each named agent gains the skill in itsskillsM2M without losing its existing skills, and the agent's own file is never touched. Unknown agent codes are logged and skipped rather than failing the load. Call this after both skills and agents have been seeded so the target agents exist.
-