Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cs-chatbots/router-masterbot-tools

Package Overview
Dependencies
Maintainers
4
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cs-chatbots/router-masterbot-tools

This module provides Wingbot `Processor` plugins extending the Wingbot core functionality. In the project such plugin is initialized in the following way:

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
37
increased by23.33%
Maintainers
4
Weekly downloads
 
Created
Source

Router Masterbot Tools

This module provides Wingbot Processor plugins extending the Wingbot core functionality. In the project such plugin is initialized in the following way:

const { Processor } = require('wingbot');
const { PLUGIN_CLASS } = require('router-masterbot-tools');

const processor = new Processor(...);
processor.plugin(new PLUGIN_CLASS());

SharedContextPlugin

The purpose of this plugin is to simplify handling of a shared context in a multi bot environment. The plugin ensures the following functionality:

  1. The shared context sent by the router in the pass_thread_control event is available in req.sharedContext and it is also stored in the conversation state.

  2. Adds the method setSharedContext(data: Object) to the Responder object. This method enables to inform the router about the shared context update. The method also updates the local copy of the shared context in the conversation state. The shared context is not overwritten but merged.

  3. Overrides Responder.trackAsSkill() to store the skill not only in the conversation state but also in the shared context. Additionally, it saves appId in shared context every time a skill is stored.

Genbot

FAQs

Package last updated on 26 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc