mongodb-rag-core
Version:
Common elements used by MongoDB Chatbot Framework components.
18 lines • 677 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.References = exports.Reference = void 0;
const zod_1 = require("zod");
exports.Reference = zod_1.z.object({
url: zod_1.z.string(),
title: zod_1.z.string(),
metadata: zod_1.z
.object({
sourceName: zod_1.z.string().optional().describe("The name of the source."),
sourceType: zod_1.z.string().optional(),
tags: zod_1.z.array(zod_1.z.string()).optional(),
})
.passthrough() // We accept additional unknown metadata fields
.optional(),
});
exports.References = zod_1.z.array(exports.Reference);
//# sourceMappingURL=References.js.map