@aeye/aws 0.3.7 → 0.3.9
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.
- package/aeye-aws.md +171 -0
- package/dist/aws.d.ts +92 -54
- package/dist/aws.d.ts.map +1 -1
- package/dist/aws.js +364 -534
- package/dist/aws.js.map +1 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +5 -2
- package/dist/common.js.map +1 -1
- package/package.json +5 -5
package/aeye-aws.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# @aeye/aws
|
|
2
|
+
|
|
3
|
+
One-line purpose: AWS Bedrock provider for `@aeye/ai` — chat (Claude, Llama, Mistral, Cohere, etc.) through the unified **Converse API**, plus Stability AI image generation and Amazon Titan embeddings, using AWS SDK v3 credential discovery.
|
|
4
|
+
|
|
5
|
+
## When to use
|
|
6
|
+
|
|
7
|
+
- You want Bedrock-hosted foundation models behind the `@aeye/ai` interface.
|
|
8
|
+
- You need AWS-native auth (IAM roles, SSO, env credentials) rather than a single API key.
|
|
9
|
+
- You want one request/response shape across model families (the Converse API handles this).
|
|
10
|
+
|
|
11
|
+
## Install / import
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @aeye/aws
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The AWS SDK v3 clients (`@aws-sdk/client-bedrock`, `@aws-sdk/client-bedrock-runtime`) ship as dependencies — no separate peer install.
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AWSBedrockProvider,
|
|
22
|
+
type AWSBedrockConfig,
|
|
23
|
+
// errors
|
|
24
|
+
AWSError,
|
|
25
|
+
AWSAuthError,
|
|
26
|
+
AWSRateLimitError,
|
|
27
|
+
AWSQuotaError,
|
|
28
|
+
AWSContextWindowError,
|
|
29
|
+
// model family typing
|
|
30
|
+
type BedrockModelFamily,
|
|
31
|
+
type ModelFamilyConfig,
|
|
32
|
+
} from '@aeye/aws';
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The provider's registry name is `aws-bedrock`.
|
|
36
|
+
|
|
37
|
+
## Register with an `@aeye/ai` instance
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { AI } from '@aeye/ai';
|
|
41
|
+
import { AWSBedrockProvider } from '@aeye/aws';
|
|
42
|
+
|
|
43
|
+
const aws = new AWSBedrockProvider({
|
|
44
|
+
region: 'us-east-1', // optional; falls back to AWS_REGION env, then 'us-east-1'
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const ai = AI.with()
|
|
48
|
+
.providers({ aws })
|
|
49
|
+
.create({ /* ... */ });
|
|
50
|
+
|
|
51
|
+
// Chat with Claude on Bedrock (model id selected via metadata)
|
|
52
|
+
const response = await ai.chat.get(
|
|
53
|
+
{ messages: [{ role: 'user', content: 'Hello' }] },
|
|
54
|
+
{ metadata: { model: 'anthropic.claude-3-5-sonnet-20241022-v2:0' } }
|
|
55
|
+
);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Direct (no facade):
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
const executor = aws.createExecutor();
|
|
62
|
+
await executor(
|
|
63
|
+
{ messages: [{ role: 'user', content: 'Hi' }] },
|
|
64
|
+
{},
|
|
65
|
+
{ model: 'anthropic.claude-3-sonnet-20240229-v1:0' }
|
|
66
|
+
);
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Authentication / credentials
|
|
70
|
+
|
|
71
|
+
The provider builds AWS SDK clients and relies on the **default AWS credential chain**. Explicit credentials are only applied when both `accessKeyId` **and** `secretAccessKey` are present in config; otherwise the SDK resolves credentials automatically:
|
|
72
|
+
|
|
73
|
+
1. Explicit `config.credentials` (requires both access key + secret key).
|
|
74
|
+
2. Environment variables `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` (+ optional `AWS_SESSION_TOKEN`).
|
|
75
|
+
3. Shared credentials file `~/.aws/credentials`.
|
|
76
|
+
4. IAM roles (EC2 / ECS / Lambda).
|
|
77
|
+
5. SSO (`aws sso login`).
|
|
78
|
+
|
|
79
|
+
Region resolution: `config.region` → `process.env.AWS_REGION` → `'us-east-1'`.
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
// Explicit (temporary) credentials
|
|
83
|
+
const aws = new AWSBedrockProvider({
|
|
84
|
+
region: 'us-west-2',
|
|
85
|
+
credentials: {
|
|
86
|
+
accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
|
|
87
|
+
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
|
|
88
|
+
sessionToken: process.env.AWS_SESSION_TOKEN, // optional
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Configuration (`AWSBedrockConfig`)
|
|
94
|
+
|
|
95
|
+
| Field | Type | Notes |
|
|
96
|
+
|-------|------|-------|
|
|
97
|
+
| `region` | `string` | AWS region; defaults to `AWS_REGION` then `us-east-1` |
|
|
98
|
+
| `credentials` | `{ accessKeyId?, secretAccessKey?, sessionToken? }` | Only used when access key + secret are both set |
|
|
99
|
+
| `modelPrefix` | `string` | Prepended to every model id — for cross-region inference (`'us.'`, `'eu.'`, `'apac.'`) |
|
|
100
|
+
| `modelFamilies` | `Record<string, ModelFamilyConfig>` | Per-family enable/disable and model-id mapping |
|
|
101
|
+
| `defaultModels` | `{ chat?, imageGenerate?, embedding? }` | Fallback model per capability |
|
|
102
|
+
| `hooks` | `AWSBedrockHooks` | `chat` / `imageGenerate` / `embed` with `beforeRequest` / `afterRequest` |
|
|
103
|
+
|
|
104
|
+
Hooks receive the AWS SDK command object (e.g. `ConverseCommand`, `InvokeModelCommand`), so you can inspect/log the exact request.
|
|
105
|
+
|
|
106
|
+
## Cross-region inference
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
const aws = new AWSBedrockProvider({ region: 'us-east-1', modelPrefix: 'us.' });
|
|
110
|
+
// model 'anthropic.claude-...' is sent as 'us.anthropic.claude-...'
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Supported capabilities
|
|
114
|
+
|
|
115
|
+
| Capability | Implementation | Models |
|
|
116
|
+
|-----------|----------------|--------|
|
|
117
|
+
| Chat (+ streaming) | `ConverseCommand` / `ConverseStreamCommand` | Anthropic Claude, Meta Llama, Mistral, Cohere, AI21, Amazon Titan, etc. |
|
|
118
|
+
| Tools / function calling | Converse `toolConfig` | Claude and other tool-capable families |
|
|
119
|
+
| Vision | Converse image content blocks | Claude 3+ (see gotcha — base64 only) |
|
|
120
|
+
| Reasoning | Converse `reasoningContent` | Reasoning-capable Claude models |
|
|
121
|
+
| Image generation | `InvokeModelCommand` | Stability AI (SDXL / SD3) |
|
|
122
|
+
| Embeddings | `InvokeModelCommand` | Amazon Titan text embeddings |
|
|
123
|
+
|
|
124
|
+
There is **no** transcription or speech support in this provider.
|
|
125
|
+
|
|
126
|
+
Strict-schema families supported: `openai`, `anthropic`, `google`. Strict mode engages only when the resolved model's family is supported and the model declares `toolsStrict` / `structured`; otherwise it silently degrades to lenient schemas under a shared `SchemaBudget` (which respects Anthropic-style per-request limits).
|
|
127
|
+
|
|
128
|
+
## Usage examples
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
// Streaming chat
|
|
132
|
+
for await (const chunk of ai.chat.stream(
|
|
133
|
+
{ messages: [{ role: 'user', content: 'Write a haiku' }] },
|
|
134
|
+
{ metadata: { model: 'anthropic.claude-3-5-sonnet-20241022-v2:0' } }
|
|
135
|
+
)) {
|
|
136
|
+
process.stdout.write(chunk.content ?? '');
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Image generation (Stability AI)
|
|
140
|
+
const image = await ai.image.generate.get(
|
|
141
|
+
{ prompt: 'A mountain landscape', size: '1024x1024' },
|
|
142
|
+
{ metadata: { model: 'stability.stable-diffusion-xl-v1' } }
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
// Embeddings (Titan)
|
|
146
|
+
const embeddings = await ai.embed.get(
|
|
147
|
+
{ texts: ['Hello world'] },
|
|
148
|
+
{ metadata: { model: 'amazon.titan-embed-text-v1' } }
|
|
149
|
+
);
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Error types
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
import {
|
|
156
|
+
AWSError, // base
|
|
157
|
+
AWSAuthError, // UnrecognizedClientException / InvalidSignatureException
|
|
158
|
+
AWSRateLimitError, // ThrottlingException / TooManyRequestsException
|
|
159
|
+
AWSQuotaError, // ServiceQuotaExceededException
|
|
160
|
+
AWSContextWindowError, // "context length" / "token limit" in message
|
|
161
|
+
} from '@aeye/aws';
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Gotchas
|
|
165
|
+
|
|
166
|
+
- **Vision is base64-only.** The Converse conversion only accepts `data:<type>;base64,...` image content (png/jpeg/gif/webp). Plain image URLs are dropped — fetch the bytes yourself and pass a data URI.
|
|
167
|
+
- **Titan embeddings only embed the first text.** The provider sends `request.texts[0]` and returns that single embedding duplicated once per input text. Call once per text if you need distinct vectors.
|
|
168
|
+
- **Model is always required** (no implicit default unless you set `defaultModels`); missing model throws `AWSError`.
|
|
169
|
+
- Consecutive same-role messages are merged automatically (Converse requirement); an empty conversation gets a synthetic user message.
|
|
170
|
+
- Image generation/embeddings use fixed defaults in the Stability payload (`cfg_scale: 7`, `steps: 30`); only `prompt`, `size`, and `seed` flow through.
|
|
171
|
+
- Model access must be enabled in your AWS account/region (some families, e.g. Anthropic, require a use-case submission in the Bedrock console).
|
package/dist/aws.d.ts
CHANGED
|
@@ -3,39 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provider for AWS Bedrock models including Claude, Llama, Titan, Mistral, and more.
|
|
5
5
|
* Uses AWS SDK v3 to automatically pick up credentials from environment, IAM roles, or credential files.
|
|
6
|
+
* All chat LLM calls use the Bedrock Converse API for a unified request/response format across models.
|
|
6
7
|
*/
|
|
7
8
|
import type { AIContextAny, AIMetadataAny, EmbeddingRequest, EmbeddingResponse, ImageGenerationRequest, ImageGenerationResponse, ModelInfo, Provider } from '@aeye/ai';
|
|
8
|
-
import { Executor, ModelInput, Request, Response, Streamer } from '@aeye/core';
|
|
9
|
-
import
|
|
10
|
-
import { InvokeModelCommand, InvokeModelWithResponseStreamCommand } from '@aws-sdk/client-bedrock-runtime';
|
|
9
|
+
import { type DescriptorFamily, Executor, ModelInput, Request, Response, Streamer } from '@aeye/core';
|
|
10
|
+
import { ConverseCommand, ConverseStreamCommand, InvokeModelCommand } from '@aws-sdk/client-bedrock-runtime';
|
|
11
11
|
import { type ModelFamilyConfig } from './types';
|
|
12
|
-
/**
|
|
13
|
-
* Configuration options for the AWS Bedrock provider.
|
|
14
|
-
*
|
|
15
|
-
* Credentials are automatically discovered using the AWS SDK credential chain:
|
|
16
|
-
* 1. Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
|
|
17
|
-
* 2. Shared credentials file (~/.aws/credentials)
|
|
18
|
-
* 3. IAM roles (when running on EC2, ECS, Lambda, etc.)
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const config: AWSBedrockConfig = {
|
|
23
|
-
* region: 'us-east-1', // Optional, defaults to AWS_REGION env var
|
|
24
|
-
* // Credentials are picked up automatically from environment
|
|
25
|
-
* };
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example With explicit credentials
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const config: AWSBedrockConfig = {
|
|
31
|
-
* region: 'us-west-2',
|
|
32
|
-
* credentials: {
|
|
33
|
-
* accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
|
|
34
|
-
* secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
|
|
35
|
-
* },
|
|
36
|
-
* };
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
12
|
/**
|
|
40
13
|
* Hook called before a request is made to the provider.
|
|
41
14
|
*
|
|
@@ -63,8 +36,8 @@ export type PostRequestHook<TRequest = any, TCommand = any, TResponse = any> = (
|
|
|
63
36
|
*/
|
|
64
37
|
export interface AWSBedrockHooks {
|
|
65
38
|
chat?: {
|
|
66
|
-
beforeRequest?: PreRequestHook<Request,
|
|
67
|
-
afterRequest?: PostRequestHook<Request,
|
|
39
|
+
beforeRequest?: PreRequestHook<Request, ConverseCommand | ConverseStreamCommand>;
|
|
40
|
+
afterRequest?: PostRequestHook<Request, ConverseCommand | ConverseStreamCommand, Response>;
|
|
68
41
|
};
|
|
69
42
|
imageGenerate?: {
|
|
70
43
|
beforeRequest?: PreRequestHook<ImageGenerationRequest, InvokeModelCommand>;
|
|
@@ -75,6 +48,33 @@ export interface AWSBedrockHooks {
|
|
|
75
48
|
afterRequest?: PostRequestHook<EmbeddingRequest, InvokeModelCommand, EmbeddingResponse>;
|
|
76
49
|
};
|
|
77
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Configuration options for the AWS Bedrock provider.
|
|
53
|
+
*
|
|
54
|
+
* Credentials are automatically discovered using the AWS SDK credential chain:
|
|
55
|
+
* 1. Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
|
|
56
|
+
* 2. Shared credentials file (~/.aws/credentials)
|
|
57
|
+
* 3. IAM roles (when running on EC2, ECS, Lambda, etc.)
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* const config: AWSBedrockConfig = {
|
|
62
|
+
* region: 'us-east-1', // Optional, defaults to AWS_REGION env var
|
|
63
|
+
* // Credentials are picked up automatically from environment
|
|
64
|
+
* };
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @example With explicit credentials
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const config: AWSBedrockConfig = {
|
|
70
|
+
* region: 'us-west-2',
|
|
71
|
+
* credentials: {
|
|
72
|
+
* accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
|
|
73
|
+
* secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
|
|
74
|
+
* },
|
|
75
|
+
* };
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
78
|
export interface AWSBedrockConfig {
|
|
79
79
|
region?: string;
|
|
80
80
|
credentials?: {
|
|
@@ -89,14 +89,8 @@ export interface AWSBedrockConfig {
|
|
|
89
89
|
imageGenerate?: ModelInput;
|
|
90
90
|
embedding?: ModelInput;
|
|
91
91
|
};
|
|
92
|
-
anthropic?: {
|
|
93
|
-
version?: string;
|
|
94
|
-
beta?: AnthropicBeta[];
|
|
95
|
-
emptyMessage?: Anthropic.MessageParam;
|
|
96
|
-
};
|
|
97
92
|
hooks?: AWSBedrockHooks;
|
|
98
93
|
}
|
|
99
|
-
type AnthropicBeta = 'computer-use-2025-01-24' | 'token-efficient-tools-2025-02-19' | 'Interleaved-thinking-2025-05-14' | 'output-128k-2025-02-19' | 'dev-full-thinking-2025-05-14' | 'context-1m-2025-08-07' | 'context-management-2025-06-27';
|
|
100
94
|
/**
|
|
101
95
|
* AWS Bedrock provider implementation for the @aeye framework.
|
|
102
96
|
*
|
|
@@ -166,27 +160,71 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
|
|
|
166
160
|
*/
|
|
167
161
|
createStreamer(config?: AWSBedrockConfig): Streamer<AIContextAny, AIMetadataAny>;
|
|
168
162
|
/**
|
|
169
|
-
*
|
|
163
|
+
* Build a ConverseCommandInput from a generic @aeye/core Request.
|
|
164
|
+
*/
|
|
165
|
+
private convertRequestToConverse;
|
|
166
|
+
/**
|
|
167
|
+
* Execute a non-streaming chat completion using the Converse API.
|
|
168
|
+
*/
|
|
169
|
+
private executeWithConverse;
|
|
170
|
+
/**
|
|
171
|
+
* Execute a streaming chat completion using the Converse Stream API.
|
|
172
|
+
*/
|
|
173
|
+
private streamWithConverse;
|
|
174
|
+
/**
|
|
175
|
+
* Convert system messages to the Converse API system format.
|
|
176
|
+
*/
|
|
177
|
+
private convertSystemToConverse;
|
|
178
|
+
/**
|
|
179
|
+
* Convert @aeye/core messages to AWS Bedrock Converse API message format.
|
|
180
|
+
* Filters out system messages (handled via convertSystemToConverse).
|
|
181
|
+
* Merges consecutive messages with the same role as required by the API.
|
|
182
|
+
*/
|
|
183
|
+
private convertMessagesToConverse;
|
|
184
|
+
/**
|
|
185
|
+
* Convert an image content value to a Converse API ContentBlock.
|
|
186
|
+
* Only base64 data URIs are natively supported; URL images are not supported
|
|
187
|
+
* by the Converse API without fetching the bytes first.
|
|
188
|
+
*/
|
|
189
|
+
private convertImageContent;
|
|
190
|
+
/**
|
|
191
|
+
* Convert @aeye/core tool definitions to AWS Bedrock Converse API tool format.
|
|
192
|
+
*
|
|
193
|
+
* Strict-tool support is best-effort and per-model: the descriptor is
|
|
194
|
+
* picked via `resolveStrictFormat(model)`, which falls back through
|
|
195
|
+
* `model.strictFormat` → `model.provider` → `id` prefix. Bedrock
|
|
196
|
+
* surfaces both Anthropic-family Claude models and (in some regions)
|
|
197
|
+
* OpenAI-shaped tools. Models without a declared family fall back to
|
|
198
|
+
* LENIENT — silent degradation. The chosen descriptor is pinned on each
|
|
199
|
+
* `ToolDefinition.descriptor` so the Prompt loop can apply the matching
|
|
200
|
+
* strictify when validating tool arguments.
|
|
201
|
+
*
|
|
202
|
+
* Anthropic enforces per-request limits (20 strict tools, 24 optional
|
|
203
|
+
* params, 16 union types across the whole request) — those are tracked
|
|
204
|
+
* by the shared `SchemaBudget` so over-budget tools degrade to LENIENT
|
|
205
|
+
* silently rather than failing the API call.
|
|
206
|
+
*/
|
|
207
|
+
private convertToolsToConverse;
|
|
208
|
+
/**
|
|
209
|
+
* The set of strict descriptor families this provider can speak through
|
|
210
|
+
* Bedrock. Defaults to `['openai', 'anthropic', 'google']` — Bedrock
|
|
211
|
+
* surfaces all three. Subclasses can extend to accept custom registered
|
|
212
|
+
* families.
|
|
213
|
+
*/
|
|
214
|
+
protected supportedStrictFamilies: ReadonlySet<DescriptorFamily>;
|
|
215
|
+
/**
|
|
216
|
+
* Build a SchemaBudget tuned to the resolved strict-format family.
|
|
217
|
+
* Bedrock surfaces multiple model families; the descriptor pick handles
|
|
218
|
+
* any in `supportedStrictFamilies`. Mismatched families fall back to
|
|
219
|
+
* LENIENT silently.
|
|
170
220
|
*/
|
|
171
|
-
private
|
|
221
|
+
private buildSchemaBudget;
|
|
172
222
|
/**
|
|
173
|
-
*
|
|
223
|
+
* Map a Bedrock Converse API stop reason to the @aeye/core FinishReason type.
|
|
174
224
|
*/
|
|
175
|
-
private
|
|
176
|
-
private convertRequestToAnthropic;
|
|
177
|
-
private executeAnthropicModel;
|
|
178
|
-
private streamAnthropicModel;
|
|
179
|
-
private convertMessagesToAnthropic;
|
|
180
|
-
private mapAnthropicStopReason;
|
|
181
|
-
private executeLlamaStyleModel;
|
|
182
|
-
private streamLlamaStyleModel;
|
|
183
|
-
private convertMessagesToLlamaPrompt;
|
|
184
|
-
private executeCohereModel;
|
|
185
|
-
private streamCohereModel;
|
|
186
|
-
private convertMessagesToCoherePrompt;
|
|
225
|
+
private mapStopReason;
|
|
187
226
|
generateImage: Provider['generateImage'];
|
|
188
227
|
embed: Provider['embed'];
|
|
189
228
|
private handleAWSError;
|
|
190
229
|
}
|
|
191
|
-
export {};
|
|
192
230
|
//# sourceMappingURL=aws.d.ts.map
|
package/dist/aws.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws.d.ts","sourceRoot":"","sources":["../src/aws.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aws.d.ts","sourceRoot":"","sources":["../src/aws.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACT,MAAM,UAAU,CAAC;AAElB,OAAO,EAEL,KAAK,gBAAgB,EACrB,QA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