Class CommonPromptTask
java.lang.Object
de.xima.fc.prompt.service.support.CommonPromptTask
Enumeration for common types of prompt tasks. When configuring a prompt query, usually the first step is to choose a
task type. Implementations are encouraged to use these constants to increase interoperability between different
prompt service implementations, but are not required to do so.
- Since:
- 8.5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe common name of the prompt task for editing images.static final StringThe common name of the prompt task for editing or remixing videos.static final StringThe common name of the prompt task for generating images.static final StringThe common name of the prompt task for generating structured JSON answers in response to a prompt and/or files.static final StringThe common name of the prompt task for generating music.static final StringThe common name of the prompt task for generating free-text answers in response to a prompt and/or files.static final StringThe common name of the prompt task for generating videos.static final StringThe common name of the prompt task for moderating content, i.e. deciding whether text and / or files are appropriate according to some content policy.static final StringThe common name of the prompt task for upscaling or downscaling images.static final StringThe common name of the prompt task for synthesizing speech from text.static final StringThe common name of the prompt task for transcribing speech to text. -
Method Summary
Modifier and TypeMethodDescriptionstatic IGuiIconGets the icon for the given common prompt task.static StringlocalizedDescription(Locale locale, String commonPromptTask) Gets the localized description for the given common prompt task.static StringlocalizedLabel(Locale locale, String commonPromptTask) Gets the localized label for the given common prompt task.
-
Field Details
-
EDIT_IMAGE
The common name of the prompt task for editing images.- See Also:
-
EDIT_VIDEO
The common name of the prompt task for editing or remixing videos.- See Also:
-
GENERATE_IMAGE
The common name of the prompt task for generating images.- See Also:
-
GENERATE_JSON_ANSWER
The common name of the prompt task for generating structured JSON answers in response to a prompt and/or files.- See Also:
-
GENERATE_MUSIC
The common name of the prompt task for generating music.- See Also:
-
GENERATE_TEXT_ANSWER
The common name of the prompt task for generating free-text answers in response to a prompt and/or files.- See Also:
-
GENERATE_VIDEO
The common name of the prompt task for generating videos.- See Also:
-
MODERATE_CONTENT
The common name of the prompt task for moderating content, i.e. deciding whether text and / or files are appropriate according to some content policy.- See Also:
-
SCALE_IMAGE
The common name of the prompt task for upscaling or downscaling images.- See Also:
-
SYNTHESIZE_SPEECH
The common name of the prompt task for synthesizing speech from text.- See Also:
-
TRANSCRIBE_SPEECH
The common name of the prompt task for transcribing speech to text.- See Also:
-
-
Method Details
-
icon
Gets the icon for the given common prompt task. The value should be one of the constants defined in this class. If any other value is given, returns an implementation-defined default icon.- Parameters:
commonPromptTask- The common prompt task constant, should be one of the constants defined in this class.- Returns:
- The icon for the given common prompt task.
-
localizedDescription
Gets the localized description for the given common prompt task. The value should be one of the constants defined in this class. When an unknown value is given, returns an implementation-defined default description.- Parameters:
locale- The locale for which to localize the description.commonPromptTask- The common prompt task constant, should be one of the constants defined in this class.- Returns:
- The localized description for the given common prompt task.
-
localizedLabel
Gets the localized label for the given common prompt task. The value should be one of the constants defined in this class. If any other value is given, returns an implementation-defined default label.- Parameters:
locale- The locale for which to localize the label.commonPromptTask- The common prompt task constant, should be one of the constants defined in this class.- Returns:
- The localized label for the given common prompt task.
-