(agents: Agent[])
| 277 | } |
| 278 | |
| 279 | async discoverAll(agents: Agent[]): Promise<Map<string, AgentCapabilityProfile>> { |
| 280 | const profiles = new Map<string, AgentCapabilityProfile>(); |
| 281 | |
| 282 | await Promise.all( |
| 283 | agents.map(async (agent) => { |
| 284 | const profile = await this.discoverCapabilities(agent); |
| 285 | profiles.set(agent.url, profile); |
| 286 | }) |
| 287 | ); |
| 288 | |
| 289 | return profiles; |
| 290 | } |
| 291 | |
| 292 | getCapabilities(agentUrl: string): AgentCapabilityProfile | undefined { |
| 293 | return this.cache.get(agentUrl); |
no test coverage detected