Interface: PromptTemplate<SOURCE_PROMPT, TARGET_PROMPT>
Prompt templates format a source prompt as a target prompt.
Type parameters
Name |
---|
SOURCE_PROMPT |
TARGET_PROMPT |
Hierarchy
-
PromptTemplate
Methods
format
▸ format(sourcePrompt
): TARGET_PROMPT
Formats the source prompt as a target prompt.
Parameters
Name | Type |
---|---|
sourcePrompt | SOURCE_PROMPT |
Returns
TARGET_PROMPT