/** * Resolve `$ref` pointers in a remote tool's input schema before it is * converted. * * A `$ref` reached the converter's `default:` branch and became "anything": * no type, no shape, nothing for the model to work from. And because the * resulting node is inherently optional, a `$ref`'d field the server listed * as required stopped being enforced too — an empty payload validated * clean and was forwarded to the server instead of being rejected with the * "Required: " hint the executor already knows how to build. * * That is not an exotic shape. `$defs` + `$ref` is what several widely used * schema generators emit by default for a nested object, so a server that * did everything right presented its main argument to the model as `{}`. */ /** How deep to follow a schema before giving up. */ export declare const MAX_SCHEMA_DEPTH = 64; type JsonObject = Record; /** * Return the schema with every resolvable local `$ref` replaced by its * target. Non-local and dangling pointers, and the second visit to a * recursive one, degrade to whatever sibling keywords were present. */ export declare function inlineSchemaRefs(schema: JsonObject): JsonObject; export {}; //# sourceMappingURL=schema-refs.d.ts.map