MCPcopy Create free account
hub / github.com/Roy3838/Observer / getRecentAgentRuns

Function getRecentAgentRuns

app/src/utils/agentParser.ts:236–239  ·  view source on GitHub ↗

* Gets recent runs for an agent from IterationStore * @param agentId Agent ID * @param count Number of recent runs to fetch * @returns Array of recent iteration data

(agentId: string, count: number)

Source from the content-addressed store, hash-verified

234 * @returns Array of recent iteration data
235 */
236async function getRecentAgentRuns(agentId: string, count: number): Promise<IterationData[]> {
237 // Oldest first, like the agent saw them
238 return (await IterationStore.getRuns(agentId, { limit: count, images: true })).reverse();
239}
240
241/**
242 * Fetches complete agent reference data

Callers 1

fetchAgentReferenceDataFunction · 0.85

Calls 1

getRunsMethod · 0.80

Tested by

no test coverage detected