@langchain/core
Version:
Core LangChain.js abstractions and schemas
26 lines (25 loc) • 890 B
TypeScript
import { JsonSchema7Type } from "../parseTypes.js";
import "../Refs.js";
import "zod/v3";
//#region src/utils/zod-to-json-schema/parsers/union.d.ts
declare const primitiveMappings: {
readonly ZodString: "string";
readonly ZodNumber: "number";
readonly ZodBigInt: "integer";
readonly ZodBoolean: "boolean";
readonly ZodNull: "null";
};
type JsonSchema7Primitive = (typeof primitiveMappings)[keyof typeof primitiveMappings];
type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType;
type JsonSchema7PrimitiveUnionType = {
type: JsonSchema7Primitive | JsonSchema7Primitive[];
} | {
type: JsonSchema7Primitive | JsonSchema7Primitive[];
enum: (string | number | bigint | boolean | null)[];
};
type JsonSchema7AnyOfType = {
anyOf: JsonSchema7Type[];
};
//#endregion
export { JsonSchema7UnionType, primitiveMappings };
//# sourceMappingURL=union.d.ts.map