@mastra/evals 0.13.10 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import type { LanguageModel } from '@mastra/core/llm';
1
+ import type { MastraModelConfig } from '@mastra/core/llm';
2
2
  export interface ToxicityMetricOptions {
3
3
  scale?: number;
4
4
  }
5
- export declare function createToxicityScorer({ model, options }: {
6
- model: LanguageModel;
5
+ export declare function createToxicityScorer({ model, options, }: {
6
+ model: MastraModelConfig;
7
7
  options?: ToxicityMetricOptions;
8
8
  }): import("@mastra/core/scores").MastraScorer<"Toxicity Scorer", import("@mastra/core/scores").ScorerRunInputForAgent, import("@mastra/core/scores").ScorerRunOutputForAgent, Record<"analyzeStepResult", {
9
9
  verdicts: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scorers/llm/toxicity/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMtD,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,OAAO,CAAC,EAAE,qBAAqB,CAAA;CAAE;;;;;6FA+CjH"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scorers/llm/toxicity/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAM1D,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,OAAO,GACR,EAAE;IACD,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,CAAC,EAAE,qBAAqB,CAAC;CACjC;;;;;6FA+CA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/evals",
3
- "version": "0.13.10",
3
+ "version": "0.14.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -103,7 +103,7 @@
103
103
  "string-similarity": "^4.0.4"
104
104
  },
105
105
  "peerDependencies": {
106
- "@mastra/core": ">=0.18.1-0 <0.21.0-0",
106
+ "@mastra/core": ">=0.21.0-0 <0.22.0-0",
107
107
  "ai": "^4.0.0 || ^5.0.0",
108
108
  "zod": "^3.25.0 || ^4.0.0"
109
109
  },
@@ -116,14 +116,14 @@
116
116
  "@types/string-similarity": "^4.0.2",
117
117
  "ai": "^4.3.19",
118
118
  "dotenv": "^17.0.0",
119
- "eslint": "^9.35.0",
119
+ "eslint": "^9.36.0",
120
120
  "tsup": "^8.5.0",
121
121
  "typescript": "^5.8.3",
122
122
  "vitest": "^3.2.4",
123
123
  "zod": "^3.25.76",
124
- "@internal/lint": "0.0.45",
125
- "@internal/types-builder": "0.0.20",
126
- "@mastra/core": "0.20.0"
124
+ "@internal/lint": "0.0.49",
125
+ "@internal/types-builder": "0.0.24",
126
+ "@mastra/core": "0.21.0"
127
127
  },
128
128
  "scripts": {
129
129
  "check": "tsc --noEmit",