Class StructuredPrompt.Util
java.lang.Object
dev.langchain4j.model.input.structured.StructuredPrompt.Util
- Enclosing class:
StructuredPrompt
Utility class for
StructuredPrompt.-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringjoin(StructuredPrompt structuredPrompt) Joins the lines of the prompt template.static StructuredPromptvalidateStructuredPrompt(Object structuredPrompt) Validates that the given object is annotated withStructuredPrompt.
-
Method Details
-
validateStructuredPrompt
Validates that the given object is annotated withStructuredPrompt.- Parameters:
structuredPrompt- the object to validate.- Returns:
- the annotation.
-
join
Joins the lines of the prompt template.- Parameters:
structuredPrompt- the structured prompt.- Returns:
- the joined prompt template.
-