MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / refToLookupKey

Function refToLookupKey

ts/workflow-core/src/variable/operations.ts:47–56  ·  view source on GitHub ↗
(ref: Reference)

Source from the content-addressed store, hash-verified

45
46/** Convert a Reference to the canonical lookup key used in the variables record. */
47export function refToLookupKey(ref: Reference): string {
48 switch (ref.srcId) {
49 case "declared":
50 return declaredVarKey(ref.varId);
51 case "fnarg":
52 return fnargKey(ref.varId);
53 default:
54 return nodeOutputVarKey(ref.srcId, ref.varId);
55 }
56}
57
58// ============================================================================
59// Variable UID Helpers for dynamic variable definitions (e.g. Agent output definitions)

Callers 7

formatParamDisplayFunction · 0.90
renderStaticRowFunction · 0.90
renderListEntryRowFunction · 0.90
renderInputFunction · 0.90
computeNodeDiagnosticsFunction · 0.90
resolveExpressionTypeFunction · 0.90
resolveExpressionFunction · 0.90

Calls 3

declaredVarKeyFunction · 0.85
fnargKeyFunction · 0.85
nodeOutputVarKeyFunction · 0.85

Tested by

no test coverage detected