@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
16 lines • 833 B
TypeScript
import type { RunScore, ScoreStore, ScoreWhere } from './score-store.js';
/**
* A fully in-memory {@link ScoreStore} for unit tests and the offline demo.
*
* Append-only: `recordScores` never replaces a previous verdict, so re-scoring the same run after a
* scorer changed leaves both rows and the history stays auditable. Callers that want one row per
* `(runId, scorer)` skip the already-scored runs via {@link InMemoryScoreStore.scoredRunIds}, which
* is what `runEvaluation` does by default.
*/
export declare class InMemoryScoreStore implements ScoreStore {
private readonly scores;
recordScores(scores: RunScore[]): Promise<void>;
scoredRunIds(scorer: string, runIds: string[]): Promise<string[]>;
listScores(where?: ScoreWhere): Promise<RunScore[]>;
}
//# sourceMappingURL=in-memory-score-store.d.ts.map