@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

Readme

Keywords

none

Package Sidebar

Install

npm i @rodrigojuarez/rj-test-console

Weekly Downloads

1

Version

0.1.5

License

ISC

Last publish

Collaborators

  • pocketjoso
  • rodrigojuarez