(agent: Agent)
| 116 | } |
| 117 | |
| 118 | async getStats(agent: Agent): Promise<AgentStats> { |
| 119 | const cached = this.statsCache.get(agent.url); |
| 120 | if (cached) return cached; |
| 121 | |
| 122 | const stats = await this.fetchStats(agent); |
| 123 | this.statsCache.set(agent.url, stats); |
| 124 | return stats; |
| 125 | } |
| 126 | |
| 127 | private async fetchStats(agent: Agent): Promise<AgentStats> { |
| 128 | const stats: AgentStats = {}; |
no test coverage detected