MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveRef

Function resolveRef

packages/kernel/ir/src/serialize.ts:59–67  ·  view source on GitHub ↗
(ref: string | undefined)

Source from the content-addressed store, hash-verified

57 const types = serialized.types;
58
59 function resolveRef(ref: string | undefined): JsonSchema | undefined {
60 if (!ref) return undefined;
61 const schema = types[ref];
62 if (!schema) return undefined;
63 return {
64 ...(schema as JsonSchema),
65 $defs: types as Record<string, JsonSchema>,
66 };
67 }
68
69 return {
70 tools: serialized.tools.map((tool) => ({

Callers 2

deserializeToJsonSchemaFunction · 0.70
makeProviderFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected