(ref: string | undefined)
| 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) => ({ |
no outgoing calls
no test coverage detected