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