Class AutoTranslateService.TranslationParameters
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.AutoTranslateService.TranslationParameters
-
- All Implemented Interfaces:
Cloneable
- Enclosing interface:
- AutoTranslateService
public static class AutoTranslateService.TranslationParameters extends Object implements Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description StringadditionalInstructionsOptionally, additional instructions to add to the system prompt.booleanautoSaveIf true the changes are saved (ResourceResolver.commit()) after each page.IntegermaxDepthMaximum depth of the recursion.booleanrecursiveTranslate subpages as well.List<AutoTranslateRuleConfig>rulesOptionally, a number of rules that give additional instructions for translation if certain words or phrases are present in the page.
-
Constructor Summary
Constructors Constructor Description TranslationParameters()
-
-
-
Field Detail
-
recursive
public boolean recursive
Translate subpages as well.
-
maxDepth
public Integer maxDepth
Maximum depth of the recursion.
-
additionalInstructions
public String additionalInstructions
Optionally, additional instructions to add to the system prompt.
-
autoSave
public boolean autoSave
If true the changes are saved (ResourceResolver.commit()) after each page.
-
rules
public List<AutoTranslateRuleConfig> rules
Optionally, a number of rules that give additional instructions for translation if certain words or phrases are present in the page.
-
-