@aeye/aws 0.3.9 → 0.7.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.
package/aeye-aws.md CHANGED
@@ -90,13 +90,26 @@ const aws = new AWSBedrockProvider({
90
90
  });
91
91
  ```
92
92
 
93
+ ### Bedrock API key
94
+
95
+ A Bedrock API key (short- or long-term) replaces the key pair: set `apiKey` and the clients send it as
96
+ `Authorization: Bearer <key>` (the SDK's `httpBearerAuth` scheme) instead of signing. It wins over `credentials`.
97
+
98
+ ```typescript
99
+ const aws = new AWSBedrockProvider({ region: 'us-east-1', apiKey: process.env.AWS_BEARER_TOKEN_BEDROCK! });
100
+ ```
101
+
93
102
  ## Configuration (`AWSBedrockConfig`)
94
103
 
95
104
  | Field | Type | Notes |
96
105
  |-------|------|-------|
97
106
  | `region` | `string` | AWS region; defaults to `AWS_REGION` then `us-east-1` |
98
107
  | `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.'`) |
108
+ | `apiKey` | `string` | Bedrock API key, sent as a bearer token; wins over `credentials` |
109
+ | `requestHandler` | `BedrockClientConfig['requestHandler']` | HTTP handler for both clients (a proxy, or a fake in tests) |
110
+ | `modelPrefix` | `string` | Inference profile prefix prepended to every model id (`'us.'`, `'eu.'`, `'apac.'`, `'global.'`); without one, profile-only models use the region's profile automatically |
111
+ | `latency` | `'standard' | 'optimized'` | Converse `performanceConfig.latency`, for models that offer latency-optimized inference |
112
+ | `guardrail` | `GuardrailStreamConfiguration` | Guardrail on every chat request (`guardrailIdentifier`, `guardrailVersion`, `trace`; `streamProcessingMode` applies to streams) |
100
113
  | `modelFamilies` | `Record<string, ModelFamilyConfig>` | Per-family enable/disable and model-id mapping |
101
114
  | `defaultModels` | `{ chat?, imageGenerate?, embedding? }` | Fallback model per capability |
102
115
  | `hooks` | `AWSBedrockHooks` | `chat` / `imageGenerate` / `embed` with `beforeRequest` / `afterRequest` |
@@ -110,14 +123,19 @@ const aws = new AWSBedrockProvider({ region: 'us-east-1', modelPrefix: 'us.' });
110
123
  // model 'anthropic.claude-...' is sent as 'us.anthropic.claude-...'
111
124
  ```
112
125
 
126
+ Without a prefix, a model the registry marks `metadata.inRegion: false` is called by its inference profile for the client region's geography (`us.`, `eu.`, `apac.`), or `global.`. When Bedrock answers "on-demand throughput isn't supported" for a plain id, the request is retried by profile and that model is called by profile from then on.
127
+
113
128
  ## Supported capabilities
114
129
 
115
130
  | Capability | Implementation | Models |
116
131
  |-----------|----------------|--------|
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 |
132
+ | Chat (+ streaming) | `ConverseCommand` / `ConverseStreamCommand` | Anthropic Claude, Amazon Nova, gpt-oss, open-weight models (DeepSeek, Qwen, ...), Meta Llama, Mistral, Cohere, etc. |
133
+ | Tools / function calling | Converse `toolConfig` (`auto` / `any` / `tool`; `{ allowed }` sends only the allowed tools; strict tools set `strict: true`) | Claude and other tool-capable families |
134
+ | Content | `image`, `document` (pdf, csv, doc(x), xls(x), html, txt, md), `video`, `audio` blocks; `s3://` URIs go as S3 locations, other URLs are downloaded | Per model |
135
+ | Reasoning | Claude 4.6+ adaptive `thinking` + `outputConfig.effort`; earlier Claude `budget_tokens`; Nova 2 `reasoningConfig`; others `reasoning_effort`. Returned as `bedrock-converse-v1` details marked `provider: 'aws-bedrock'` and replayed (signed/redacted only) on later turns | Claude 3.7+, Nova 2, gpt-oss, ... |
136
+ | Structured output | `outputConfig.textFormat` JSON schema when the schema fits Anthropic's strict subset; otherwise the schema goes in the prompt | Claude 4.5+ |
137
+ | Prompt caching | `cacheBreakpoint` → `cachePoint`; usage `cached` / `cacheWrite`. Left out for models whose registry pricing has no cache reads | Claude, Nova |
138
+ | Other request fields | `serviceTier` (`fast` → `priority`, `scale` → `reserved`), `metadata` → `requestMetadata`, `extra` → `additionalModelRequestFields` | All Converse models |
121
139
  | Image generation | `InvokeModelCommand` | Stability AI (SDXL / SD3) |
