@sqlrooms/evals / parseRunEvidence
Function: parseRunEvidence()
parseRunEvidence(
input):object
Parses an object or serialized JSON run-evidence envelope.
Parameters
| Parameter | Type |
|---|---|
input | unknown |
Returns
object
| Name | Type |
|---|---|
schemaVersion | 1 |
runId | string |
scenario | {[key: string]: JsonValue; id: string; version: number; repetition: number; } |
target | {[key: string]: JsonValue; type: string; profileName: string; profileVersion: number; } |
repository? | {[key: string]: JsonValue; commitSha: string; dirty: boolean; workflowUrl?: string; } |
model | {[key: string]: JsonValue; provider: string; modelId: string; configuredRevision?: string; upstreamProvider?: string; settings: JsonObject; } |
timing | {[key: string]: JsonValue; startedAt: string; endedAt: string; latencyMs: number; } |
status | "error" | "passed" | "failed" | "cancelled" |
promptTurns | object[] |
finalAnswer | string |
events | object[] |
usage? | {[key: string]: JsonValue; inputTokens?: number; outputTokens?: number; totalTokens?: number; costUsd?: number; grader?: JsonObject; } |
finalState? | JsonValue |
checkResults | object[] |
metadata | JsonObject |