UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

21 lines • 509 B
export function createRunIdObserver(onNewRun) { let lastRunId; return { observe(runId) { if (!runId) return; if (lastRunId === undefined) { lastRunId = runId; return; } if (runId !== lastRunId) { onNewRun(); lastRunId = runId; } }, reset() { lastRunId = undefined; }, }; } //# sourceMappingURL=observeRunId.js.map