@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
39 lines • 1.45 kB
TypeScript
import type { ListScoresResponse, SaveScorePayload, ScoreRowData, ScoringSource } from '../../../evals/types.js';
import type { StoragePagination } from '../../types.js';
import type { InMemoryDB } from '../inmemory-db.js';
import { ScoresStorage } from './base.js';
export declare class ScoresInMemory extends ScoresStorage {
private db;
constructor({ db }: {
db: InMemoryDB;
});
dangerouslyClearAll(): Promise<void>;
getScoreById({ id }: {
id: string;
}): Promise<ScoreRowData | null>;
saveScore(score: SaveScorePayload): Promise<{
score: ScoreRowData;
}>;
listScoresByScorerId({ scorerId, pagination, entityId, entityType, source, }: {
scorerId: string;
pagination: StoragePagination;
entityId?: string;
entityType?: string;
source?: ScoringSource;
}): Promise<ListScoresResponse>;
listScoresByRunId({ runId, pagination, }: {
runId: string;
pagination: StoragePagination;
}): Promise<ListScoresResponse>;
listScoresByEntityId({ entityId, entityType, pagination, }: {
entityId: string;
entityType: string;
pagination: StoragePagination;
}): Promise<ListScoresResponse>;
listScoresBySpan({ traceId, spanId, pagination, }: {
traceId: string;
spanId: string;
pagination: StoragePagination;
}): Promise<ListScoresResponse>;
}
//# sourceMappingURL=inmemory.d.ts.map