Class LLMSystemPrompt.OutputFormat

java.lang.Object
me.neurodock.core.LLMSystemPrompt.OutputFormat
Enclosing class:
LLMSystemPrompt

public static class LLMSystemPrompt.OutputFormat extends Object
Specifies the expected output format for a system prompt's <Output> section — e.g. a JSON schema the model should structure its replies as.
  • Constructor Details

    • OutputFormat

      public OutputFormat(String format)
      Creates an output format from a raw, pre-formatted string.
      Parameters:
      format - the format specification text
    • OutputFormat

      public OutputFormat(org.json.JSONObject format)
      Creates an output format from a JSON schema.
      Parameters:
      format - the JSON schema to use as the format specification
  • Method Details

    • build

      public String build()
      Returns the format specification text for rendering into the prompt.
      Returns:
      the raw format string