Interface IPromptQueryConfig_EnhanceUserPrompt
public interface IPromptQueryConfig_EnhanceUserPrompt
Mixin for a
query connection configuration model that 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 the http://www.xima.de/taglib/xfc/prompt
namespace, which provides a user interface for editing the data defined by this mixin.
- Since:
- 8.5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the enhance user prompt attribute. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets 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 Details
-
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:
-
-
Method Details
-
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.
-