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

Function hasBudgetPressure

plugins/plugin-eval/src/core/presentation.js:40–43  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

38}
39
40function hasBudgetPressure(result) {
41 return ["heavy", "excessive"].includes(result.budgets?.trigger_cost_tokens?.band) ||
42 ["heavy", "excessive"].includes(result.budgets?.invoke_cost_tokens?.band);
43}
44
45function hasWarningsOrFailures(result) {
46 return result.checks.some((check) => check.status === "fail" || check.status === "warn");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected