UNPKG

rapid-intent-builder

Version:

Rapid intent builder for quick prototyping/development of complex intent/s

19 lines (15 loc) 301 B
const Intent = require('./../../intent'); class RasaIntent extends Intent { constructor(name, samples, slots) { super(name, samples, slots); } toJson() { return this.samples.map(sample => { return {intent: this.name, text: sample} }); } } module.exports = RasaIntent;