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

@wxflows/sdk

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wxflows/sdk

The watsonx Flows Engine SDK

  • 0.2.0-beta.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
63
increased by472.73%
Maintainers
0
Weekly downloads
 
Created
Source

Copyright IBM Corp. 2023, 2024

wxflows SDK

The wxflows sofware development kit (SDK) enables you to set up a client to query an endpoint from wxflows AI with Retrieval-Augmented Generation (RAG) and Generative AI (GenAI) models.

Installing

npm install wxflows

Import into Project

import wxflows from 'wxflows' // const wxflows = require('wxflows')

async function getData() {
  const model = new wxflows({
    endpoint: process.env.ENDPOINT,
    apikey: process.env.APIKEY,
  })

  console.log('model', model)
}

getData()

Test the SDK Locally

Clone the repository

Build

Install the modules, build the typescript files

npm install
npm run build

Test

To execute the script.js file, test the module.

npm install dotenv node-fetch
cp .env.sample .env
npm run test

Export

To pack the sdk for export

npm pack

Import the wxflows-<version>.tgz file into your package.json

"dependencies": {
    "wxflows": "file:wxflows-<version>.tgz"
},

FAQs

Package last updated on 13 Nov 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