Class LLMSystemPrompt.OutputFormat
java.lang.Object
me.neurodock.core.LLMSystemPrompt.OutputFormat
- Enclosing class:
LLMSystemPrompt
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 Summary
ConstructorsConstructorDescriptionOutputFormat(String format) Creates an output format from a raw, pre-formatted string.OutputFormat(org.json.JSONObject format) Creates an output format from a JSON schema. -
Method Summary
-
Constructor Details
-
OutputFormat
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
Returns the format specification text for rendering into the prompt.- Returns:
- the raw format string
-