orchestrated 0.1.23 → 0.1.25

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 (4) hide show
  1. package/index.d.ts +2 -40
  2. package/index.js +106 -92763
  3. package/index.js.map +9 -642
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -67,7 +67,6 @@ declare class BatchClient {
67
67
  private mode;
68
68
  private s3FileManager;
69
69
  private bedrockConfig;
70
- private bedrockNativeConfig;
71
70
  private tempDir;
72
71
  requests: BatchRequest[];
73
72
  responses: BatchResult[];
@@ -124,16 +123,6 @@ declare class BatchClient {
124
123
  * @returns Batch object with ID and status
125
124
  */
126
125
  submitBatch(requests: BatchRequest[], completionWindow?: "24h"): Promise<Batch>;
127
- /**
128
- * Submit a batch using the native Bedrock CreateModelInvocationJob API
129
- * with modelInvocationType "Converse".
130
- */
131
- private submitBedrockNativeBatch;
132
- /**
133
- * Encode eval name and checksum into a Bedrock jobName.
134
- * Bedrock jobName must match: [a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}
135
- */
136
- private encodeJobName;
137
126
  /**
138
127
  * Retrieves the status of a batch
139
128
  *
@@ -141,11 +130,6 @@ declare class BatchClient {
141
130
  * @returns Batch object with current status
142
131
  */
143
132
  getBatchStatus(batchId: string): Promise<Batch>;
144
- /**
145
- * Get the status of a native Bedrock batch job.
146
- * batchId is the Bedrock job ARN.
147
- */
148
- private getBedrockNativeBatchStatus;
149
133
  /**
150
134
  * Checks if a batch has completed (successfully or with errors)
151
135
  */
@@ -159,20 +143,10 @@ declare class BatchClient {
159
143
  * @returns Array of batch results
160
144
  */
161
145
  getBatchResults(batchId: string): Promise<BatchResult[]>;
162
- /**
163
- * Parse native Bedrock Converse output JSONL into BatchResult[].
164
- * Bedrock writes output to {outputUri}/{jobId}/input.jsonl.out
165
- * We list the S3 prefix and read the .out file.
166
- */
167
- private getBedrockNativeBatchResults;
168
146
  /**
169
147
  * Lists all batches with optional filtering
170
148
  */
171
149
  listBatches(limit?: number): Promise<Batch[]>;
172
- /**
173
- * List native Bedrock batch jobs, filtering by eval name encoded in jobName.
174
- */
175
- private listBedrockNativeBatches;
176
150
  /**
177
151
  * Cancels a batch that is in progress
178
152
  */
@@ -192,10 +166,9 @@ declare class BatchClient {
192
166
  * Options for constructing a BatchClient
193
167
  */
194
168
  declare interface BatchClientOptions {
195
- mode?: "OPENAI" | "BEDROCK_OPENAI" | "BEDROCK";
169
+ mode?: "OPENAI" | "BEDROCK_OPENAI";
196
170
  clientOptions?: ClientOptions;
197
171
  bedrock?: BedrockBatchConfig;
198
- bedrockNative?: BedrockNativeBatchConfig;
199
172
  }
200
173
 
201
174
  /**
@@ -235,17 +208,6 @@ declare interface BedrockBatchConfig {
235
208
  s3Prefix?: string;
236
209
  }
237
210
 
238
- /**
239
- * Bedrock-specific configuration for native BEDROCK mode (Converse API)
240
- */
241
- declare interface BedrockNativeBatchConfig {
242
- region: string;
243
- serviceRoleArn: string;
244
- modelId: string;
245
- s3Bucket: string;
246
- s3Prefix?: string;
247
- }
248
-
249
211
  export declare const Behavioral: ((args: unknown) => Promise<Score>) & {
250
212
  definition?: SerializableScorerDefinition;
251
213
  };
@@ -528,7 +490,7 @@ export declare interface EvalOptions<EvalReport = boolean> {
528
490
  * - "OPENAI": Use OpenAI Batch API (default)
529
491
  * - "BEDROCK_OPENAI": Use AWS Bedrock OpenAI-compatible Batch API
530
492
  */
531
- batchProcessor?: "OPENAI" | "BEDROCK_OPENAI" | "BEDROCK";
493
+ batchProcessor?: "OPENAI" | "BEDROCK_OPENAI";
532
494
  __schedule?: string;
533
495
  }
534
496