MCPcopy Create free account
hub / github.com/openai/plugins / createEvaluationResult

Function createEvaluationResult

plugins/plugin-eval/src/core/schema.js:7–55  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

5export const SCHEMA_VERSION = 1;
6
7export function createEvaluationResult(target) {
8 return {
9 schemaVersion: SCHEMA_VERSION,
10 tool: {
11 name: TOOL_NAME,
12 version: TOOL_VERSION,
13 },
14 createdAt: new Date().toISOString(),
15 target: {
16 ...target,
17 relativePath: relativePath(process.cwd(), target.path),
18 },
19 summary: {
20 score: 0,
21 grade: "F",
22 riskLevel: "high",
23 riskReasons: [],
24 scoreBreakdown: {
25 startingScore: 100,
26 totalDeductions: 0,
27 finalScore: 0,
28 },
29 checkCounts: {
30 total: 0,
31 pass: 0,
32 warn: 0,
33 fail: 0,
34 info: 0,
35 error: 0,
36 warning: 0,
37 },
38 deductions: [],
39 categoryDeductions: [],
40 topRecommendations: [],
41 whyBullets: [],
42 fixFirst: [],
43 watchNext: [],
44 },
45 budgets: {},
46 observedUsage: null,
47 checks: [],
48 metrics: [],
49 artifacts: [],
50 extensions: [],
51 measurementPlan: null,
52 improvementBrief: null,
53 nextAction: null,
54 };
55}
56
57export function createCheck({
58 id,

Callers 1

analyzePathFunction · 0.90

Calls 1

relativePathFunction · 0.90

Tested by

no test coverage detected