Interface IPromptQueryConfig_EnhanceUserPrompt
-
public interface IPromptQueryConfig_EnhanceUserPromptMixin for aquery connection configuration modelthat allows the user to configure whether the prompt service may enhance the user's prompt. For example, some prompt services offer a feature to rewrite the prompt for image generation to improve the results.See also the
<xp:enhanceUserPrompt/>Faces component from thehttp://www.xima.de/taglib/xfc/promptnamespace, which provides a user interface for editing the data defined by this mixin.- Since:
- 8.5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ENHANCE_USER_PROMPTThe name of the enhance user prompt attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnhanceUserPrompt()Gets whether the prompt service is allowed to enhance the user's prompt.voidsetEnhanceUserPrompt(boolean enhanceUserPrompt)Sets whether the prompt service is allowed to enhance the user's prompt.
-
-
-
Field Detail
-
ATTR_ENHANCE_USER_PROMPT
static final String ATTR_ENHANCE_USER_PROMPT
The name of the enhance user prompt attribute. If you implement a custom serialization / deserialization, use this name for the attribute to increase compatibility with other prompt service handlers.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnhanceUserPrompt
boolean isEnhanceUserPrompt()
Gets whether the prompt service is allowed to enhance the user's prompt. If true, the prompt service may enhance the user's prompt when executing the prompt query. If false, the prompt service must use the user's prompt as-is.- Returns:
- Whether prompt enhancement is allowed.
-
setEnhanceUserPrompt
void setEnhanceUserPrompt(boolean enhanceUserPrompt)
Sets whether the prompt service is allowed to enhance the user's prompt. If true, the prompt service may enhance the user's prompt when executing the prompt query. If false, the prompt service must use the user's prompt as-is.- Parameters:
enhanceUserPrompt- Whether to allow prompt enhancement.
-
-