Class PromptTemplate

java.lang.Object
org.episteme.core.mathematics.ml.generative.PromptTemplate

public class PromptTemplate extends Object
Engine for managing structured LLM prompts with variable substitution. Uses {{variable}} syntax.
Since:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • PromptTemplate

      public PromptTemplate(String template)
  • Method Details

    • render

      public String render(Map<String,Object> variables)
      Renders the template with provided variables.
      Parameters:
      variables - map of variable names to values.
      Returns:
      the rendered prompt.
    • of

      public static PromptTemplate of(String template)