Class CommonEffortLevel

java.lang.Object
de.xima.fc.prompt.service.support.CommonEffortLevel

public final class CommonEffortLevel extends Object
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 Details

  • Method Details

    • localizedDescription

      public static String localizedDescription(Locale locale, String commonEffortLevel)
      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

      public static String localizedLabel(Locale locale, String commonEffortLevel)
      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.