Class StructuredPromptProcessor

java.lang.Object
dev.langchain4j.model.input.structured.StructuredPromptProcessor

public class StructuredPromptProcessor extends Object
Utility class for structured prompts. Loads the StructuredPromptFactory SPI.
  • Method Details

    • toPrompt

      public static Prompt toPrompt(Object structuredPrompt)
      Converts the given structured prompt to a prompt.
      Parameters:
      structuredPrompt - the structured prompt.
      Returns:
      the prompt.