Class DefaultStructuredPromptFactory
java.lang.Object
dev.langchain4j.model.input.structured.DefaultStructuredPromptFactory
- All Implemented Interfaces:
StructuredPromptFactory
Default implementation of
StructuredPromptFactory
.-
Constructor Summary
ConstructorDescriptionCreate a default structured prompt factory. -
Method Summary
-
Constructor Details
-
DefaultStructuredPromptFactory
public DefaultStructuredPromptFactory()Create a default structured prompt factory.
-
-
Method Details
-
toPrompt
Description copied from interface:StructuredPromptFactory
Converts the given structured prompt to a prompt.- Specified by:
toPrompt
in interfaceStructuredPromptFactory
- Parameters:
structuredPrompt
- the structured prompt.- Returns:
- the prompt.
-