Package dev.langchain4j.spi.prompt
Interface PromptTemplateFactory
-
- All Implemented Interfaces:
public interface PromptTemplateFactory
A factory for creating prompt templates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
PromptTemplateFactory.Input
Interface for input for the factory.
public interface
PromptTemplateFactory.Template
Interface for a prompt template.
-
Method Summary
Modifier and Type Method Description abstract PromptTemplateFactory.Template
create(PromptTemplateFactory.Input input)
Create a new prompt template. -
-
Method Detail
-
create
abstract PromptTemplateFactory.Template create(PromptTemplateFactory.Input input)
Create a new prompt template.
- Parameters:
input
- the input to the factory.- Returns:
the prompt template.
-
-
-
-