Creates an instance of AgentDiscoveryService.
Optionalconfig: Partial<AgentDiscoveryConfig>The configuration for the service.
Clears the agent cache.
Discovers all available A2A agents from the discovery endpoint.
OptionaltraceId: stringOptional trace ID for request tracking
Promise resolving to array of discovered A2A agents
Finds agents by specific capabilities.
Array of required capabilities
OptionaltraceId: stringOptional trace ID for request tracking
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.
The type of task (e.g., 'analysis', 'research', 'generation')
The maximum number of agents to return.
OptionaltraceId: stringOptional trace ID for request tracking.
Promise resolving to a ranked array of matching agents.
Service for discovering A2A protocol compatible agents. Implements the A2A discovery standards for finding and identifying compatible agents.