time_awareness
Agent Time Awareness Plugin
Attributes
Classes
TimeAwarenessPlugin
Bases: BaseAIPlugin
Plugin that adds time awareness functionality to the AI system.
Functions
before_prompt_rendered
before_prompt_rendered(
request: ChatCompletionRequest,
sa_session: SASession,
neo4j_session: NJSession,
context: EleanorAIRequestContext,
chat: CanonicalChat,
) -> CanonicalChat
Triggered before the CananicalChat object is rendered into the LLM-specific prompt string.
Parameters:
-
request(ChatCompletionRequest) –The completion request object.
-
session(SASession) –The SQLAlchemy session object.
-
context(EleanorAIRequestContext) –The AI request context.
-
chat(CanonicalChat) –The chat object.
Returns:
-
CanonicalChat(CanonicalChat) –The updated chat object.