UNPKG

@pinecone-database/pinecone

Version:

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

53 lines 1.86 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.MessageModelToJSON = exports.MessageModelFromJSONTyped = exports.MessageModelFromJSON = exports.instanceOfMessageModel = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the MessageModel interface. */ function instanceOfMessageModel(value) { let isInstance = true; return isInstance; } exports.instanceOfMessageModel = instanceOfMessageModel; function MessageModelFromJSON(json) { return MessageModelFromJSONTyped(json, false); } exports.MessageModelFromJSON = MessageModelFromJSON; function MessageModelFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'role': !(0, runtime_1.exists)(json, 'role') ? undefined : json['role'], 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'], }; } exports.MessageModelFromJSONTyped = MessageModelFromJSONTyped; function MessageModelToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'role': value.role, 'content': value.content, }; } exports.MessageModelToJSON = MessageModelToJSON; //# sourceMappingURL=MessageModel.js.map