@rodrigojuarez/rj-test-console
v0.1.5
Published
React component for testing out different queries against the Snips AI SDK.
Downloads
5
Readme
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:
[email protected]: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