UNPKG

@pinecone-database/pinecone

Version:

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

55 lines (54 loc) 1.73 kB
/** * 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. */ import type { MessageModel } from './MessageModel'; /** * The ChoiceModel describes a single choice in a chat completion response * @export * @interface ChoiceModel */ export interface ChoiceModel { /** * * @type {string} * @memberof ChoiceModel */ finishReason?: ChoiceModelFinishReasonEnum; /** * * @type {number} * @memberof ChoiceModel */ index?: number; /** * * @type {MessageModel} * @memberof ChoiceModel */ message?: MessageModel; } /** * @export */ export declare const ChoiceModelFinishReasonEnum: { readonly Stop: "stop"; readonly Length: "length"; readonly ContentFilter: "content_filter"; readonly FunctionCall: "function_call"; }; export type ChoiceModelFinishReasonEnum = typeof ChoiceModelFinishReasonEnum[keyof typeof ChoiceModelFinishReasonEnum]; /** * Check if a given object implements the ChoiceModel interface. */ export declare function instanceOfChoiceModel(value: object): boolean; export declare function ChoiceModelFromJSON(json: any): ChoiceModel; export declare function ChoiceModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChoiceModel; export declare function ChoiceModelToJSON(value?: ChoiceModel | null): any;