0.0.3 • Published 11 months ago

jarvis-kb-react v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Installing

Package manager

Using npm:

$ npm install jarvis-kb-react

Using yarn:

$ yarn add jarvis-kb-react

Once the package is installed, you can import the library using import:

import { KnowledgeBase, MessageInput, MessageList, Thread, ThreadChat, ThreadList } from 'jarvis-kb-react';

Example

import { JarvisKBOptions, JarvisKB } from 'jarvis-kb-node';
import { Header, KnowledgeBase, MessageInput, MessageList, Thread, ThreadChat, ThreadList } from 'jarvis-kb-react';

function App() {
  const kbOptions: JarvisKBOptions = {
    publicKey: "your-public-key",
    secretKey: "your-secret-key",
  }
 
  const jarvisKB = new JarvisKB(kbOptions);
  return ( 
    <>
      <KnowledgeBase client = {jarvisKB} >
        <Thread>
          <ThreadList/>
          <ThreadChat>
            <Header/>
            <MessageList/>  
            <MessageInput/>
          </ThreadChat>
        </Thread>
      </KnowledgeBase> 
    </>
  ); 
}

export default App;

License

MIT