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