ai11y docs
    Preparing search index...

    Function runAgentAdapter

    @ai11y/core

    Core types and utilities shared across all ai11y packages.

    • Select and run the appropriate agent based on configuration.

      This adapter handles agent selection logic:

      • "llm": Always use LLM agent (requires llmConfig)
      • "rule-based": Always use rule-based agent
      • "auto": Use LLM if configured, fallback to rule-based on error or when offline

      Parameters

      Returns Promise<AgentResponse>