UNPKG

@langchain/core

Version:
1 lines 764 B
{"version":3,"file":"never.cjs","names":["refs: Refs","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,cAAcA,MAA8C;AAC1E,QAAO,KAAK,WAAW,WACnB,SACA,EACE,KAAKC,wBAAY;EACf,GAAG;EACH,aAAa,CAAC,GAAG,KAAK,aAAa,KAAM;CAC1C,EAAC,CACH;AACN"}