{"_id":"@agent-utils/core","name":"@agent-utils/core","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-utils/core","version":"0.1.0","description":"Core utility functions for building reliable AI agents","keywords":["ai","agent","llm","chatbot","utilities","ai-agents"],"author":{"name":"Dheeraj Kumar","email":"dheerajatoria@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Dheerajprogrammer/-agent-utils-core.git"},"homepage":"https://github.com/Dheerajprogrammer/-agent-utils-coree#readme","bugs":{"url":"https://github.com/Dheerajprogrammer/-agent-utils-core/issues"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"engines":{"node":">=16"},"devDependencies":{"typescript":"^5.3.3"},"_id":"@agent-utils/core@0.1.0","gitHead":"eef8677d0ff52501304608e93eb0c54f99e337d9","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-JqOdYtgpvDVECvYOQD6C5LISPhAV9FFSvDBdOEAo+ZXSyn3KF5cLJnTxgVNE7Lv58mMJeXuwoi0pm9kEC94mLQ==","shasum":"c65ba908e8ea921d6b5495b00de9d1c1ca59c67c","tarball":"https://registry.npmjs.org/@agent-utils/core/-/core-0.1.0.tgz","fileCount":26,"unpackedSize":10232,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCARGm6EkLNPBgLu7dzM3uXtYTjKEh7NHQfqiumVw+M+QIhAOvpBAexpR2pHOqGihMH7vGDQ8LalRxzsOOKzfWxAsye"}]},"_npmUser":{"name":"dheerajatoria","email":"dheerajatoria@gmail.com"},"directories":{},"maintainers":[{"name":"dheerajatoria","email":"dheerajatoria@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.1.0_1771019976955_0.15709140558455448"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-13T21:59:36.847Z","0.1.0":"2026-02-13T21:59:37.100Z","modified":"2026-02-13T21:59:37.325Z"},"maintainers":[{"name":"dheerajatoria","email":"dheerajatoria@gmail.com"}],"description":"Core utility functions for building reliable AI agents","homepage":"https://github.com/Dheerajprogrammer/-agent-utils-coree#readme","keywords":["ai","agent","llm","chatbot","utilities","ai-agents"],"repository":{"type":"git","url":"git+https://github.com/Dheerajprogrammer/-agent-utils-core.git"},"author":{"name":"Dheeraj Kumar","email":"dheerajatoria@gmail.com"},"bugs":{"url":"https://github.com/Dheerajprogrammer/-agent-utils-core/issues"},"license":"MIT","readme":"# @agent-utils/core\r\n\r\nCore utility functions for building **reliable, predictable AI agents**.  \r\nFramework-agnostic • LLM-optional • Production-friendly.\r\n\r\n> Think of this as **lodash for AI agents**.\r\n\r\n---\r\n\r\n## ✨ Why this package exists\r\n\r\nEvery AI agent ends up re-building the same foundational logic:\r\n- input normalization  \r\n- intent detection  \r\n- entity extraction  \r\n- command parsing  \r\n- guardrails  \r\n- confidence scoring  \r\n- lightweight memory helpers  \r\n\r\n`@agent-utils/core` provides these **boring but essential utilities**, so you can focus on business logic—not plumbing.\r\n\r\n---\r\n\r\n## 📦 Installation\r\n\r\n```bash\r\nnpm install @agent-utils/core\r\n```\r\n\r\n---\r\n\r\n## 🧩 What’s included\r\n\r\n| Category | Utilities |\r\n|-------|---------|\r\nNormalization | normalizeBudget, normalizePhone, normalizeText |\r\nIntent | detectIntent |\r\nEntities | extractEntities |\r\nCommands | parseCommand |\r\nGuardrails | withinWorkingHours, rateLimit |\r\nScoring | confidenceScore |\r\nMemory | summarizeConversation |\r\n\r\n---\r\n\r\n## 🚀 Quick Example\r\n\r\n```ts\r\nimport {\r\n  normalizeBudget,\r\n  detectIntent,\r\n  extractEntities,\r\n  parseCommand,\r\n  confidenceScore\r\n} from \"@agent-utils/core\";\r\n\r\nnormalizeBudget(\"around 1 cr\");\r\ndetectIntent(\"I want to visit this weekend\");\r\n```\r\n\r\n---\r\n\r\n## 📄 License\r\n\r\nMIT\r\n","readmeFilename":"README.md","_rev":"1-c534b5c65d673ec5c61348c05427be47"}