@rudderjs/ai 1.4.0 → 1.6.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.
Files changed (179) hide show
  1. package/README.md +484 -7
  2. package/boost/guidelines.md +62 -2
  3. package/boost/skills/ai-tools/SKILL.md +14 -5
  4. package/dist/agent.d.ts +66 -15
  5. package/dist/agent.d.ts.map +1 -1
  6. package/dist/agent.js +529 -58
  7. package/dist/agent.js.map +1 -1
  8. package/dist/budget/pricing.d.ts +124 -0
  9. package/dist/budget/pricing.d.ts.map +1 -0
  10. package/dist/budget/pricing.js +175 -0
  11. package/dist/budget/pricing.js.map +1 -0
  12. package/dist/budget/storage.d.ts +104 -0
  13. package/dist/budget/storage.d.ts.map +1 -0
  14. package/dist/budget/storage.js +0 -0
  15. package/dist/budget/storage.js.map +1 -0
  16. package/dist/budget/with-budget.d.ts +119 -0
  17. package/dist/budget/with-budget.d.ts.map +1 -0
  18. package/dist/budget/with-budget.js +175 -0
  19. package/dist/budget/with-budget.js.map +1 -0
  20. package/dist/budget-orm/index.d.ts +96 -0
  21. package/dist/budget-orm/index.d.ts.map +1 -0
  22. package/dist/budget-orm/index.js +177 -0
  23. package/dist/budget-orm/index.js.map +1 -0
  24. package/dist/commands/ai-eval.d.ts +93 -0
  25. package/dist/commands/ai-eval.d.ts.map +1 -0
  26. package/dist/commands/ai-eval.js +378 -0
  27. package/dist/commands/ai-eval.js.map +1 -0
  28. package/dist/computer-use/actions.d.ts +214 -0
  29. package/dist/computer-use/actions.d.ts.map +1 -0
  30. package/dist/computer-use/actions.js +48 -0
  31. package/dist/computer-use/actions.js.map +1 -0
  32. package/dist/computer-use/errors.d.ts +57 -0
  33. package/dist/computer-use/errors.d.ts.map +1 -0
  34. package/dist/computer-use/errors.js +76 -0
  35. package/dist/computer-use/errors.js.map +1 -0
  36. package/dist/computer-use/index.d.ts +53 -0
  37. package/dist/computer-use/index.d.ts.map +1 -0
  38. package/dist/computer-use/index.js +51 -0
  39. package/dist/computer-use/index.js.map +1 -0
  40. package/dist/computer-use/playwright.d.ts +76 -0
  41. package/dist/computer-use/playwright.d.ts.map +1 -0
  42. package/dist/computer-use/playwright.js +270 -0
  43. package/dist/computer-use/playwright.js.map +1 -0
  44. package/dist/computer-use/tool.d.ts +154 -0
  45. package/dist/computer-use/tool.d.ts.map +1 -0
  46. package/dist/computer-use/tool.js +210 -0
  47. package/dist/computer-use/tool.js.map +1 -0
  48. package/dist/eval/fixtures.d.ts +65 -0
  49. package/dist/eval/fixtures.d.ts.map +1 -0
  50. package/dist/eval/fixtures.js +110 -0
  51. package/dist/eval/fixtures.js.map +1 -0
  52. package/dist/eval/html-reporter.d.ts +25 -0
  53. package/dist/eval/html-reporter.d.ts.map +1 -0
  54. package/dist/eval/html-reporter.js +209 -0
  55. package/dist/eval/html-reporter.js.map +1 -0
  56. package/dist/eval/index.d.ts +271 -0
  57. package/dist/eval/index.d.ts.map +1 -0
  58. package/dist/eval/index.js +510 -0
  59. package/dist/eval/index.js.map +1 -0
  60. package/dist/eval/json-reporter.d.ts +43 -0
  61. package/dist/eval/json-reporter.d.ts.map +1 -0
  62. package/dist/eval/json-reporter.js +40 -0
  63. package/dist/eval/json-reporter.js.map +1 -0
  64. package/dist/fake.d.ts +36 -1
  65. package/dist/fake.d.ts.map +1 -1
  66. package/dist/fake.js +49 -2
  67. package/dist/fake.js.map +1 -1
  68. package/dist/file-search.d.ts +168 -0
  69. package/dist/file-search.d.ts.map +1 -0
  70. package/dist/file-search.js +158 -0
  71. package/dist/file-search.js.map +1 -0
  72. package/dist/handoff.d.ts +95 -0
  73. package/dist/handoff.d.ts.map +1 -0
  74. package/dist/handoff.js +78 -0
  75. package/dist/handoff.js.map +1 -0
  76. package/dist/index.d.ts +29 -5
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +22 -2
  79. package/dist/index.js.map +1 -1
  80. package/dist/mcp/client-tools.d.ts +39 -0
  81. package/dist/mcp/client-tools.d.ts.map +1 -0
  82. package/dist/mcp/client-tools.js +147 -0
  83. package/dist/mcp/client-tools.js.map +1 -0
  84. package/dist/mcp/index.d.ts +16 -0
  85. package/dist/mcp/index.d.ts.map +1 -0
  86. package/dist/mcp/index.js +15 -0
  87. package/dist/mcp/index.js.map +1 -0
  88. package/dist/mcp/server-from-agent.d.ts +24 -0
  89. package/dist/mcp/server-from-agent.d.ts.map +1 -0
  90. package/dist/mcp/server-from-agent.js +113 -0
  91. package/dist/mcp/server-from-agent.js.map +1 -0
  92. package/dist/mcp/types.d.ts +64 -0
  93. package/dist/mcp/types.d.ts.map +1 -0
  94. package/dist/mcp/types.js +6 -0
  95. package/dist/mcp/types.js.map +1 -0
  96. package/dist/memory-embedding/index.d.ts +121 -0
  97. package/dist/memory-embedding/index.d.ts.map +1 -0
  98. package/dist/memory-embedding/index.js +229 -0
  99. package/dist/memory-embedding/index.js.map +1 -0
  100. package/dist/memory-extract.d.ts +60 -0
  101. package/dist/memory-extract.d.ts.map +1 -0
  102. package/dist/memory-extract.js +163 -0
  103. package/dist/memory-extract.js.map +1 -0
  104. package/dist/memory-inject.d.ts +39 -0
  105. package/dist/memory-inject.d.ts.map +1 -0
  106. package/dist/memory-inject.js +135 -0
  107. package/dist/memory-inject.js.map +1 -0
  108. package/dist/memory-orm/index.d.ts +118 -0
  109. package/dist/memory-orm/index.d.ts.map +1 -0
  110. package/dist/memory-orm/index.js +187 -0
  111. package/dist/memory-orm/index.js.map +1 -0
  112. package/dist/memory.d.ts +55 -0
  113. package/dist/memory.d.ts.map +1 -0
  114. package/dist/memory.js +132 -0
  115. package/dist/memory.js.map +1 -0
  116. package/dist/observers.d.ts +22 -0
  117. package/dist/observers.d.ts.map +1 -1
  118. package/dist/observers.js.map +1 -1
  119. package/dist/provider-tools.d.ts +15 -1
  120. package/dist/provider-tools.d.ts.map +1 -1
  121. package/dist/provider-tools.js +21 -1
  122. package/dist/provider-tools.js.map +1 -1
  123. package/dist/providers/anthropic.d.ts +9 -1
  124. package/dist/providers/anthropic.d.ts.map +1 -1
  125. package/dist/providers/anthropic.js +66 -11
  126. package/dist/providers/anthropic.js.map +1 -1
  127. package/dist/providers/bedrock.d.ts +60 -0
  128. package/dist/providers/bedrock.d.ts.map +1 -0
  129. package/dist/providers/bedrock.js +167 -0
  130. package/dist/providers/bedrock.js.map +1 -0
  131. package/dist/providers/elevenlabs.d.ts +98 -0
  132. package/dist/providers/elevenlabs.d.ts.map +1 -0
  133. package/dist/providers/elevenlabs.js +229 -0
  134. package/dist/providers/elevenlabs.js.map +1 -0
  135. package/dist/providers/google.d.ts +83 -1
  136. package/dist/providers/google.d.ts.map +1 -1
  137. package/dist/providers/google.js +491 -8
  138. package/dist/providers/google.js.map +1 -1
  139. package/dist/providers/openai.d.ts +8 -1
  140. package/dist/providers/openai.d.ts.map +1 -1
  141. package/dist/providers/openai.js +215 -5
  142. package/dist/providers/openai.js.map +1 -1
  143. package/dist/providers/openrouter.d.ts +43 -0
  144. package/dist/providers/openrouter.d.ts.map +1 -0
  145. package/dist/providers/openrouter.js +21 -0
  146. package/dist/providers/openrouter.js.map +1 -0
  147. package/dist/providers/voyage.d.ts +91 -0
  148. package/dist/providers/voyage.d.ts.map +1 -0
  149. package/dist/providers/voyage.js +166 -0
  150. package/dist/providers/voyage.js.map +1 -0
  151. package/dist/queue-job.d.ts +69 -4
  152. package/dist/queue-job.d.ts.map +1 -1
  153. package/dist/queue-job.js +114 -11
  154. package/dist/queue-job.js.map +1 -1
  155. package/dist/registry.d.ts +3 -1
  156. package/dist/registry.d.ts.map +1 -1
  157. package/dist/registry.js +10 -0
  158. package/dist/registry.js.map +1 -1
  159. package/dist/server/provider.d.ts.map +1 -1
  160. package/dist/server/provider.js +38 -1
  161. package/dist/server/provider.js.map +1 -1
  162. package/dist/similarity-search.d.ts +163 -0
  163. package/dist/similarity-search.d.ts.map +1 -0
  164. package/dist/similarity-search.js +147 -0
  165. package/dist/similarity-search.js.map +1 -0
  166. package/dist/sub-agent-run-store.d.ts +40 -3
  167. package/dist/sub-agent-run-store.d.ts.map +1 -1
  168. package/dist/sub-agent-run-store.js.map +1 -1
  169. package/dist/tool.d.ts +59 -0
  170. package/dist/tool.d.ts.map +1 -1
  171. package/dist/tool.js +45 -4
  172. package/dist/tool.js.map +1 -1
  173. package/dist/types.d.ts +285 -1
  174. package/dist/types.d.ts.map +1 -1
  175. package/dist/vector-stores/index.d.ts +96 -0
  176. package/dist/vector-stores/index.d.ts.map +1 -0
  177. package/dist/vector-stores/index.js +153 -0
  178. package/dist/vector-stores/index.js.map +1 -0
  179. package/package.json +43 -4
