Skip to content

add_agent_profile

Agent Profile Plugin

Classes

AddAgentProfilePlugin

Bases: BaseAIPlugin

Plugin for adding agent profiles to the chat.

This plugin is responsible for adding agent descriptions and personalities to the chat. It retrieves the agent descriptions and personalities from the participant settings and inserts them into the chat messages at the appropriate positions.

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