Annotation Interface StructuredPrompt


@Target(TYPE) @Retention(RUNTIME) public @interface StructuredPrompt
Represents a structured prompt.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
    Utility class for StructuredPrompt.
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    Prompt template can be defined in one line or multiple lines.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    The delimiter to join the lines of the prompt template.
  • 元素详细资料

    • 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.
      返回:
      the prompt template lines.
    • delimiter

      String delimiter
      The delimiter to join the lines of the prompt template.
      返回:
      the delimiter.
      默认值:
      "\n"