(agentId: string)
| 391 | } |
| 392 | |
| 393 | public getIterationsForAgent(agentId: string): IterationData[] { |
| 394 | // Only return current session iterations (from memory) |
| 395 | const currentSessionId = this.currentSessions.get(agentId); |
| 396 | if (!currentSessionId) return []; |
| 397 | |
| 398 | return Array.from(this.iterations.values()) |
| 399 | .filter(iteration => iteration.agentId === agentId && iteration.sessionId === currentSessionId) |
| 400 | .sort((a, b) => a.sessionIterationNumber - b.sessionIterationNumber); |
| 401 | } |
| 402 | |
| 403 | public getLastToolsForAgent(agentId: string, limit: number = 3): ToolCall[] { |
| 404 | const iterations = this.getIterationsForAgent(agentId); |
no outgoing calls
no test coverage detected