Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@workflowai/api

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workflowai/api

WorkflowAI typed API client

  • 1.4.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

workflowAI typed API client

Wrapper for workflowAI's OpenAPI specs, for node or browser

Install

npm install @workflowai/api

Initialize API

import { initWorkflowAIApi } from '@workflowai/api';

const workflowAIApi = initWorkflowAIApi({
  apiKey: '...', // optional, defaults to process.env.WORKFLOWAI_API_KEY
  apiUrl: '...', // optional, defaults to process.env.WORKFLOWAI_API_URL, then to https://api.workflowai.com
  use: [], // optional, fetch middlewares
});

Call endpoints

const { data: list } = await workflowAIApi.models.list();

console.log(list.models[0].providers[0].name);

const { data: run } = await workflowaiApi.runs.annotate({
  run_id: '1',
  score: 1,
});

console.log(run.scores);

Keywords

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc