ART Framework API Docs
    Preparing search index...

    Class AgentDiscoveryService

    Service for discovering A2A protocol compatible agents. Implements the A2A discovery standards for finding and identifying compatible agents.

    Index

    Constructors

    Methods

    • Discovers all available A2A agents from the discovery endpoint.

      Parameters

      • OptionaltraceId: string

        Optional trace ID for request tracking

      Returns Promise<A2AAgentInfo[]>

      Promise resolving to array of discovered A2A agents

      If discovery fails or no agents are found

    • Finds agents by specific capabilities.

      Parameters

      • capabilities: string[]

        Array of required capabilities

      • OptionaltraceId: string

        Optional trace ID for request tracking

      Returns Promise<A2AAgentInfo[]>

      Promise resolving to agents that have all specified capabilities

    • Finds the top K A2A agents for a specific task type, ranked by suitability. This method acts as a pre-filter, returning a list of the most promising candidates for an LLM to make the final selection from.

      Parameters

      • taskType: string

        The type of task (e.g., 'analysis', 'research', 'generation')

      • topK: number = 3

        The maximum number of agents to return.

      • OptionaltraceId: string

        Optional trace ID for request tracking.

      Returns Promise<A2AAgentInfo[]>

      Promise resolving to a ranked array of matching agents.

      TODO: Revisit and enhance the scoring algorithm.