Class StructuredPrompt.Util
-
- All Implemented Interfaces:
public class StructuredPrompt.Util
Utility class for StructuredPrompt.
-
-
Method Summary
Modifier and Type Method Description static StructuredPrompt
validateStructuredPrompt(Object structuredPrompt)
Validates that the given object is annotated with StructuredPrompt. static String
join(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.
-
-
-
-