Class CoreSystemInstructionsMdFileProvider
java.lang.Object
uno.anahata.ai.context.provider.ContextProvider
uno.anahata.ai.context.provider.spi.CoreSystemInstructionsMdFileProvider
A context provider that loads the core system instructions from a Markdown
file in the classpath.
These instructions define the AI's identity, core principles, and general operational guidelines.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ContextProvider
getDescription
-
Constructor Details
-
CoreSystemInstructionsMdFileProvider
public CoreSystemInstructionsMdFileProvider()
-
-
Method Details
-
getId
Description copied from class:ContextProviderGets the unique identifier for this provider.This ID is used for internal tracking, configuration, and persistence.
- Specified by:
getIdin classContextProvider- Returns:
- A non-null, unique string ID (e.g., "core-context-summary").
-
getDisplayName
Description copied from class:ContextProviderGets the human-readable display name for this provider.- Specified by:
getDisplayNamein classContextProvider- Returns:
- A non-null, descriptive name.
-
getParts
Description copied from class:ContextProviderGenerates a list ofPartobjects to be included in the model's prompt.This method is called by the
ContentFactorybefore each request. Implementations should be efficient and avoid long-running operations.- Specified by:
getPartsin classContextProvider- Parameters:
chat- The current Chat instance, providing access to the session state.- Returns:
- A list of Parts, or an empty list if the provider has no content to add.
-
