Skip to content

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:

Returns:

Functions

time_awareness_timestamp

time_awareness_timestamp(
    agent_timezone: str | None = None,
) -> str