npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

@rodrigojuarez/rj-test-console

0.1.5 • Public • Published

rj-test-console

React component for testing out different queries against the Snips AI SDK

Installation

npm install -s @rodrigojuarez/rj-test-console

Usage

Import the component

import { TestConsole } from '@rodrigojuarez/rj-test-console';

Import the CSS

If your project has set up appropriate CSS loaders, just import the CSS

import '@rodrigojuarez/rj-test-console/dist/index.css';

Render

<TestConsole session="s%3ABXxkzdrbtZLnSMjuAZTBGHplmmd9qR0v.%2FjksFPLq7a0mHdFLKcW2LuQ4O28vjRuEoOl7rFptBVU" assistantId="proj_xvDawrBVG"></TestConsole>
TestConsole Props Type Description
assistantId string, required Assistant ID
session string, required Snips AI SDK session

Examples

Clone the repo first:

git@github.com:rodrijuarez/rj-test-console.git

Then run npm install (or yarn), and finally npm run start (or yarn), and edit the file src/App.js with your own session and assistantId

Keywords

none

install

npm i @rodrigojuarez/rj-test-console

Downloadsweekly downloads

3

version

0.1.5

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability