UNPKG

semem

Version:

Semantic Memory for Intelligent Agents

17 lines (15 loc) 451 B
/** Base class for programmatic API processors. * * message is a JSON object with fields corresponding to the necessary parameters * process(message) returns a copy of the original message, augmented with fields created in the relevant processing */ class Processor { constructor(config) { this.config = config; } async process(message) { // processing calls return message; } } export default Processor;