UNPKG

@pinecone-database/pinecone

Version:

This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.

57 lines 2.33 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Pinecone Assistant Data Plane API * Pinecone Assistant Engine is a context engine to store and retrieve relevant knowledge from millions of documents at scale. This API supports interactions with assistants. * * The version of the OpenAPI document: 2025-04 * Contact: support@pinecone.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ReferenceModelToJSON = exports.ReferenceModelFromJSONTyped = exports.ReferenceModelFromJSON = exports.instanceOfReferenceModel = void 0; const runtime_1 = require("../runtime"); const AssistantFileModel_1 = require("./AssistantFileModel"); const HighlightModel_1 = require("./HighlightModel"); /** * Check if a given object implements the ReferenceModel interface. */ function instanceOfReferenceModel(value) { let isInstance = true; return isInstance; } exports.instanceOfReferenceModel = instanceOfReferenceModel; function ReferenceModelFromJSON(json) { return ReferenceModelFromJSONTyped(json, false); } exports.ReferenceModelFromJSON = ReferenceModelFromJSON; function ReferenceModelFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, AssistantFileModel_1.AssistantFileModelFromJSON)(json['file']), 'pages': !(0, runtime_1.exists)(json, 'pages') ? undefined : json['pages'], 'highlight': !(0, runtime_1.exists)(json, 'highlight') ? undefined : (0, HighlightModel_1.HighlightModelFromJSON)(json['highlight']), }; } exports.ReferenceModelFromJSONTyped = ReferenceModelFromJSONTyped; function ReferenceModelToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'file': (0, AssistantFileModel_1.AssistantFileModelToJSON)(value.file), 'pages': value.pages, 'highlight': (0, HighlightModel_1.HighlightModelToJSON)(value.highlight), }; } exports.ReferenceModelToJSON = ReferenceModelToJSON; //# sourceMappingURL=ReferenceModel.js.map