Class LLMSystemPrompt.Capabilities
java.lang.Object
me.neurodock.core.LLMSystemPrompt.Capabilities
- Enclosing class:
LLMSystemPrompt
Defines per-tool usage-routing hints for the
<Capabilities> section of a
system prompt — i.e. "use this tool only in these cases" guidance, distinct from a
tool's own FunctionTool.description().
Hints are keyed by the tool's Class rather than by a registered instance or
its LLM-facing name, since NeuroDock's convention is one instance per tool class —
see use(Class, String). This class only holds the hint definitions; the
actual compiled text is produced by
LLMSystemPrompt.generateCapabilities(ArrayList).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuse(Class<? extends FunctionTool> toolClass, String usageHint) Registers a usage-routing hint for a tool class — guidance on when the model should reach for this tool, e.g.
-
Constructor Details
-
Capabilities
public Capabilities()
-
-
Method Details
-
use
Registers a usage-routing hint for a tool class — guidance on when the model should reach for this tool, e.g."This should only be used when needing to run CLI tools".Keyed by class rather than instance because a tool's LLM-facing name (which depends on its registration source) isn't known until it's actually registered on an
Model; class identity is stable and known up front.- Parameters:
toolClass- the tool class this hint applies tousageHint- the routing guidance text for this tool- Returns:
- this
LLMSystemPrompt.Capabilities, for chaining
-