Getting Started

Official documentation for the Secton SDK, a TypeScript/JavaScript library that enables seamless interaction with the Secton API.

Installation

Install the SDK via npm:

npm install secton

Quick Start

Here's a basic example to get you started:

import { createClient } from 'secton';

const client = createClient({
  apiKey: 'your-api-key'
});

// simple chat
const response = await client.ask('Hello, how are you?');
console.log(response);

Note: Replace 'your-api-key' with your actual API key. We recommend using environment variables.


🎉 Congratulations! If you followed the instructions above correctly, you should've gotten your first response using the Secton SDK.


For more information and resources, visit the npm package page.

Last updated

Was this helpful?