Skip to content

add_agent_special_instructions

Agent Special Instructions Plugin

Classes

AddAgentSpecialInstructionsPlugin

Bases: BaseAIPlugin

Plugin for adding special instructions from the responding agent to the chat.

This plugin is triggered before the CanonicalChat object is rendered into the LLM-specific prompt string. It checks if the responding agent has any special instructions and adds them to the chat.

Functions

before_prompt_rendered
before_prompt_rendered(
    request: ChatCompletionRequest,
    sa_session: SASession,
    neo4j_session: NJSession,
    context: EleanorAIRequestContext,
    chat: CanonicalChat,
) -> CanonicalChat

Triggered before the CanonicalChat object is rendered into the LLM-specific prompt string.

Parameters:

Returns:

Functions