Package com.axelor.ai.skill
Class Skills
java.lang.Object
com.axelor.ai.skill.Skills
Lookups shared by the skill tool and the chat plugin that injects skill content.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFile extensions a skill asset must have to be injectable as text. -
Method Summary
Modifier and TypeMethodDescriptionassetFiles(AiSkill skill) The skill's DMS-attached files, whatever their type.static Stringstatic AiSkillfindEnabled(String code) static Stringinstructions(AiSkill skill) What loading a skill gives the model: its instructions, marked with the skill's code.static Stringinstructions(AiSkill skill, String appendix) The skill's instructions, then a section the caller adds for this agent — its procedures — inside the same marker.static booleanisTextAsset(String fileName) True when the file's extension marks it as text a skill can inject.static StringWhat loading one of the skill's references gives the model — areferences/record or a text asset by file name — or null when the name resolves to nothing.referenceNames(AiSkill skill) Every reference name the skill can actually serve — itsreferences/records plus the names of its text assets.
-
Field Details
-
TEXT_EXTENSIONS
File extensions a skill asset must have to be injectable as text.
-
-
Method Details
-
instructions
What loading a skill gives the model: its instructions, marked with the skill's code. -
instructions
The skill's instructions, then a section the caller adds for this agent — its procedures — inside the same marker. -
reference
What loading one of the skill's references gives the model — areferences/record or a text asset by file name — or null when the name resolves to nothing. -
findEnabled
-
referenceNames
Every reference name the skill can actually serve — itsreferences/records plus the names of its text assets. This is the set ause_skillcall must name; anything else would resolve to no content at all. -
assetFiles
The skill's DMS-attached files, whatever their type. -
isTextAsset
True when the file's extension marks it as text a skill can inject. -
extension
-