UNPKG

@langchain/langgraph

Version:
14 lines (13 loc) 723 B
//#region src/state/types.ts function isStandardSchema(schema) { return typeof schema === "object" && schema !== null && "~standard" in schema && typeof schema["~standard"] === "object" && schema["~standard"] !== null && "validate" in schema["~standard"]; } function isStandardJSONSchema(schema) { return typeof schema === "object" && schema !== null && "~standard" in schema && typeof schema["~standard"] === "object" && schema["~standard"] !== null && "jsonSchema" in schema["~standard"]; } function isSerializableSchema(schema) { return isStandardSchema(schema) && isStandardJSONSchema(schema); } //#endregion export { isSerializableSchema, isStandardJSONSchema, isStandardSchema }; //# sourceMappingURL=types.js.map