Package uno.anahata.ai.context.provider


package uno.anahata.ai.context.provider
Defines the framework for dynamically injecting contextual information into the AI model's prompt. This package provides a flexible and extensible plugin architecture centered around the ContextProvider interface. Implementations of this interface can provide specific pieces of information, such as system properties, environment variables, or details about stateful resources currently in the chat. Key components:
  • ContextProvider: The core abstract class that defines the contract for all context-providing modules.
  • ContextPosition: An enum that specifies *where* in the prompt the context should be injected, allowing a distinction between permanent system instructions and temporary, just-in-time augmented context.
  • ContentFactory: The orchestrator that discovers, invokes, and assembles the content from all enabled providers at the appropriate time.