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

Function createMetric

plugins/plugin-eval/src/core/schema.js:83–101  ·  view source on GitHub ↗
({
  id,
  category,
  value,
  unit,
  band = "info",
  source = "core",
  targetPath = null,
})

Source from the content-addressed store, hash-verified

81}
82
83export function createMetric({
84 id,
85 category,
86 value,
87 unit,
88 band = "info",
89 source = "core",
90 targetPath = null,
91}) {
92 return {
93 id,
94 category,
95 value,
96 unit,
97 band,
98 source,
99 ...(targetPath ? { targetPath } : {}),
100 };
101}
102
103export function createArtifact({
104 id,

Callers 7

analyzeObservedUsageFunction · 0.90
addBudgetFindingsFunction · 0.90
evaluatePluginFunction · 0.90
analyzeCoverageArtifactsFunction · 0.90
analyzePythonFilesFunction · 0.90
analyzeTypeScriptFilesFunction · 0.90
evaluateSkillFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected