Class StructuredPrompt.Util
-
- All Implemented Interfaces:
public class StructuredPrompt.UtilUtility class for StructuredPrompt.
-
-
Method Summary
Modifier and Type Method Description static StructuredPromptvalidateStructuredPrompt(Object structuredPrompt)Validates that the given object is annotated with StructuredPrompt. static Stringjoin(StructuredPrompt structuredPrompt)Joins the lines of the prompt template. -
-
Method Detail
-
validateStructuredPrompt
static StructuredPrompt validateStructuredPrompt(Object structuredPrompt)
Validates that the given object is annotated with StructuredPrompt.
- Parameters:
structuredPrompt- the object to validate.- Returns:
the annotation.
-
join
static String join(StructuredPrompt structuredPrompt)
Joins the lines of the prompt template.
- Parameters:
structuredPrompt- the structured prompt.- Returns:
the joined prompt template.
-
-
-
-