Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Type Alias MessagesModel

    MessagesModel: string[] | MessageModel[]

    The messages to send to an assistant. Can be a list of strings or a list of MessageModel objects. Strings are sent as user messages; use objects to include assistant replies in the conversation.

    import type { MessagesModel } from '@pinecone-database/pinecone';
    const messages: MessagesModel = [
    { role: 'user', content: 'How do I return an order?' },
    ];