Class CreateDialogModel
- java.lang.Object
-
- com.composum.pages.commons.model.AbstractModel
-
- com.composum.ai.composum.bundle.model.CreateDialogModel
-
- All Implemented Interfaces:
com.composum.pages.commons.model.Model
,com.composum.sling.core.SlingBean
public class CreateDialogModel extends com.composum.pages.commons.model.AbstractModel
-
-
Field Summary
Fields Modifier and Type Field Description protected AIConfigurationService
aiConfigurationService
protected ApproximateMarkdownService
approximateMarkdownService
protected GPTChatCompletionService
chatCompletionService
-
Constructor Summary
Constructors Constructor Description CreateDialogModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AIConfigurationService
getAIConfigurationService()
protected ApproximateMarkdownService
getApproximateMarkdownService()
protected GPTChatCompletionService
getChatCompletionService()
Map<String,String>
getContentSelectors()
String
getHeight()
For rendering as richttext widget - the height in the inline style.Boolean
getIsRichText()
Whether it is field type rich or just text.Map<String,String>
getPredefinedPrompts()
String
getText()
For rendering as richtext widget - this is used as initial value for the text.Map<String,String>
getTextLengths()
-
Methods inherited from class com.composum.pages.commons.model.AbstractModel
buildCssBase, createInheritedValues, determineResource, equals, getAccessMode, getCategory, getComponent, getComponentType, getContainingPage, getContext, getCssBase, getCssBaseType, getCurrentPage, getDescription, getDisplayMode, getDomId, getEncodedReference, getHashKey, getI18nPaths, getInherited, getInherited, getInherited, getInherited, getInherited, getInherited, getInherited, getInheritedValues, getKeywords, getLanguage, getLanguageKey, getLanguages, getLocale, getName, getPageManager, getPath, getPathHint, getPathHint, getPathHint, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyModel, getReferrers, getResource, getResourceManager, getSiteManager, getTileTitle, getTitle, getTitleKeys, getType, getTypeHint, getTypeHint, getTypeHint, getUrl, getValueMap, getVersionsService, hashCode, initialize, initialize, initialize, initialize, initializeWithResource, isAuthorMode, isEditMode, isEditModeRequested, isFromCurrentPage, isPreviewMode, isPublicMode, toString
-
-
-
-
Field Detail
-
approximateMarkdownService
protected transient ApproximateMarkdownService approximateMarkdownService
-
chatCompletionService
protected transient GPTChatCompletionService chatCompletionService
-
aiConfigurationService
protected transient AIConfigurationService aiConfigurationService
-
-
Method Detail
-
getApproximateMarkdownService
protected ApproximateMarkdownService getApproximateMarkdownService()
-
getChatCompletionService
protected GPTChatCompletionService getChatCompletionService()
-
getAIConfigurationService
protected AIConfigurationService getAIConfigurationService()
-
getIsRichText
public Boolean getIsRichText()
Whether it is field type rich or just text.
-
getText
public String getText()
For rendering as richtext widget - this is used as initial value for the text.
-
getHeight
public String getHeight()
For rendering as richttext widget - the height in the inline style. Possibly auto , max-content, fit-content or a specific height. Doing fit-content just adapts to the content and you can scroll the whole dialog, anyway.
-
-