@conciergus/chat - v0.3.1
    Preparing search index...

    Interface AgentPlugin

    Agent plugin interface

    interface AgentPlugin {
        onAgentRegister?: (
            agent: AgentInfo,
            context: PluginContext,
        ) => AgentInfo | Promise<AgentInfo>;
        onAgentSelect?: (
            agent: AgentInfo,
            context: PluginContext,
        ) => AgentInfo | Promise<AgentInfo>;
        onAgentResponse?: (
            response: any,
            agent: AgentInfo,
            context: PluginContext,
        ) => any;
    }
    Index

    Properties

    onAgentRegister?: (
        agent: AgentInfo,
        context: PluginContext,
    ) => AgentInfo | Promise<AgentInfo>

    Process agent registration

    onAgentSelect?: (
        agent: AgentInfo,
        context: PluginContext,
    ) => AgentInfo | Promise<AgentInfo>

    Process agent selection

    onAgentResponse?: (
        response: any,
        agent: AgentInfo,
        context: PluginContext,
    ) => any

    Handle agent response