{"_id":"@assay-ai/core","_rev":"5-e06c6bf28f07bf14689134350e686245","name":"@assay-ai/core","dist-tags":{"beta":"0.2.0-beta","latest":"1.3.1-beta"},"versions":{"0.1.0-beta":{"name":"@assay-ai/core","version":"0.1.0-beta","keywords":["llm","evaluation","testing","ai","typescript","metrics"],"license":"MIT","_id":"@assay-ai/core@0.1.0-beta","maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"homepage":"https://github.com/assay-ai/assay#readme","bugs":{"url":"https://github.com/assay-ai/assay/issues"},"dist":{"shasum":"1f276e5def18ea82998a29995e7d93aff62ac6ef","tarball":"https://registry.npmjs.org/@assay-ai/core/-/core-0.1.0-beta.tgz","fileCount":8,"integrity":"sha512-AT0w16lb6BAz26Fq5tWgPllSpynPGnZhwODcmNdZo58Y4IJGS0xU/Ej6oM5+NJwHDk2FRCmOaOW+q7an2X/aWQ==","signatures":[{"sig":"MEYCIQCAuP+yBcanUzz8kfSk3rdlg/oL/ssI9EAK9TCEuuzSfQIhAP26ihBUZReUphvU78Qs8sc8uofVSjAFu2aS0wdHlTsX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@assay-ai%2fcore@0.1.0-beta","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":485425},"main":"./dist/index.cjs","type":"module","_from":"file:assay-ai-core-0.1.0-beta.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aissam-nexus","email":"aissamirhir@gmail.com"},"_resolved":"/tmp/935a96af4437378eda022e475986972f/assay-ai-core-0.1.0-beta.tgz","_integrity":"sha512-AT0w16lb6BAz26Fq5tWgPllSpynPGnZhwODcmNdZo58Y4IJGS0xU/Ej6oM5+NJwHDk2FRCmOaOW+q7an2X/aWQ==","repository":{"url":"git+https://github.com/assay-ai/assay.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Core evaluation engine for the Assay LLM evaluation framework","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^3.0.0","typescript":"^5.7.0","@assay-ai/tsconfig":"0.0.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0-beta_1773150557355_0.2270404822152139","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-beta":{"name":"@assay-ai/core","version":"0.2.0-beta","keywords":["llm","evaluation","testing","ai","typescript","metrics"],"license":"MIT","_id":"@assay-ai/core@0.2.0-beta","maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"homepage":"https://github.com/assay-ai/assay#readme","bugs":{"url":"https://github.com/assay-ai/assay/issues"},"dist":{"shasum":"15adac5d4512b1145b82954f3a5b0686d0fdad5a","tarball":"https://registry.npmjs.org/@assay-ai/core/-/core-0.2.0-beta.tgz","fileCount":9,"integrity":"sha512-sSohsvr+EkfobQEXjv9jUjP7+111RMr6KF3keb7mFhww3uLEqbYAaLD7ejo50KP4H7k6c/8Hdfz0uOLGHCPjWQ==","signatures":[{"sig":"MEUCIQDNLovsOeP5hPAzR5QEgHYlpJZ6uTK/yEZ6NbzejU8f9gIgOy7qbQvCO6pfYrWLOdTppSeRJJPVWQmwL+kXGHysSPo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@assay-ai%2fcore@0.2.0-beta","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":489478},"main":"./dist/index.cjs","type":"module","_from":"file:assay-ai-core-0.2.0-beta.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aissam-nexus","email":"aissamirhir@gmail.com"},"_resolved":"/tmp/a822814e30a4f9207d89047685b554e2/assay-ai-core-0.2.0-beta.tgz","_integrity":"sha512-sSohsvr+EkfobQEXjv9jUjP7+111RMr6KF3keb7mFhww3uLEqbYAaLD7ejo50KP4H7k6c/8Hdfz0uOLGHCPjWQ==","repository":{"url":"git+https://github.com/assay-ai/assay.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Core evaluation engine for the Assay LLM evaluation framework","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"^8.3.0","vitest":"^3.0.0","typescript":"^5.7.0","@assay-ai/tsconfig":"0.0.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0-beta_1773150953194_0.848244557003202","host":"s3://npm-registry-packages-npm-production"}},"0.2.1-beta":{"name":"@assay-ai/core","version":"0.2.1-beta","keywords":["llm","evaluation","testing","ai","typescript","metrics"],"license":"MIT","_id":"@assay-ai/core@0.2.1-beta","maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"homepage":"https://github.com/assay-ai/assay#readme","bugs":{"url":"https://github.com/assay-ai/assay/issues"},"dist":{"shasum":"762a9860367351bf8e6c2ee51ecf43972feae8a3","tarball":"https://registry.npmjs.org/@assay-ai/core/-/core-0.2.1-beta.tgz","fileCount":9,"integrity":"sha512-1XLkRoAqyIiVR+Fpxtv79GAtzbuhDxm9HXGsnMRHwJ5YAYAMbo1XoPpn+vvbRmtZEd9tQu7UxHHh4yE5lNeCiQ==","signatures":[{"sig":"MEUCICQiUX+xvINm/bGrRiYMbHOlmo+SvGWPPRH4wW3NDeKRAiEAmDhUBk1kfS5x7CFhIqA4FKbzXZXhR+V7mbcf0lxJWdQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@assay-ai%2fcore@0.2.1-beta","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":489478},"main":"./dist/index.cjs","type":"module","_from":"file:assay-ai-core-0.2.1-beta.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aissam-nexus","email":"aissamirhir@gmail.com"},"_resolved":"/tmp/caac4758e0f20a1a531038b3b153991a/assay-ai-core-0.2.1-beta.tgz","_integrity":"sha512-1XLkRoAqyIiVR+Fpxtv79GAtzbuhDxm9HXGsnMRHwJ5YAYAMbo1XoPpn+vvbRmtZEd9tQu7UxHHh4yE5lNeCiQ==","repository":{"url":"git+https://github.com/assay-ai/assay.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Core evaluation engine for the Assay LLM evaluation framework","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^3.0.0","typescript":"^5.7.0","@assay-ai/tsconfig":"0.0.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.1-beta_1773151269770_0.8775868373902811","host":"s3://npm-registry-packages-npm-production"}},"0.3.0-beta":{"name":"@assay-ai/core","version":"0.3.0-beta","keywords":["llm","evaluation","testing","ai","typescript","metrics"],"license":"MIT","_id":"@assay-ai/core@0.3.0-beta","maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"homepage":"https://github.com/assay-ai/assay#readme","bugs":{"url":"https://github.com/assay-ai/assay/issues"},"dist":{"shasum":"73b42091d8e2ac527760ff54cccecb347e48a174","tarball":"https://registry.npmjs.org/@assay-ai/core/-/core-0.3.0-beta.tgz","fileCount":9,"integrity":"sha512-Bra+YLMS/ZNdrypykHHzdsrGE1RlYC1t9bNjzYLxCE6J9cVxq+QaEOFpIiBhnztF9+rKasKtf9mvDy07s9jEAw==","signatures":[{"sig":"MEUCIBA08GjNhNp6UyYcimUVbLGH/Mtfm7q0G6j2qu9pqjH0AiEA6dJ1KnQ8XRfQGRw4Gc8QA0LsPOmJ9Y56UIuO3zz/3uw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@assay-ai%2fcore@0.3.0-beta","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":600974},"main":"./dist/index.cjs","type":"module","_from":"file:assay-ai-core-0.3.0-beta.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist .turbo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aissam-nexus","email":"aissamirhir@gmail.com"},"_resolved":"/tmp/d82bf743138e3b732affc1672bdc1c2b/assay-ai-core-0.3.0-beta.tgz","_integrity":"sha512-Bra+YLMS/ZNdrypykHHzdsrGE1RlYC1t9bNjzYLxCE6J9cVxq+QaEOFpIiBhnztF9+rKasKtf9mvDy07s9jEAw==","repository":{"url":"git+https://github.com/assay-ai/assay.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.2","description":"Core evaluation engine for the Assay LLM evaluation framework","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.0","vitest":"^3.0.0","typescript":"^5.7.0","@assay-ai/tsconfig":"0.0.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0-beta_1773153863159_0.20809817888353077","host":"s3://npm-registry-packages-npm-production"}},"1.3.1-beta":{"name":"@assay-ai/core","version":"1.3.1-beta","description":"Core evaluation engine for the Assay LLM evaluation framework","homepage":"https://assay.js.org","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"dependencies":{"zod":"^3.23.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"devDependencies":{"tsup":"^8.3.0","typescript":"^5.7.0","vitest":"^3.0.0","@assay-ai/tsconfig":"0.0.0"},"keywords":["llm","evaluation","testing","ai","typescript","metrics"],"repository":{"type":"git","url":"git+https://github.com/assay-ai/assay.git","directory":"packages/core"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","clean":"rm -rf dist .turbo"},"_id":"@assay-ai/core@1.3.1-beta","bugs":{"url":"https://github.com/assay-ai/assay/issues"},"_integrity":"sha512-hYAW4VtnJYwFX5fHaPh4Ja8uMVFsiTwNYNAcLVN3ckcLK07vjuUjohjS+zDSQXHjzoVdSUmMpwgSFnw/CjYrlA==","_resolved":"/tmp/0c8def651f12c25691cc11eacfc806cd/assay-ai-core-1.3.1-beta.tgz","_from":"file:assay-ai-core-1.3.1-beta.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-hYAW4VtnJYwFX5fHaPh4Ja8uMVFsiTwNYNAcLVN3ckcLK07vjuUjohjS+zDSQXHjzoVdSUmMpwgSFnw/CjYrlA==","shasum":"09aa9a3dd6c1299c742485cce4ac4fb390f4b1f4","tarball":"https://registry.npmjs.org/@assay-ai/core/-/core-1.3.1-beta.tgz","fileCount":9,"unpackedSize":599229,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@assay-ai%2fcore@1.3.1-beta","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFR+TagftmjXdxjGhmwg/3TYmE80O340WHjf3uH0kHPcAiBhGiz8WLvUfF5reu6IXYdeGQRapIMhNfbjld9hDr7Y0g=="}]},"_npmUser":{"name":"aissam-nexus","email":"aissamirhir@gmail.com"},"directories":{},"maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.3.1-beta_1773329581023_0.0020961875465839164"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-10T13:49:17.290Z","modified":"2026-03-12T15:33:01.502Z","0.1.0-beta":"2026-03-10T13:49:17.540Z","0.2.0-beta":"2026-03-10T13:55:53.385Z","0.2.1-beta":"2026-03-10T14:01:10.076Z","0.3.0-beta":"2026-03-10T14:44:23.389Z","1.3.1-beta":"2026-03-12T15:33:01.179Z"},"bugs":{"url":"https://github.com/assay-ai/assay/issues"},"license":"MIT","homepage":"https://assay.js.org","keywords":["llm","evaluation","testing","ai","typescript","metrics"],"repository":{"type":"git","url":"git+https://github.com/assay-ai/assay.git","directory":"packages/core"},"description":"Core evaluation engine for the Assay LLM evaluation framework","maintainers":[{"name":"aissam-nexus","email":"aissamirhir@gmail.com"}],"readme":"<div align=\"center\">\n\n# @assay-ai/core\n\n*The evaluation engine powering Assay -- 18 metrics, 5 providers, zero `any`*\n\n[![npm version](https://img.shields.io/npm/v/@assay-ai/core?style=flat-square&color=6366f1)](https://www.npmjs.com/package/@assay-ai/core)\n[![downloads](https://img.shields.io/npm/dm/@assay-ai/core?style=flat-square&color=10b981)](https://www.npmjs.com/package/@assay-ai/core)\n[![License](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](https://github.com/assay-ai/assay/blob/main/LICENSE)\n\n[Documentation](https://assay.js.org) · [Metrics](https://assay.js.org/metrics/) · [API Reference](https://assay.js.org/api/)\n\n</div>\n\n## Installation\n\n```bash\npnpm add @assay-ai/core     # pnpm\nnpm install @assay-ai/core   # npm\nyarn add @assay-ai/core      # Yarn\n```\n\n## Quick Start\n\n```typescript\nimport {\n  AnswerRelevancyMetric,\n  evaluate,\n  FaithfulnessMetric,\n  HallucinationMetric,\n} from \"@assay-ai/core\";\n\nconst results = await evaluate(\n  [\n    {\n      input: \"What is the refund policy?\",\n      actualOutput: \"You can request a full refund within 30 days.\",\n      retrievalContext: [\n        \"Refund Policy: Full refund within 30 days of purchase.\",\n      ],\n      context: [\"Our refund policy allows returns within 30 days.\"],\n    },\n  ],\n  [\n    new AnswerRelevancyMetric({ threshold: 0.7 }),\n    new FaithfulnessMetric({ threshold: 0.7 }),\n    new HallucinationMetric({ threshold: 0.3 }),\n  ],\n);\n\nconsole.log(`Pass rate: ${results.summary.passRate.toFixed(1)}%`);\n```\n\n## Part of the [Assay](https://github.com/assay-ai/assay) monorepo\n\n<p align=\"center\">\n  <a href=\"https://assay.js.org\"><img src=\"https://img.shields.io/badge/Documentation-6366f1?style=for-the-badge&logo=readthedocs&logoColor=white\" alt=\"Documentation\" /></a>\n  <a href=\"https://www.npmjs.com/package/@assay-ai/core\"><img src=\"https://img.shields.io/badge/npm-cb3837?style=for-the-badge&logo=npm&logoColor=white\" alt=\"npm\" /></a>\n  <a href=\"https://github.com/assay-ai/assay\"><img src=\"https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white\" alt=\"GitHub\" /></a>\n  <a href=\"https://github.com/assay-ai/assay/issues\"><img src=\"https://img.shields.io/badge/Issues-6366f1?style=for-the-badge&logo=github&logoColor=white\" alt=\"Issues\" /></a>\n</p>\n","readmeFilename":"README.md"}