Interface IPromptQueryConfig_Task
-
public interface IPromptQueryConfig_TaskMixin for aprompt query configuration modelthat allows the user to select a type of task that the query should perform. For example, a prompt service might support different tasks such as "single text answer", "image generation" or "audio transcription". The user can select one of these tasks when configuring the prompt query; and each task might have different additional configuration settings.This interface only uses an arbitrary string to identify the task. It is up to implementations to define which tasks are supported, and what their identifiers are. But see
CommonPromptTask, which defines some common task names. When possible, prefer using these common task names to increase compatibility between different prompt service.Use of this mixin is optional, but ensures a consistent name for the task property. When different prompt service handlers use the same property name, switching between different prompt service handlers preserves the configured data.
See also the
<xp:task/>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
- See Also:
CommonPromptTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTask()Gets the type of task that the prompt query should perform.voidsetTask(String task)Sets the type of task that the prompt query should perform.
-
-
-
Field Detail
-
ATTR_TASK
static final String ATTR_TASK
The name of the task 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
-
-