Class Skills

java.lang.Object
com.axelor.ai.skill.Skills

public final class Skills extends Object
Lookups shared by the skill tool and the chat plugin that injects skill content.
  • Field Details

    • TEXT_EXTENSIONS

      public static final Set<String> TEXT_EXTENSIONS
      File extensions a skill asset must have to be injectable as text.
  • Method Details

    • instructions

      public static String instructions(AiSkill skill)
      What loading a skill gives the model: its instructions, marked with the skill's code.
    • instructions

      public static String instructions(AiSkill skill, String appendix)
      The skill's instructions, then a section the caller adds for this agent — its procedures — inside the same marker.
    • reference

      public static String reference(AiSkill skill, String name)
      What loading one of the skill's references gives the model — a references/ record or a text asset by file name — or null when the name resolves to nothing.
    • findEnabled

      public static AiSkill findEnabled(String code)
    • referenceNames

      public static Set<String> referenceNames(AiSkill skill)
      Every reference name the skill can actually serve — its references/ records plus the names of its text assets. This is the set a use_skill call must name; anything else would resolve to no content at all.
    • assetFiles

      public static List<DMSFile> assetFiles(AiSkill skill)
      The skill's DMS-attached files, whatever their type.
    • isTextAsset

      public static boolean isTextAsset(String fileName)
      True when the file's extension marks it as text a skill can inject.
    • extension

      public static String extension(String fileName)