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.
Example
importtype { MessagesModel } from'@pinecone-database/pinecone'; constmessages: MessagesModel = [ { role:'user', content:'How do I return an order?' }, ];
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.