Interface IPromptQueryConfig_SystemPrompt
-
- All Known Implementing Classes:
GenericOaiQueryConfig
public interface IPromptQueryConfig_SystemPromptMixin for aquery connection configuration modelthat allows the user to enter an optional system prompt message. A system message provides instructions to the prompt service and receives more weight than auser message. Use of this mixin is optional, but ensures a consistent name for the property. When different prompt service handlers use the same property name, switching between different prompt service handlers preserves the configured system prompt.See also the
<xp:systemPrompt/>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_SYSTEM_PROMPTThe name of the system prompt attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SystemPromptgetSystemPrompt()Gets the system prompt for the prompt query.voidsetSystemPrompt(SystemPrompt systemPrompt)Sets the system prompt for the prompt query.
-
-
-
Field Detail
-
ATTR_SYSTEM_PROMPT
static final String ATTR_SYSTEM_PROMPT
The name of the system 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
-
getSystemPrompt
SystemPrompt getSystemPrompt()
Gets the system prompt for the prompt query. The system prompt is a message that provides context or instructions to the query service, and it is given more weight than a user prompt.- Returns:
- The system prompt.
-
setSystemPrompt
void setSystemPrompt(SystemPrompt systemPrompt)
Sets the system prompt for the prompt query. The system prompt is a message that provides context or instructions to the query service, and it is given more weight than a user prompt.- Parameters:
systemPrompt- The system prompt to set.
-
-