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

Function createComponent

plugins/plugin-eval/src/core/budget.js:8–15  ·  view source on GitHub ↗
(label, componentPath, tokens, note)

Source from the content-addressed store, hash-verified

6import { estimateTokenCount, sumTokenCounts } from "../lib/tokens.js";
7
8function createComponent(label, componentPath, tokens, note) {
9 return {
10 label,
11 path: componentPath,
12 tokens,
13 note,
14 };
15}
16
17function buildBudgetBucket(value, thresholds, components) {
18 const [goodMax, moderateMax, heavyMax] = thresholds;

Callers 4

computeSkillBudgetFunction · 0.85
computePluginBudgetFunction · 0.85
computeBudgetProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected