Class CommonEffortLevel
java.lang.Object
de.xima.fc.prompt.service.support.CommonEffortLevel
Enumeration for common types of effort levels. The effort level is an optional settings that controls how much effort
the model should put into generating a response for the prompt.It is up to implementations to define which effort
levels are supported, and what their identifiers are. This class provides standard names of common effort levels.
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 StringUse a high amount of effort.static final StringUse only a low amount of effort.static final StringUse the maximum amount of effort possible.static final StringUse a medium amount of effort.static final StringUse the minimum amount of effort possible. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlocalizedDescription(Locale locale, String commonEffortLevel) Gets the localized description for the given common effort level.static StringlocalizedLabel(Locale locale, String commonEffortLevel) Gets the localized label for the given common effort level.
-
Field Details
-
HIGH
-
LOW
-
MAXIMUM
-
MEDIUM
-
MINIMUM
-
-
Method Details
-
localizedDescription
Gets the localized description for the given common effort level. 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.commonEffortLevel- The common effort level constant, must be one of the constants defined in this class.- Returns:
- The localized description for the given common effort level.
-
localizedLabel
Gets the localized label for the given common effort level. 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.commonEffortLevel- The common effort level constant, must be one of the constants defined in this class.- Returns:
- The localized label for the given common effort level.
-