类 StructuredPrompt.Util

java.lang.Object
dev.langchain4j.model.input.structured.StructuredPrompt.Util
封闭类:
StructuredPrompt

public static class StructuredPrompt.Util extends Object
Utility class for StructuredPrompt.
  • 方法详细资料

    • validateStructuredPrompt

      public static StructuredPrompt validateStructuredPrompt(Object structuredPrompt)
      Validates that the given object is annotated with StructuredPrompt.
      参数:
      structuredPrompt - the object to validate.
      返回:
      the annotation.
    • join

      public static String join(StructuredPrompt structuredPrompt)
      Joins the lines of the prompt template.
      参数:
      structuredPrompt - the structured prompt.
      返回:
      the joined prompt template.