UNPKG

@pinecone-database/pinecone

Version:

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

69 lines (68 loc) 2.59 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 list of queries / chats to chat an assistant * @export * @interface SearchCompletions */ export interface SearchCompletions { /** * * @type {Array<MessageModel>} * @memberof SearchCompletions */ messages: Array<MessageModel>; /** * If false, the assistant will return a single JSON response. If true, the assistant will return a stream of responses. * @type {boolean} * @memberof SearchCompletions */ stream?: boolean; /** * The large language model to use for answer generation * @type {string} * @memberof SearchCompletions */ model?: SearchCompletionsModelEnum; /** * Controls the randomness of the model's output: lower values make responses more deterministic, while higher values increase creativity and variability. If the model does not support a temperature parameter, the parameter will be ignored. * @type {number} * @memberof SearchCompletions */ temperature?: number; /** * Optionally filter which documents can be retrieved using the following metadata fields. * @type {object} * @memberof SearchCompletions */ filter?: object; } /** * @export */ export declare const SearchCompletionsModelEnum: { readonly Gpt4o: "gpt-4o"; readonly Gpt41: "gpt-4.1"; readonly O4Mini: "o4-mini"; readonly Claude35Sonnet: "claude-3-5-sonnet"; readonly Claude37Sonnet: "claude-3-7-sonnet"; readonly Gemini25Pro: "gemini-2.5-pro"; }; export type SearchCompletionsModelEnum = typeof SearchCompletionsModelEnum[keyof typeof SearchCompletionsModelEnum]; /** * Check if a given object implements the SearchCompletions interface. */ export declare function instanceOfSearchCompletions(value: object): boolean; export declare function SearchCompletionsFromJSON(json: any): SearchCompletions; export declare function SearchCompletionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchCompletions; export declare function SearchCompletionsToJSON(value?: SearchCompletions | null): any;