Package Exports
- telecom-mas-agent
- telecom-mas-agent/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (telecom-mas-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Telecom MAS Agent
A telecom multi-agent system for managing call balances and SMS operations.
Installation
npm install telecom-mas-agentUsage
const TelecomMASAgent = require('telecom-mas-agent');
const agent = new TelecomMASAgent();
(async () => {
await agent.initializeUser('user1', 100);
console.log(await agent.checkCallBalance('user1'));
console.log(await agent.makeCall('user1', 30));
console.log(await agent.sendSMS('+1234567890', 'Hello!'));
console.log(agent.getSentMessages());
console.log(agent.introduce());
})();Features
- Initialize user balances
- Check call balance
- Make calls (deduct minutes)
- Send SMS
- Retrieve SMS history
License
MIT