utopianlabs
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

Utopian Labs TypeScript SDK

The Utopian Labs TypeScript SDK provides convenient access to the Utopian Labs API from applications written in server-side TypeScript.

Documentation

See the utopianlabs API docs for Node.js.

Requirements

Node 20 or higher.

Installation

Install the package with:

npm install utopianlabs
# or
yarn add utopianlabs

Usage

The package needs to be configured with your account's API key, which is available in the Utopian Labs API Keys page.

Create a new agent run

import { UtopianLabs } from "utopianlabs";
const utopianLabs = new UtopianLabs({ apiKey: "your-api-key" });

const run = await utopianLabs.agents.runs.create({
  agent: "r1",
  lead: {
    company: {
      website: "https://example.com",
    },
  },
});

console.log(run);

Fetch an agent run

import { UtopianLabs } from "utopianlabs";
const utopianLabs = new UtopianLabs({ apiKey: "your-api-key" });

const runData = await utopianLabs.agents.runs.get({
  id: "abc123",
});

console.log(runData);

Readme

Keywords

none

Package Sidebar

Install

npm i utopianlabs

Weekly Downloads

121

Version

0.1.12

License

MIT

Unpacked Size

179 kB

Total Files

19

Last publish

Collaborators

  • utopianlabs