@langchain/core
Version:
Core LangChain.js abstractions and schemas
1 lines • 754 B
Source Map (JSON)
{"version":3,"file":"never.cjs","names":["parseAnyDef"],"sources":["../../../../src/utils/zod-to-json-schema/parsers/never.ts"],"sourcesContent":["import { Refs } from \"../Refs.js\";\nimport { JsonSchema7AnyType, parseAnyDef } from \"./any.js\";\n\nexport type JsonSchema7NeverType = {\n not: JsonSchema7AnyType;\n};\n\nexport function parseNeverDef(refs: Refs): JsonSchema7NeverType | undefined {\n return refs.target === \"openAi\"\n ? undefined\n : {\n not: parseAnyDef({\n ...refs,\n currentPath: [...refs.currentPath, \"not\"],\n }),\n };\n}\n"],"mappings":";;AAOA,SAAgB,cAAc,MAA8C;AAC1E,QAAO,KAAK,WAAW,WACnB,KAAA,IACA,EACE,KAAKA,YAAAA,YAAY;EACf,GAAG;EACH,aAAa,CAAC,GAAG,KAAK,aAAa,MAAM;EAC1C,CAAC,EACH"}