@meldcx/agent
v1.0.43
Published
Agent Library for MeldCX AgentM
Downloads
404
Readme
MeldCX Agent Library for AgentM
Please see https://docs.meld.cx/ for full documentation
Initialising the MeldCX Agent Library
To initialise the MeldCX Agent Library use the following code.
const Agent = require('@meldcx/agent');
const agent = new Agent();
agent.onReady(() => {
// This code will be executed when the agent loads.
});
// Using a promise
agent.onReadyAsync().then(() => console.log('Agent is ready!'));
// Using async await
const init = async () => {
await agent.onReadyAsync();
console.log('Agent is ready');
};