122
140
  | Embeddings | `InvokeModelCommand` | Amazon Titan text embeddings |
123
141
 
@@ -154,18 +172,19 @@ const embeddings = await ai.embed.get(
154
172
  ```typescript
155
173
  import {
156
174
  AWSError, // base
157
- AWSAuthError, // UnrecognizedClientException / InvalidSignatureException
158
- AWSRateLimitError, // ThrottlingException / TooManyRequestsException
175
+ AWSAuthError, // UnrecognizedClientException / InvalidSignatureException / AccessDeniedException / ExpiredTokenException
176
+ AWSRateLimitError, // ThrottlingException / TooManyRequestsException / ServiceUnavailableException
159
177
  AWSQuotaError, // ServiceQuotaExceededException
160
- AWSContextWindowError, // "context length" / "token limit" in message
178
+ AWSContextWindowError, // "context length", "token limit", "too long" (Claude), "Input Tokens Exceeded" (Nova)
161
179
  } from '@aeye/aws';
162
180
  ```
163
181
 
164
182
  ## Gotchas
165
183
 
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.
184
+ - **Claude thinking and forced tools don't mix.** A turn that forces a tool is sent with thinking disabled. Claude that always thinks (Opus 5.5, Sonnet 5.5, Fable) rejects both, so it is never sent `disabled`; a forced turn offers it only the forced tools with an automatic choice.
185
+ - Efforts are clamped to what the model accepts (Claude 4.6 gets `high` for `xhigh`); Claude thinking clears `temperature`/`topP`, and Nova's `high` effort clears `maxTokens`.
167
186
  - **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
187
  - **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.
188
+ - Consecutive same-role messages are merged automatically (Converse requirement); an empty conversation gets a synthetic user message (`Perform the requested operation.`).
170
189
  - Image generation/embeddings use fixed defaults in the Stability payload (`cfg_scale: 7`, `steps: 30`); only `prompt`, `size`, and `seed` flow through.
171
190
  - 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
@@ -7,7 +7,8 @@
7
7
  */
8
8
  import type { AIContextAny, AIMetadataAny, EmbeddingRequest, EmbeddingResponse, ImageGenerationRequest, ImageGenerationResponse, ModelInfo, Provider } from '@aeye/ai';
9
9
  import { type DescriptorFamily, Executor, ModelInput, Request, Response, Streamer } from '@aeye/core';
10
- import { ConverseCommand, ConverseStreamCommand, InvokeModelCommand } from '@aws-sdk/client-bedrock-runtime';
10
+ import { BedrockClientConfig } from '@aws-sdk/client-bedrock';
11
+ import { ConverseCommand, ConverseStreamCommand, type GuardrailStreamConfiguration, InvokeModelCommand, type PerformanceConfigLatency } from '@aws-sdk/client-bedrock-runtime';
11
12
  import { type ModelFamilyConfig } from './types';
12
13
  /**
13
14
  * Hook called before a request is made to the provider.
@@ -64,6 +65,11 @@ export interface AWSBedrockHooks {
64
65
  * };
65
66
  * ```
66
67
  *
68
+ * @example With a Bedrock API key
69
+ * ```typescript
70
+ * const config: AWSBedrockConfig = { region: 'us-east-1', apiKey: process.env.AWS_BEARER_TOKEN_BEDROCK! };
71
+ * ```
72
+ *
67
73
  * @example With explicit credentials
68
74
  * ```typescript
69
75
  * const config: AWSBedrockConfig = {
@@ -82,7 +88,11 @@ export interface AWSBedrockConfig {
82
88
  secretAccessKey?: string;
83
89
  sessionToken?: string;
84
90
  };
91
+ apiKey?: string;
92
+ requestHandler?: BedrockClientConfig['requestHandler'];
85
93
  modelPrefix?: string;
94
+ latency?: PerformanceConfigLatency;
95
+ guardrail?: GuardrailStreamConfiguration;
86
96
  modelFamilies?: Record<string, ModelFamilyConfig>;
87
97
  defaultModels?: {
88
98
  chat?: ModelInput;
@@ -128,6 +138,7 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
128
138
  defaultMetadata?: Provider['defaultMetadata'];
129
139
  private bedrockClient;
130
140
  private bedrockRuntimeClient;
141
+ private profileOnly;
131
142
  constructor(config: AWSBedrockConfig);
132
143
  /**
133
144
  * Convert AWSBedrockConfig to BedrockClientConfig
@@ -160,7 +171,22 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
160
171
  */
161
172
  createStreamer(config?: AWSBedrockConfig): Streamer<AIContextAny, AIMetadataAny>;
162
173
  /**
163
- * Build a ConverseCommandInput from a generic @aeye/core Request.
174
+ * The id to call a chat model by. A configured `modelPrefix` picks a
175
+ * cross-region inference profile; otherwise a model Bedrock serves only
176
+ * through inference profiles (per the registry, or as Bedrock answered an
177
+ * earlier call in this region) uses the profile for the client region's
178
+ * geography, or the global one when only that is listed.
179
+ */
180
+ private resolveModelId;
181
+ /**
182
+ * Make a chat call, and when Bedrock answers that the model needs an
183
+ * inference profile in this region (the registry's `inRegion` holds for
184
+ * the region it was gathered in), make it again by profile.
185
+ */
186
+ private byProfileWhenRequired;
187
+ /**
188
+ * Build the Converse input from a generic @aeye/core Request, without the
189
+ * guardrail, whose shape differs between Converse and ConverseStream.
164
190
  */
165
191
  private convertRequestToConverse;
166
192
  /**
@@ -171,31 +197,23 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
171
197
  * Execute a streaming chat completion using the Converse Stream API.
172
198
  */
173
199
  private streamWithConverse;
174
- /**
175
- * Convert system messages to the Converse API system format.
176
- */
177
- private convertSystemToConverse;
178
200
  /**
179
201
  * Convert @aeye/core messages to AWS Bedrock Converse API message format.
180
- * Filters out system messages (handled via convertSystemToConverse).
202
+ * Filters out system messages (handled via toSystemBlocks).
181
203
  * Merges consecutive messages with the same role as required by the API.
182
204
  */
183
205
  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
206
  /**
191
207
  * Convert @aeye/core tool definitions to AWS Bedrock Converse API tool format.
192
208
  *
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
209
+ * Strict-tool support is best-effort and per-model: the budget's
210
+ * descriptor comes from `buildSchemaBudget` (see `@aeye/ai`). Bedrock
196
211
  * 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
212
+ * OpenAI-shaped tools. Models without strict support use their family's
213
+ * non-strict descriptor, and models without a family Bedrock speaks fall
214
+ * back to LENIENT — silent degradation. Tools with a strict descriptor are
215
+ * sent with Converse's `strict` flag, which constrains the model's calls to
216
+ * the schema. The chosen descriptor is pinned on each
199
217
  * `ToolDefinition.descriptor` so the Prompt loop can apply the matching
200
218
  * strictify when validating tool arguments.
201
219
  *
@@ -203,8 +221,21 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
203
221
  * params, 16 union types across the whole request) — those are tracked
204
222
  * by the shared `SchemaBudget` so over-budget tools degrade to LENIENT
205
223
  * silently rather than failing the API call.
224
+ *
225
+ * Converse has no free-text tools, so those go as their one-field function
226
+ * with any grammar in the description. It has no `none` choice either, so
227
+ * tools are left out then, unless the conversation already used them
228
+ * (Converse rejects tool blocks without a tool config).
206
229
  */
207
230
  private convertToolsToConverse;
231
+ /**
232
+ * Convert a schema response format to Converse structured output. Converse
233
+ * rejects schemas outside its strict subset, so a schema goes only when the
234
+ * model's strict descriptor can shape it; the descriptor is pinned on the
235
+ * format so the Prompt validator can apply the matching strictify. Plain
236
+ * JSON has no Converse mode.
237
+ */
238
+ private convertResponseFormat;
208
239
  /**
209
240
  * The set of strict descriptor families this provider can speak through
210
241
  * Bedrock. Defaults to `['openai', 'anthropic', 'google']` — Bedrock
@@ -212,17 +243,6 @@ export declare class AWSBedrockProvider implements Provider<AWSBedrockConfig> {
212
243
  * families.
213
244
  */
214
245
  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.
220
- */
221
- private buildSchemaBudget;
222
- /**
223
- * Map a Bedrock Converse API stop reason to the @aeye/core FinishReason type.
224
- */
225
- private mapStopReason;
226
246
  generateImage: Provider['generateImage'];
227
247
  embed: Provider['embed'];
228
248
  private handleAWSError;
package/dist/aws.d.ts.map CHANGED
@@ -1 +1 @@
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,QAAQ,EAMR,UAAU,EACV,OAAO,EACP,QAAQ,EAKR,QAAQ,EAGT,MAAM,YAAY,CAAC;AAMpB,OAAO,EAGL,eAAe,EAEf,qBAAqB,EAGrB,kBAAkB,EAKnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAmF,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA6BlI;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,CAAC,QAAQ,GAAG,GAAG,EAAE,QAAQ,GAAG,GAAG,IAAI,CAC3D,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,QAAQ,EACjB,GAAG,EAAE,YAAY,KACd,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE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