0.1.5 • Published 7 years ago

@rodrigojuarez/rj-test-console v0.1.5

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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 PropsTypeDescription
assistantIdstring, requiredAssistant ID
sessionstring, requiredSnips 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