limonada
v1.0.23
Published
SDK for interacting with the Limonada API
Readme
Limonada SDK
A simple SDK for interacting with the Limonada API.
Installation
npm install limonada
# or
yarn add limonadaUsage
import { Limonada } from 'limonada';
const limonada = new Limonada({
apiKey: 'your_api_key',
});
// Make API calls
async function main() {
// Create a new Thread
const newThread = await limonada.createThread();
// Get the Thread with all the messages
const getThread = await limonada.getThread(newThread.id, {
limitMessages: 40
});
// Add a message or messages to the thread
const addMessages = await limonada.addMessages(newThread.id, [
{
role: 'user',
content: 'Hello, how are you?',
},
]);
}