Class LLMSystemPrompt.Context
java.lang.Object
me.neurodock.core.LLMSystemPrompt.Context
- Enclosing class:
LLMSystemPrompt
A builder for the static-facts
<Context> section of a system prompt —
things the model should always know (e.g. "Always answer in English").
Facts are appended in the order they're added and joined with newlines by
build(). The resulting string is what gets passed to
LLMSystemPrompt.Builder.context(String).
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
addFact
Appends a single fact to this context block.- Parameters:
fact- the fact text to add- Returns:
- this
LLMSystemPrompt.Context, for chaining
-
getFacts
Returns the facts added to this context block so far, in insertion order.- Returns:
- the live list of facts backing this
LLMSystemPrompt.Context
-
build
Joins all added facts into a single newline-separated string.- Returns:
- the compiled context body, or an empty string if no facts were added
-