@pinecone-database/pinecone
Version:
This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.
44 lines (43 loc) • 1.29 kB
TypeScript
/**
* 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.
*/
/**
* The UsageModel describes the usage of a chat completion.
* @export
* @interface UsageModel
*/
export interface UsageModel {
/**
*
* @type {number}
* @memberof UsageModel
*/
promptTokens?: number;
/**
*
* @type {number}
* @memberof UsageModel
*/
completionTokens?: number;
/**
*
* @type {number}
* @memberof UsageModel
*/
totalTokens?: number;
}
/**
* Check if a given object implements the UsageModel interface.
*/
export declare function instanceOfUsageModel(value: object): boolean;
export declare function UsageModelFromJSON(json: any): UsageModel;
export declare function UsageModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageModel;
export declare function UsageModelToJSON(value?: UsageModel | null): any;