Annotation Type SystemMessage


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface SystemMessage
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    The resource from which to read the prompt template.
    Prompt template can be defined in one line or multiple lines.
  • Element Details

    • value

      String[] value
      Prompt template can be defined in one line or multiple lines. If the template is defined in multiple lines, the lines will be joined with a delimiter defined below.
      Default:
      {""}
    • delimiter

      String delimiter
      Default:
      "\n"
    • fromResource

      String fromResource
      The resource from which to read the prompt template. If no resource is specified, the prompt template is taken from value(). If the resource is not found, an IllegalConfigurationException is thrown.

      The resource will be read by calling Class.getResourceAsStream(String) on the AI Service class (interface).

      Default:
      ""