Package com.tnsai.prompt
Interface TemplateEngine
public interface TemplateEngine
Interface for template rendering engines.
Implementations can use different template syntaxes like Mustache, StringTemplate, or simple variable substitution.
-
Method Summary
-
Method Details
-
render
Renders a template with the given variables.- Parameters:
template- the template contentvariables- the variables to substitute- Returns:
- rendered string
-
extractVariables
Extracts variable names from a template.- Parameters:
template- the template content- Returns:
- set of variable names
-
getName
String getName()Gets the engine name.- Returns:
- engine name
-