类 StructuredPrompt.Util
java.lang.Object
dev.langchain4j.model.input.structured.StructuredPrompt.Util
- 封闭类:
- StructuredPrompt
Utility class for
StructuredPrompt.-
方法概要
修饰符和类型方法说明static Stringjoin(StructuredPrompt structuredPrompt) Joins the lines of the prompt template.static StructuredPromptvalidateStructuredPrompt(Object structuredPrompt) Validates that the given object is annotated withStructuredPrompt.
-
方法详细资料
-
validateStructuredPrompt
Validates that the given object is annotated withStructuredPrompt.- 参数:
structuredPrompt- the object to validate.- 返回:
- the annotation.
-
join
Joins the lines of the prompt template.- 参数:
structuredPrompt- the structured prompt.- 返回:
- the joined prompt template.
-