npm.io
0.1.1 • Published 4d ago

@crtrs/driver

Licence
MIT
Version
0.1.1
Deps
0
Size
10 kB
Vulns
0
Weekly
0

@crtrs/driver

Node client for Driver.

npm i @crtrs/driver
const { Driver } = require('@crtrs/driver');

const driver = new Driver({ apiKey: 'dr_...' }); // or DRIVER_API_KEY

driver.on('action', (ev) => console.log(ev.tool));

const done = await driver.run('what is https://creators.industries about?');
console.log(done.result);

Events: plan, plan_item_start, action, done, fatal. Types in index.d.ts.

MIT

Keywords