@@ -0,0 +1,271 @@
1
+ /**
2
+ * `@rudderjs/ai/eval` — built-in eval framework for #A5 Phase 1.
3
+ *
4
+ * Define a suite of input cases + assertions, run them against any
5
+ * `Agent`, get a console report with pass/fail + cost + tokens. Same
6
+ * `Agent` instances as your app code — one source of truth.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * // evals/support-agent.eval.ts
11
+ * import { evalSuite, llmJudge, exactMatch, regex } from '@rudderjs/ai/eval'
12
+ * import { SupportAgent } from '../app/Agents/SupportAgent.js'
13
+ *
14
+ * export default evalSuite('SupportAgent', {
15
+ * agent: () => new SupportAgent(),
16
+ * cases: [
17
+ * { name: 'password reset', input: 'How do I reset my password?',
18
+ * assert: llmJudge('mentions a password reset link') },
19
+ * { name: 'price', input: 'How much?', assert: exactMatch('$99/month') },
20
+ * { name: 'support email', input: 'Contact?', assert: regex(/support@/) },
21
+ * ],
22
+ * })
23
+ * ```
24
+ *
25
+ * Run programmatically via `runSuite(suite)` from this entry, or via
26
+ * `pnpm rudder ai:eval` once Phase 2 lands.
27
+ *
28
+ * Built-in metrics: `exactMatch`, `regex`, `llmJudge`, `jsonShape`,
29
+ * `semanticMatch`, `tokenCost`. Compose multiple via `compose(...)`.
30
+ * User-defined metrics work today — any `(response, ctx) =>
31
+ * MetricResult` qualifies.
32
+ */
33
+ import type { Agent } from '../agent.js';
34
+ import type { AgentResponse } from '../types.js';
35
+ import { z } from 'zod';
36
+ export { reportJson } from './json-reporter.js';
37
+ export type { SuiteJson, SuiteJsonCase } from './json-reporter.js';
38
+ export { stepsFromResponse } from './fixtures.js';
39
+ export type { EvalFixture } from './fixtures.js';
40
+ export { reportHtml } from './html-reporter.js';
41
+ export type { HtmlReportOptions } from './html-reporter.js';
42
+ /**
43
+ * Result of a single assertion. `pass` is the only required field;
44
+ * `score` (0..1) and `reason` are surfaced in reports.
45
+ */
46
+ export interface MetricResult {
47
+ pass: boolean;
48
+ score?: number;
49
+ reason?: string;
50
+ }
51
+ /**
52
+ * Assertion signature. Sync or async; the runner awaits both.
53
+ *
54
+ * `ctx` carries the case context so user metrics can opt into the
55
+ * input/case-name (e.g. for logging). The built-ins ignore it.
56
+ */
57
+ export type Metric = (response: AgentResponse, ctx: MetricContext) => MetricResult | Promise<MetricResult>;
58
+ export interface MetricContext {
59
+ /** The case's input string (the same passed to `agent.prompt`). */
60
+ input: string;
61
+ /** Optional case `name` if set on the spec. */
62
+ caseName: string;
63
+ }
64
+ /** A single eval case. */
65
+ export interface EvalCase {
66
+ /** Stable identifier used in reports. Defaults to `case-<index>`. */
67
+ name?: string;
68
+ /** Input passed to `agent.prompt(input)`. */
69
+ input: string;
70
+ /** The assertion. Pass-fail + optional score/reason. */
71
+ assert: Metric;
72
+ /**
73
+ * Per-case agent override. When set, replaces the suite-level
74
+ * `agent` factory for this case (e.g. swap models for a stress
75
+ * test).
76
+ */
77
+ agent?: () => Agent;
78
+ /**
79
+ * Per-case timeout in ms. Defaults to the suite-level timeout
80
+ * (or no timeout if neither is set).
81
+ */
82
+ timeout?: number;
83
+ /**
84
+ * Skip this case. Pass `true` to silently skip, or a string for
85
+ * a reason that surfaces in the report.
86
+ */
87
+ skip?: boolean | string;
88
+ }
89
+ export interface EvalSuiteSpec {
90
+ /** Factory for the agent under test. Called once per case. */
91
+ agent: () => Agent;
92
+ /** The cases to run. */
93
+ cases: EvalCase[];
94
+ /**
95
+ * Suite-wide timeout in ms applied to every case unless the case
96
+ * overrides. Throws cause `pass: false` with the timeout message.
97
+ */
98
+ timeout?: number;
99
+ /**
100
+ * Optional ownership / context surfaced in the HTML report (#A5
101
+ * Phase 5). Well-known keys (`owner`, `lastReviewed`, `ticket`)
102
+ * get formatted headings; any extra string keys render as a
103
+ * generic key/value row so teams can attach their own metadata.
104
+ */
105
+ metadata?: EvalMetadata;
106
+ }
107
+ export interface EvalMetadata {
108
+ owner?: string;
109
+ lastReviewed?: string;
110
+ ticket?: string;
111
+ [key: string]: string | undefined;
112
+ }
113
+ export interface EvalSuite {
114
+ name: string;
115
+ spec: EvalSuiteSpec;
116
+ }
117
+ /** Per-case run record collected by {@link runSuite}. */
118
+ export interface CaseResult {
119
+ name: string;
120
+ /** Final result; `'skipped'` skips assertion + cost. */
121
+ status: 'passed' | 'failed' | 'skipped';
122
+ metric?: MetricResult;
123
+ /** Skip reason (when `status === 'skipped'`). */
124
+ reason?: string;
125
+ /** Wall-clock ms for the agent call + assertion. */
126
+ duration: number;
127
+ /**
128
+ * Token usage from the agent's `prompt()` (zero on skip / failure
129
+ * before the call). Includes BOTH the agent under test AND any
130
+ * judge-model calls the assertion made.
131
+ */
132
+ tokens: number;
133
+ /** USD estimate (see {@link estimateCost}; zero on skip). */
134
+ cost: number;
135
+ /**
136
+ * The case's input string, copied through from `EvalCase.input`
137
+ * for reporters that want to render the prompt alongside the
138
+ * response (#A5 Phase 5 HTML report). Always present — runners
139
+ * always know the input.
140
+ */
141
+ input: string;
142
+ /**
143
+ * The agent's final assistant text. Absent when the case skipped
144
+ * or the agent threw before producing a response. The HTML
145
+ * reporter renders `<no response>` in that case.
146
+ */
147
+ responseText?: string;
148
+ }
149
+ /** Full report returned by {@link runSuite}. */
150
+ export interface SuiteReport {
151
+ suite: string;
152
+ cases: CaseResult[];
153
+ passed: number;
154
+ failed: number;
155
+ skipped: number;
156
+ duration: number;
157
+ cost: number;
158
+ tokens: number;
159
+ /** Suite-level metadata (#A5 Phase 5), copied through from the spec. */
160
+ metadata?: EvalMetadata;
161
+ }
162
+ /**
163
+ * Define an eval suite. Returns a frozen `EvalSuite` ready to pass
164
+ * into {@link runSuite} or to default-export from an `evals/*.eval.ts`
165
+ * file (Phase 2's CLI auto-discovers those).
166
+ *
167
+ * The shape is deliberately a function rather than a class — keeps the
168
+ * file's default export trivially serializable (Phase 2 needs to load
169
+ * suites via dynamic import) and avoids the "did you forget `new`?"
170
+ * footgun.
171
+ */
172
+ export declare function evalSuite(name: string, spec: EvalSuiteSpec): EvalSuite;
173
+ /** Exact string equality against `response.text`. */
174
+ export declare function exactMatch(expected: string): Metric;
175
+ /** Pattern match against `response.text`. */
176
+ export declare function regex(pattern: RegExp): Metric;
177
+ /**
178
+ * LLM-as-judge: ask a small model whether the response satisfies a
179
+ * natural-language criterion. Returns the judge's reasoning in
180
+ * `reason` so failures are debuggable.
181
+ *
182
+ * Design: the judge runs as a one-shot anonymous agent (no recursion
183
+ * concern — default `remembers()` is `false`). Output is shaped via
184
+ * `Output.object({ schema })` for deterministic parsing. Failures
185
+ * (network, parse, unhandled judge error) bubble as `pass: false`
186
+ * with the error in `reason` — a broken judge is not a passing case.
187
+ *
188
+ * Pitfall: the judge model has the same biases as any LLM. Use it
189
+ * for fuzzy "did the answer mention X?" assertions; for exact
190
+ * structural checks prefer `jsonShape` (Phase 3) or `regex`.
191
+ */
192
+ export declare function llmJudge(criterion: string, opts?: {
193
+ model?: string;
194
+ }): Metric;
195
+ /**
196
+ * Strict structural assertion: parse `response.text` as JSON
197
+ * (stripping ```json fences) and run it through a zod schema.
198
+ *
199
+ * Pairs naturally with `Output.object({ schema })` on the agent —
200
+ * if the agent declares the same schema, this metric verifies the
201
+ * output actually conforms. Failures surface the zod issue path
202
+ * (e.g. `customer.email`) so debugging doesn't require a separate
203
+ * console log.
204
+ */
205
+ export declare function jsonShape<T>(schema: z.ZodType<T>): Metric;
206
+ /**
207
+ * Embedding-based fuzzy match. Embeds both `reference` and
208
+ * `response.text` via `AI.embed()`, computes cosine similarity,
209
+ * passes when >= `threshold` (default `0.85` — tighter than
210
+ * `EmbeddingUserMemory`'s 0.5 retrieval-rank floor since this is
211
+ * an assertion, not a ranking).
212
+ *
213
+ * Uses ≤ 2 embedding calls per case; embed tokens roll into the
214
+ * case's cost rollup via the same side-channel `llmJudge` uses.
215
+ *
216
+ * Pitfall: requires a provider that implements `createEmbedding()`
217
+ * (openai / google / mistral / cohere / jina). Failures (no
218
+ * provider, network, etc.) surface as `pass: false` with the
219
+ * error in `reason` — a broken embed is not a passing case.
220
+ */
221
+ export declare function semanticMatch(reference: string, opts?: {
222
+ threshold?: number;
223
+ model?: string;
224
+ }): Metric;
225
+ /**
226
+ * Token budget guard. Passes when `response.usage.totalTokens
227
+ * <= threshold`. Pair with cost-conscious agents to detect prompt-
228
+ * size regressions before they show up as a billing surprise.
229
+ *
230
+ * `response.usage` is the multi-step rollup, so it's meaningful
231
+ * even when the agent runs tools across several provider calls.
232
+ */
233
+ export declare function tokenCost(threshold: number): Metric;
234
+ /**
235
+ * Compose multiple metrics into one assertion. Runs them in order
236
+ * and short-circuits on the first failure — failure `reason` is
237
+ * surfaced; success returns `{ pass: true, score: 1 }`.
238
+ *
239
+ * @example
240
+ * { input: '…',
241
+ * assert: compose(
242
+ * jsonShape(SummarySchema),
243
+ * tokenCost(800),
244
+ * ),
245
+ * }
246
+ */
247
+ export declare function compose(...metrics: Metric[]): Metric;
248
+ /**
249
+ * Run every case in the suite, in declaration order. Returns the
250
+ * full report; never throws (assertion errors become `failed` cases,
251
+ * not exceptions).
252
+ *
253
+ * Phase 1 runs serially. Parallel execution lands in a follow-up
254
+ * once we understand the rate-limit shape of real-world judge
255
+ * models — sequential is correct under any rate limit.
256
+ */
257
+ export declare function runSuite(suite: EvalSuite): Promise<SuiteReport>;
258
+ export { estimateCost, ModelPricing } from '../budget/pricing.js';
259
+ export type { ModelPriceEntry } from '../budget/pricing.js';
260
+ /**
261
+ * Default reporter — prints a colorless ANSI-aware table to a
262
+ * caller-supplied `console`-like sink. Uses Unicode pass/fail glyphs
263
+ * for visual scanning. JSON / HTML reporters land in Phase 2 / 5.
264
+ *
265
+ * Returns the report unchanged so chains compose: `await
266
+ * reportConsole(await runSuite(suite))`.
267
+ */
268
+ export declare function reportConsole(report: SuiteReport, sink?: {
269
+ log: (s: string) => void;
270
+ }): SuiteReport;
271
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eval/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAI3D;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAK,OAAO,CAAA;IAChB,KAAK,CAAC,EAAG,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;AAE1G,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,KAAK,EAAK,MAAM,CAAA;IAChB,+CAA+C;I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