Package com.composum.ai.aem.core.impl
Class AemAIConfigurationPlugin
- java.lang.Object
 - 
- com.composum.ai.aem.core.impl.AemAIConfigurationPlugin
 
 
- 
- All Implemented Interfaces:
 AIConfigurationPlugin
public class AemAIConfigurationPlugin extends Object implements AIConfigurationPlugin
Implements AEM specific methods ofAIConfigurationPlugin. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static List<String>TEXT_ATTRIBSPossible atttributes we use for the prompt text.static List<String>TITLE_ATTRIBSPossible attributes we use for the prompt name. 
- 
Constructor Summary
Constructors Constructor Description AemAIConfigurationPlugin() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.sling.api.resource.ResourcedetermineLanguageResource(org.apache.sling.api.resource.Resource resource, String languageKey)Map<String,String>getGPTConfigurationMap(org.apache.sling.api.SlingHttpServletRequest request, String mapPath, String languageKey)GPTPromptLibrarygetGPTPromptLibraryPathsDefault()Returns the default paths forAIConfigurationPlugin.getGPTPromptLibraryPaths(SlingHttpServletRequest, String).- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.composum.ai.backend.slingbase.AIConfigurationPlugin
allowedServices, getGPTConfiguration, getGPTPromptLibraryPaths 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getGPTPromptLibraryPathsDefault
@Nullable public GPTPromptLibrary getGPTPromptLibraryPathsDefault()
Description copied from interface:AIConfigurationPluginReturns the default paths forAIConfigurationPlugin.getGPTPromptLibraryPaths(SlingHttpServletRequest, String).- Specified by:
 getGPTPromptLibraryPathsDefaultin interfaceAIConfigurationPlugin
 
- 
getGPTConfigurationMap
@Nullable public Map<String,String> getGPTConfigurationMap(@Nonnull org.apache.sling.api.SlingHttpServletRequest request, @Nullable String mapPath, @Nullable String languageKey)
- Specified by:
 getGPTConfigurationMapin interfaceAIConfigurationPlugin
 
- 
determineLanguageResource
protected org.apache.sling.api.resource.Resource determineLanguageResource(org.apache.sling.api.resource.Resource resource, String languageKey) 
 - 
 
 -