Package Exports
- @webgpt/sdk
- @webgpt/sdk/dist/esm/index.es.js
- @webgpt/sdk/dist/umd/index.umd.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@webgpt/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⏣ WebGPT SDK
WebGPT SDK is a TypeScript / JavaScript library for interacting with the WebGPT API.
Usage
npm i @webgpt/sdk
import { WebgptSdk } from '@webgpt/sdk';
const webgpt = new WebgptSdk({
apiKey: 'YOUR_API_KEY',
});
const { assignment } = await webgpt.createAssignment(`Krokodýlí Zoo`, (taskProgress) => {
console.info(`Progress:`, taskProgress);
});
console.info(`Assignment:`, assignment);