Annotation Interface StructuredPrompt


@Target(TYPE) @Retention(RUNTIME) public @interface StructuredPrompt
Represents a structured prompt.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Utility class for StructuredPrompt.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Prompt template can be defined in one line or multiple lines.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The delimiter to join the lines of the prompt template.
  • 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.
      Returns:
      the prompt template lines.
    • delimiter

      String delimiter
      The delimiter to join the lines of the prompt template.
      Returns:
      the delimiter.
      Default:
      "\n"