Enum RewriteStyle

java.lang.Object
java.lang.Enum<RewriteStyle>
com.codename1.ai.RewriteStyle
All Implemented Interfaces:
Comparable<RewriteStyle>

public enum RewriteStyle extends Enum<RewriteStyle>
The style SystemLlmClient.rewrite(String, RewriteStyle) rewrites a text in.
  • Enum Constant Details

    • ELABORATE

      public static final RewriteStyle ELABORATE
      Longer, with more detail.
    • EMOJIFY

      public static final RewriteStyle EMOJIFY
      The same text with emoji added.
    • SHORTEN

      public static final RewriteStyle SHORTEN
      Shorter, keeping the meaning.
    • FRIENDLY

      public static final RewriteStyle FRIENDLY
      Casual and warm.
    • PROFESSIONAL

      public static final RewriteStyle PROFESSIONAL
      Formal and polished.
    • REPHRASE

      public static final RewriteStyle REPHRASE
      Said differently, at about the same length.
  • Method Details

    • values

      public static RewriteStyle[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RewriteStyle valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null