@aws-sdk/client-bedrock 3.1055.0 → 3.1057.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/dist-cjs/index.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +44 -15
- package/dist-es/models/enums.js +2 -0
- package/dist-es/schemas/schemas_0.js +33 -4
- package/dist-types/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateCustomModelCommand.d.ts +6 -1
- package/dist-types/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +1 -1
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +1 -1
- package/dist-types/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +1 -1
- package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +12 -1
- package/dist-types/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +1 -1
- package/dist-types/models/enums.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +152 -149
- package/dist-types/models/models_1.d.ts +79 -1
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +41 -21
- package/dist-types/ts3.4/models/models_1.d.ts +20 -3
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength,
|
|
2
|
+
import type { AdvancedPromptOptimizationJobStatus, AgreementStatus, ApplicationType, AttributeType, AutomatedReasoningCheckLogicWarningType, AutomatedReasoningCheckResult, AutomatedReasoningPolicyAnnotationStatus, AutomatedReasoningPolicyBuildDocumentContentType, AutomatedReasoningPolicyBuildMessageType, AutomatedReasoningPolicyBuildResultAssetType, AutomatedReasoningPolicyBuildWorkflowStatus, AutomatedReasoningPolicyBuildWorkflowType, AutomatedReasoningPolicyTestRunResult, AutomatedReasoningPolicyTestRunStatus, ConfigurationOwner, CustomizationType, CustomModelDeploymentStatus, CustomModelDeploymentUpdateStatus, EvaluationJobStatus, EvaluationJobType, EvaluationTaskType, ExternalSourceType, GuardrailContentFilterAction, GuardrailContentFiltersTierName, GuardrailContentFilterType, GuardrailContextualGroundingAction, GuardrailContextualGroundingFilterType, GuardrailFilterStrength, GuardrailModality, GuardrailPiiEntityType, GuardrailSensitiveInformationAction, GuardrailTopicAction, GuardrailTopicsTierName, GuardrailTopicType, InputTags, ModelStatus, PerformanceConfigLatency, QueryTransformationType, ReasoningEffort, RerankingMetadataSelectionMode, SelectiveGuardingMode, SortJobsBy, SortModelsBy, SortOrder, Status, VectorSearchRerankingConfigurationType } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Model-specific information for the enforced guardrail configuration.</p>
|
|
5
5
|
* @public
|
|
@@ -127,134 +127,134 @@ export interface AccountEnforcedGuardrailOutputConfiguration {
|
|
|
127
127
|
modelEnforcement?: ModelEnforcement | undefined;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* <p>Contains the input data configuration for an advanced prompt optimization job.</p>
|
|
131
131
|
* @public
|
|
132
132
|
*/
|
|
133
133
|
export interface AdvancedPromptOptimizationInputConfig {
|
|
134
134
|
/**
|
|
135
|
-
* S3 URI of the input
|
|
135
|
+
* <p>The S3 URI of the JSONL input file containing prompt templates and evaluation samples.</p>
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
138
|
s3Uri: string | undefined;
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
* Batch Delete Advanced Prompt Optimization Jobs Request
|
|
141
|
+
* <p>Batch Delete Advanced Prompt Optimization Jobs Request</p>
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
export interface BatchDeleteAdvancedPromptOptimizationJobRequest {
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* <p>A list of advanced prompt optimization job identifiers (ARNs or IDs) to delete.</p>
|
|
147
147
|
* @public
|
|
148
148
|
*/
|
|
149
149
|
jobIdentifiers: string[] | undefined;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* <p>Contains information about a successfully deleted advanced prompt optimization job.</p>
|
|
153
153
|
* @public
|
|
154
154
|
*/
|
|
155
155
|
export interface BatchDeleteAdvancedPromptOptimizationJobItem {
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* <p>The identifier of the deleted job.</p>
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
jobIdentifier: string | undefined;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* <p>The status of the deleted job.</p>
|
|
163
163
|
* @public
|
|
164
164
|
*/
|
|
165
165
|
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* <p>Contains information about an error that occurred when deleting an advanced prompt optimization job.</p>
|
|
169
169
|
* @public
|
|
170
170
|
*/
|
|
171
171
|
export interface BatchDeleteAdvancedPromptOptimizationJobError {
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* <p>The identifier of the job that could not be deleted.</p>
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
jobIdentifier: string | undefined;
|
|
177
177
|
/**
|
|
178
|
-
*
|
|
178
|
+
* <p>The error code for the deletion failure.</p>
|
|
179
179
|
* @public
|
|
180
180
|
*/
|
|
181
181
|
code: string | undefined;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* <p>A message describing the error.</p>
|
|
184
184
|
* @public
|
|
185
185
|
*/
|
|
186
186
|
message?: string | undefined;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
* Batch Delete Advanced Prompt Optimization Jobs Response
|
|
189
|
+
* <p>Batch Delete Advanced Prompt Optimization Jobs Response</p>
|
|
190
190
|
* @public
|
|
191
191
|
*/
|
|
192
192
|
export interface BatchDeleteAdvancedPromptOptimizationJobResponse {
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* <p>A list of errors encountered during batch deletion.</p>
|
|
195
195
|
* @public
|
|
196
196
|
*/
|
|
197
197
|
errors: BatchDeleteAdvancedPromptOptimizationJobError[] | undefined;
|
|
198
198
|
/**
|
|
199
|
-
*
|
|
199
|
+
* <p>A list of successfully deleted advanced prompt optimization jobs.</p>
|
|
200
200
|
* @public
|
|
201
201
|
*/
|
|
202
202
|
advancedPromptOptimizationJobs: BatchDeleteAdvancedPromptOptimizationJobItem[] | undefined;
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
|
-
*
|
|
205
|
+
* <p>Base inference parameters to pass to a model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters for foundation models</a>.</p>
|
|
206
206
|
* @public
|
|
207
207
|
*/
|
|
208
208
|
export interface InferenceConfiguration {
|
|
209
209
|
/**
|
|
210
|
-
* The maximum number of tokens to
|
|
210
|
+
* <p>The maximum number of tokens to allow in the generated response. The default value is the maximum allowed value for the model that you are using.</p>
|
|
211
211
|
* @public
|
|
212
212
|
*/
|
|
213
213
|
maxTokens?: number | undefined;
|
|
214
214
|
/**
|
|
215
|
-
* The
|
|
215
|
+
* <p>The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options.</p>
|
|
216
216
|
* @public
|
|
217
217
|
*/
|
|
218
218
|
temperature?: number | undefined;
|
|
219
219
|
/**
|
|
220
|
-
* The
|
|
220
|
+
* <p>The percentage of most-likely candidates that the model considers for the next token. For example, if you choose a value of 0.8 for <code>topP</code>, the model selects from the top 80% of the probability distribution of tokens that could be next in the sequence.</p>
|
|
221
221
|
* @public
|
|
222
222
|
*/
|
|
223
223
|
topP?: number | undefined;
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* <p>A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.</p>
|
|
226
226
|
* @public
|
|
227
227
|
*/
|
|
228
228
|
stopSequences?: string[] | undefined;
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
231
|
+
* <p>Contains the configuration for a model used in an advanced prompt optimization job, including the model ID and inference parameters.</p>
|
|
232
232
|
* @public
|
|
233
233
|
*/
|
|
234
234
|
export interface ModelConfiguration {
|
|
235
235
|
/**
|
|
236
|
-
* The model
|
|
236
|
+
* <p>The ID of the model to use for optimization.</p>
|
|
237
237
|
* @public
|
|
238
238
|
*/
|
|
239
239
|
modelId: string | undefined;
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* <p>The inference configuration for the model, including parameters such as maximum tokens, temperature, and top-p.</p>
|
|
242
242
|
* @public
|
|
243
243
|
*/
|
|
244
244
|
inferenceConfig?: InferenceConfiguration | undefined;
|
|
245
245
|
/**
|
|
246
|
-
* Additional model request fields.
|
|
246
|
+
* <p>Additional model request fields. Use this to pass model-specific parameters that are not included in the standard inference configuration.</p>
|
|
247
247
|
* @public
|
|
248
248
|
*/
|
|
249
249
|
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
252
|
+
* <p>Contains the output data configuration for an advanced prompt optimization job.</p>
|
|
253
253
|
* @public
|
|
254
254
|
*/
|
|
255
255
|
export interface AdvancedPromptOptimizationOutputConfig {
|
|
256
256
|
/**
|
|
257
|
-
* S3 URI prefix
|
|
257
|
+
* <p>The S3 URI prefix where the optimization results will be written.</p>
|
|
258
258
|
* @public
|
|
259
259
|
*/
|
|
260
260
|
s3Uri: string | undefined;
|
|
@@ -276,220 +276,220 @@ export interface Tag {
|
|
|
276
276
|
value: string | undefined;
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
|
-
* Create Advanced Prompt Optimization Job Request
|
|
279
|
+
* <p>Create Advanced Prompt Optimization Job Request</p>
|
|
280
280
|
* @public
|
|
281
281
|
*/
|
|
282
282
|
export interface CreateAdvancedPromptOptimizationJobRequest {
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* <p>A name for the advanced prompt optimization job.</p>
|
|
285
285
|
* @public
|
|
286
286
|
*/
|
|
287
287
|
jobName: string | undefined;
|
|
288
288
|
/**
|
|
289
|
-
*
|
|
289
|
+
* <p>A description of the advanced prompt optimization job.</p>
|
|
290
290
|
* @public
|
|
291
291
|
*/
|
|
292
292
|
jobDescription?: string | undefined;
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.</p>
|
|
295
295
|
* @public
|
|
296
296
|
*/
|
|
297
297
|
clientToken?: string | undefined;
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* <p>Specifies the S3 location of your JSONL input file containing prompt templates and evaluation samples.</p>
|
|
300
300
|
* @public
|
|
301
301
|
*/
|
|
302
302
|
inputConfig: AdvancedPromptOptimizationInputConfig | undefined;
|
|
303
303
|
/**
|
|
304
|
-
*
|
|
304
|
+
* <p>Specifies the S3 location where optimization results will be stored.</p>
|
|
305
305
|
* @public
|
|
306
306
|
*/
|
|
307
307
|
outputConfig: AdvancedPromptOptimizationOutputConfig | undefined;
|
|
308
308
|
/**
|
|
309
|
-
* KMS key
|
|
309
|
+
* <p>The Amazon Resource Name (ARN) of the KMS key used for encrypting the output data. If not specified, the output is encrypted with an Amazon-owned KMS key.</p>
|
|
310
310
|
* @public
|
|
311
311
|
*/
|
|
312
312
|
encryptionKeyArn?: string | undefined;
|
|
313
313
|
/**
|
|
314
|
-
* Tags to associate with the job
|
|
314
|
+
* <p>Tags to associate with the advanced prompt optimization job.</p>
|
|
315
315
|
* @public
|
|
316
316
|
*/
|
|
317
317
|
tags?: Tag[] | undefined;
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
319
|
+
* <p>A list of model configurations specifying the target models for prompt optimization. You can specify up to 5 models.</p>
|
|
320
320
|
* @public
|
|
321
321
|
*/
|
|
322
322
|
modelConfigurations: ModelConfiguration[] | undefined;
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* Create Advanced Prompt Optimization Job Response
|
|
325
|
+
* <p>Create Advanced Prompt Optimization Job Response</p>
|
|
326
326
|
* @public
|
|
327
327
|
*/
|
|
328
328
|
export interface CreateAdvancedPromptOptimizationJobResponse {
|
|
329
329
|
/**
|
|
330
|
-
* ARN of the created advanced prompt optimization job
|
|
330
|
+
* <p>The Amazon Resource Name (ARN) of the created advanced prompt optimization job.</p>
|
|
331
331
|
* @public
|
|
332
332
|
*/
|
|
333
333
|
jobArn: string | undefined;
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
|
-
* Get Advanced Prompt Optimization Job Request
|
|
336
|
+
* <p>Get Advanced Prompt Optimization Job Request</p>
|
|
337
337
|
* @public
|
|
338
338
|
*/
|
|
339
339
|
export interface GetAdvancedPromptOptimizationJobRequest {
|
|
340
340
|
/**
|
|
341
|
-
* ARN or ID of the advanced prompt optimization job
|
|
341
|
+
* <p>The ARN or ID of the advanced prompt optimization job.</p>
|
|
342
342
|
* @public
|
|
343
343
|
*/
|
|
344
344
|
jobIdentifier: string | undefined;
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
|
-
* Get Advanced Prompt Optimization Job Response
|
|
347
|
+
* <p>Get Advanced Prompt Optimization Job Response</p>
|
|
348
348
|
* @public
|
|
349
349
|
*/
|
|
350
350
|
export interface GetAdvancedPromptOptimizationJobResponse {
|
|
351
351
|
/**
|
|
352
|
-
* ARN of the advanced prompt optimization job
|
|
352
|
+
* <p>The Amazon Resource Name (ARN) of the advanced prompt optimization job.</p>
|
|
353
353
|
* @public
|
|
354
354
|
*/
|
|
355
355
|
jobArn: string | undefined;
|
|
356
356
|
/**
|
|
357
|
-
*
|
|
357
|
+
* <p>The name of the advanced prompt optimization job.</p>
|
|
358
358
|
* @public
|
|
359
359
|
*/
|
|
360
360
|
jobName: string | undefined;
|
|
361
361
|
/**
|
|
362
|
-
*
|
|
362
|
+
* <p>The description of the advanced prompt optimization job.</p>
|
|
363
363
|
* @public
|
|
364
364
|
*/
|
|
365
365
|
jobDescription?: string | undefined;
|
|
366
366
|
/**
|
|
367
|
-
*
|
|
367
|
+
* <p>The status of the advanced prompt optimization job.</p>
|
|
368
368
|
* @public
|
|
369
369
|
*/
|
|
370
370
|
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
372
|
+
* <p>The input data configuration for the optimization job.</p>
|
|
373
373
|
* @public
|
|
374
374
|
*/
|
|
375
375
|
inputConfig: AdvancedPromptOptimizationInputConfig | undefined;
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* <p>The output data configuration for the optimization job.</p>
|
|
378
378
|
* @public
|
|
379
379
|
*/
|
|
380
380
|
outputConfig: AdvancedPromptOptimizationOutputConfig | undefined;
|
|
381
381
|
/**
|
|
382
|
-
* KMS key
|
|
382
|
+
* <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt the output data.</p>
|
|
383
383
|
* @public
|
|
384
384
|
*/
|
|
385
385
|
encryptionKeyArn?: string | undefined;
|
|
386
386
|
/**
|
|
387
|
-
*
|
|
387
|
+
* <p>The time at which the advanced prompt optimization job was created.</p>
|
|
388
388
|
* @public
|
|
389
389
|
*/
|
|
390
390
|
creationTime: Date | undefined;
|
|
391
391
|
/**
|
|
392
|
-
*
|
|
392
|
+
* <p>The time at which the advanced prompt optimization job was last modified.</p>
|
|
393
393
|
* @public
|
|
394
394
|
*/
|
|
395
395
|
lastModifiedTime?: Date | undefined;
|
|
396
396
|
/**
|
|
397
|
-
*
|
|
397
|
+
* <p>If the job failed, a message describing the reason for the failure.</p>
|
|
398
398
|
* @public
|
|
399
399
|
*/
|
|
400
400
|
failureMessage?: string | undefined;
|
|
401
401
|
/**
|
|
402
|
-
*
|
|
402
|
+
* <p>The model configurations used in the optimization job.</p>
|
|
403
403
|
* @public
|
|
404
404
|
*/
|
|
405
405
|
modelConfigurations: ModelConfiguration[] | undefined;
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
|
-
* List Advanced Prompt Optimization Jobs Request
|
|
408
|
+
* <p>List Advanced Prompt Optimization Jobs Request</p>
|
|
409
409
|
* @public
|
|
410
410
|
*/
|
|
411
411
|
export interface ListAdvancedPromptOptimizationJobsRequest {
|
|
412
412
|
/**
|
|
413
|
-
*
|
|
413
|
+
* <p>The maximum number of results to return in the response.</p>
|
|
414
414
|
* @public
|
|
415
415
|
*/
|
|
416
416
|
maxResults?: number | undefined;
|
|
417
417
|
/**
|
|
418
|
-
*
|
|
418
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token in a subsequent request to get the next set of results.</p>
|
|
419
419
|
* @public
|
|
420
420
|
*/
|
|
421
421
|
nextToken?: string | undefined;
|
|
422
422
|
/**
|
|
423
|
-
*
|
|
423
|
+
* <p>The field to sort the results by.</p>
|
|
424
424
|
* @public
|
|
425
425
|
*/
|
|
426
426
|
sortBy?: SortJobsBy | undefined;
|
|
427
427
|
/**
|
|
428
|
-
*
|
|
428
|
+
* <p>The sort order for the results.</p>
|
|
429
429
|
* @public
|
|
430
430
|
*/
|
|
431
431
|
sortOrder?: SortOrder | undefined;
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
434
|
+
* <p>Contains a summary of an advanced prompt optimization job.</p>
|
|
435
435
|
* @public
|
|
436
436
|
*/
|
|
437
437
|
export interface AdvancedPromptOptimizationJobSummary {
|
|
438
438
|
/**
|
|
439
|
-
* ARN of the
|
|
439
|
+
* <p>The Amazon Resource Name (ARN) of the job.</p>
|
|
440
440
|
* @public
|
|
441
441
|
*/
|
|
442
442
|
jobArn: string | undefined;
|
|
443
443
|
/**
|
|
444
|
-
*
|
|
444
|
+
* <p>The name of the job.</p>
|
|
445
445
|
* @public
|
|
446
446
|
*/
|
|
447
447
|
jobName: string | undefined;
|
|
448
448
|
/**
|
|
449
|
-
*
|
|
449
|
+
* <p>The status of the job.</p>
|
|
450
450
|
* @public
|
|
451
451
|
*/
|
|
452
452
|
jobStatus: AdvancedPromptOptimizationJobStatus | undefined;
|
|
453
453
|
/**
|
|
454
|
-
*
|
|
454
|
+
* <p>The time at which the job was created.</p>
|
|
455
455
|
* @public
|
|
456
456
|
*/
|
|
457
457
|
creationTime: Date | undefined;
|
|
458
458
|
/**
|
|
459
|
-
*
|
|
459
|
+
* <p>The time at which the job was last modified.</p>
|
|
460
460
|
* @public
|
|
461
461
|
*/
|
|
462
462
|
lastModifiedTime?: Date | undefined;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
|
-
* List Advanced Prompt Optimization Jobs Response
|
|
465
|
+
* <p>List Advanced Prompt Optimization Jobs Response</p>
|
|
466
466
|
* @public
|
|
467
467
|
*/
|
|
468
468
|
export interface ListAdvancedPromptOptimizationJobsResponse {
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* <p>A list of advanced prompt optimization job summaries.</p>
|
|
471
471
|
* @public
|
|
472
472
|
*/
|
|
473
473
|
jobSummaries?: AdvancedPromptOptimizationJobSummary[] | undefined;
|
|
474
474
|
/**
|
|
475
|
-
*
|
|
475
|
+
* <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token in a subsequent request to get the next set of results.</p>
|
|
476
476
|
* @public
|
|
477
477
|
*/
|
|
478
478
|
nextToken?: string | undefined;
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
|
-
* Stop Advanced Prompt Optimization Job Request
|
|
481
|
+
* <p>Stop Advanced Prompt Optimization Job Request</p>
|
|
482
482
|
* @public
|
|
483
483
|
*/
|
|
484
484
|
export interface StopAdvancedPromptOptimizationJobRequest {
|
|
485
485
|
/**
|
|
486
|
-
* ARN or ID of the advanced prompt optimization job to stop
|
|
486
|
+
* <p>The ARN or ID of the advanced prompt optimization job to stop.</p>
|
|
487
487
|
* @public
|
|
488
488
|
*/
|
|
489
489
|
jobIdentifier: string | undefined;
|
|
490
490
|
}
|
|
491
491
|
/**
|
|
492
|
-
* Stop Advanced Prompt Optimization Job Response
|
|
492
|
+
* <p>Stop Advanced Prompt Optimization Job Response</p>
|
|
493
493
|
* @public
|
|
494
494
|
*/
|
|
495
495
|
export interface StopAdvancedPromptOptimizationJobResponse {
|
|
@@ -3680,6 +3680,22 @@ export declare namespace AutomatedReasoningPolicyGenerateFidelityReportContent {
|
|
|
3680
3680
|
_: (name: string, value: any) => T;
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
|
+
/**
|
|
3684
|
+
* <p>Configuration for an iterative policy refinement workflow, including source documents to process and optional feedback to guide the refinement.</p>
|
|
3685
|
+
* @public
|
|
3686
|
+
*/
|
|
3687
|
+
export interface AutomatedReasoningPolicyIterativeRefinementContent {
|
|
3688
|
+
/**
|
|
3689
|
+
* <p>Source documents used for iterative policy refinement. These documents provide context for refining the policy definition.</p>
|
|
3690
|
+
* @public
|
|
3691
|
+
*/
|
|
3692
|
+
documents: AutomatedReasoningPolicyBuildWorkflowDocument[] | undefined;
|
|
3693
|
+
/**
|
|
3694
|
+
* <p>Optional feedback to guide the iterative refinement workflow. Provide specific instructions or constraints for policy refinement.</p>
|
|
3695
|
+
* @public
|
|
3696
|
+
*/
|
|
3697
|
+
feedback?: string | undefined;
|
|
3698
|
+
}
|
|
3683
3699
|
/**
|
|
3684
3700
|
* <p>Contains content and instructions for repairing or improving an existing Automated Reasoning policy.</p>
|
|
3685
3701
|
* @public
|
|
@@ -3695,7 +3711,7 @@ export interface AutomatedReasoningPolicyBuildWorkflowRepairContent {
|
|
|
3695
3711
|
* <p>Defines the content and configuration for different types of policy build workflows.</p>
|
|
3696
3712
|
* @public
|
|
3697
3713
|
*/
|
|
3698
|
-
export type AutomatedReasoningPolicyWorkflowTypeContent = AutomatedReasoningPolicyWorkflowTypeContent.DocumentsMember | AutomatedReasoningPolicyWorkflowTypeContent.GenerateFidelityReportContentMember | AutomatedReasoningPolicyWorkflowTypeContent.PolicyRepairAssetsMember | AutomatedReasoningPolicyWorkflowTypeContent.$UnknownMember;
|
|
3714
|
+
export type AutomatedReasoningPolicyWorkflowTypeContent = AutomatedReasoningPolicyWorkflowTypeContent.DocumentsMember | AutomatedReasoningPolicyWorkflowTypeContent.GenerateFidelityReportContentMember | AutomatedReasoningPolicyWorkflowTypeContent.IterativeRefinementContentMember | AutomatedReasoningPolicyWorkflowTypeContent.PolicyRepairAssetsMember | AutomatedReasoningPolicyWorkflowTypeContent.$UnknownMember;
|
|
3699
3715
|
/**
|
|
3700
3716
|
* @public
|
|
3701
3717
|
*/
|
|
@@ -3708,6 +3724,7 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
3708
3724
|
documents: AutomatedReasoningPolicyBuildWorkflowDocument[];
|
|
3709
3725
|
policyRepairAssets?: never;
|
|
3710
3726
|
generateFidelityReportContent?: never;
|
|
3727
|
+
iterativeRefinementContent?: never;
|
|
3711
3728
|
$unknown?: never;
|
|
3712
3729
|
}
|
|
3713
3730
|
/**
|
|
@@ -3718,6 +3735,7 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
3718
3735
|
documents?: never;
|
|
3719
3736
|
policyRepairAssets: AutomatedReasoningPolicyBuildWorkflowRepairContent;
|
|
3720
3737
|
generateFidelityReportContent?: never;
|
|
3738
|
+
iterativeRefinementContent?: never;
|
|
3721
3739
|
$unknown?: never;
|
|
3722
3740
|
}
|
|
3723
3741
|
/**
|
|
@@ -3728,6 +3746,18 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
3728
3746
|
documents?: never;
|
|
3729
3747
|
policyRepairAssets?: never;
|
|
3730
3748
|
generateFidelityReportContent: AutomatedReasoningPolicyGenerateFidelityReportContent;
|
|
3749
|
+
iterativeRefinementContent?: never;
|
|
3750
|
+
$unknown?: never;
|
|
3751
|
+
}
|
|
3752
|
+
/**
|
|
3753
|
+
* <p>Content configuration to start an iterative policy refinement workflow that uses generative AI to automatically make changes to the policy based on test results and the optional feedback provided.</p>
|
|
3754
|
+
* @public
|
|
3755
|
+
*/
|
|
3756
|
+
interface IterativeRefinementContentMember {
|
|
3757
|
+
documents?: never;
|
|
3758
|
+
policyRepairAssets?: never;
|
|
3759
|
+
generateFidelityReportContent?: never;
|
|
3760
|
+
iterativeRefinementContent: AutomatedReasoningPolicyIterativeRefinementContent;
|
|
3731
3761
|
$unknown?: never;
|
|
3732
3762
|
}
|
|
3733
3763
|
/**
|
|
@@ -3737,6 +3767,7 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
3737
3767
|
documents?: never;
|
|
3738
3768
|
policyRepairAssets?: never;
|
|
3739
3769
|
generateFidelityReportContent?: never;
|
|
3770
|
+
iterativeRefinementContent?: never;
|
|
3740
3771
|
$unknown: [string, any];
|
|
3741
3772
|
}
|
|
3742
3773
|
/**
|
|
@@ -3747,6 +3778,7 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
3747
3778
|
documents: (value: AutomatedReasoningPolicyBuildWorkflowDocument[]) => T;
|
|
3748
3779
|
policyRepairAssets: (value: AutomatedReasoningPolicyBuildWorkflowRepairContent) => T;
|
|
3749
3780
|
generateFidelityReportContent: (value: AutomatedReasoningPolicyGenerateFidelityReportContent) => T;
|
|
3781
|
+
iterativeRefinementContent: (value: AutomatedReasoningPolicyIterativeRefinementContent) => T;
|
|
3750
3782
|
_: (name: string, value: any) => T;
|
|
3751
3783
|
}
|
|
3752
3784
|
}
|
|
@@ -4615,6 +4647,50 @@ export interface UpdateCustomModelDeploymentResponse {
|
|
|
4615
4647
|
*/
|
|
4616
4648
|
customModelDeploymentArn: string | undefined;
|
|
4617
4649
|
}
|
|
4650
|
+
/**
|
|
4651
|
+
* <p>Contains the Amazon Resource Name (ARN) of a SageMaker AI model package to use as the data source for a custom model.</p>
|
|
4652
|
+
* @public
|
|
4653
|
+
*/
|
|
4654
|
+
export interface ModelPackageArnDataSource {
|
|
4655
|
+
/**
|
|
4656
|
+
* <p>The Amazon Resource Name (ARN) of the SageMaker AI model package. The ARN must be for a model package of <code>restricted</code> type.</p> <p>To use a model package ARN, you must have the <code>sagemaker:DescribeModelPackage</code> and <code>sagemaker:AccessModelPackageData</code> permissions on the model package resource.</p>
|
|
4657
|
+
* @public
|
|
4658
|
+
*/
|
|
4659
|
+
modelPackageArn: string | undefined;
|
|
4660
|
+
}
|
|
4661
|
+
/**
|
|
4662
|
+
* <p>The data source for a custom model. This is a union type that supports the following member:</p> <ul> <li> <p> <code>modelPackageArnDataSource</code> — Specifies a SageMaker AI model package as the data source.</p> </li> </ul>
|
|
4663
|
+
* @public
|
|
4664
|
+
*/
|
|
4665
|
+
export type CustomModelDataSource = CustomModelDataSource.ModelPackageArnDataSourceMember | CustomModelDataSource.$UnknownMember;
|
|
4666
|
+
/**
|
|
4667
|
+
* @public
|
|
4668
|
+
*/
|
|
4669
|
+
export declare namespace CustomModelDataSource {
|
|
4670
|
+
/**
|
|
4671
|
+
* <p>A SageMaker AI model package ARN as the data source for the custom model. When you specify a model package ARN, Amazon Bedrock resolves the model package to retrieve the model artifacts.</p>
|
|
4672
|
+
* @public
|
|
4673
|
+
*/
|
|
4674
|
+
interface ModelPackageArnDataSourceMember {
|
|
4675
|
+
modelPackageArnDataSource: ModelPackageArnDataSource;
|
|
4676
|
+
$unknown?: never;
|
|
4677
|
+
}
|
|
4678
|
+
/**
|
|
4679
|
+
* @public
|
|
4680
|
+
*/
|
|
4681
|
+
interface $UnknownMember {
|
|
4682
|
+
modelPackageArnDataSource?: never;
|
|
4683
|
+
$unknown: [string, any];
|
|
4684
|
+
}
|
|
4685
|
+
/**
|
|
4686
|
+
* @deprecated unused in schema-serde mode.
|
|
4687
|
+
*
|
|
4688
|
+
*/
|
|
4689
|
+
interface Visitor<T> {
|
|
4690
|
+
modelPackageArnDataSource: (value: ModelPackageArnDataSource) => T;
|
|
4691
|
+
_: (name: string, value: any) => T;
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4618
4694
|
/**
|
|
4619
4695
|
* <p>The Amazon S3 data source of the model to import. </p>
|
|
4620
4696
|
* @public
|
|
@@ -4672,14 +4748,19 @@ export interface CreateCustomModelRequest {
|
|
|
4672
4748
|
* <p>The data source for the model. The Amazon S3 URI in the model source must be for the Amazon-managed Amazon S3 bucket containing your model artifacts.</p>
|
|
4673
4749
|
* @public
|
|
4674
4750
|
*/
|
|
4675
|
-
modelSourceConfig
|
|
4751
|
+
modelSourceConfig?: ModelDataSource | undefined;
|
|
4752
|
+
/**
|
|
4753
|
+
* <p>The data source for the custom model. Use this field to specify a SageMaker AI model package ARN as the source for your custom model. Amazon Bedrock resolves the model package to retrieve the model artifacts.</p> <p>You can specify either <code>customModelDataSource</code> or <code>modelSourceConfig</code>, but not both.</p>
|
|
4754
|
+
* @public
|
|
4755
|
+
*/
|
|
4756
|
+
customModelDataSource?: CustomModelDataSource | undefined;
|
|
4676
4757
|
/**
|
|
4677
4758
|
* <p>The Amazon Resource Name (ARN) of the customer managed KMS key to encrypt the custom model. If you don't provide a KMS key, Amazon Bedrock uses an Amazon Web Services-managed KMS key to encrypt the model. </p> <p>If you provide a customer managed KMS key, your Amazon Bedrock service role must have permissions to use it. For more information see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-import-model.html">Encryption of imported models</a>. </p>
|
|
4678
4759
|
* @public
|
|
4679
4760
|
*/
|
|
4680
4761
|
modelKmsKeyArn?: string | undefined;
|
|
4681
4762
|
/**
|
|
4682
|
-
* <p>The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock assumes to perform tasks on your behalf. This role must have permissions to access the Amazon S3 bucket containing your model artifacts and the KMS key (if specified). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html">Setting up an IAM service role for importing models</a> in the Amazon Bedrock User Guide.</p>
|
|
4763
|
+
* <p>The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock assumes to perform tasks on your behalf. This role must have permissions to access the Amazon S3 bucket containing your model artifacts and the KMS key (if specified). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-import-iam-role.html">Setting up an IAM service role for importing models</a> in the Amazon Bedrock User Guide.</p> <p>This field is required when you use <code>modelSourceConfig</code> with an Amazon S3 data source. It is not required when you use <code>customModelDataSource</code> with a model package ARN, because Amazon Bedrock uses its own credentials to access the model artifacts.</p>
|
|
4683
4764
|
* @public
|
|
4684
4765
|
*/
|
|
4685
4766
|
roleArn?: string | undefined;
|
|
@@ -6933,81 +7014,3 @@ export interface GuardrailTopicConfig {
|
|
|
6933
7014
|
*/
|
|
6934
7015
|
outputEnabled?: boolean | undefined;
|
|
6935
7016
|
}
|
|
6936
|
-
/**
|
|
6937
|
-
* <p>Contains details about topics that the guardrail should identify and deny.</p>
|
|
6938
|
-
* @public
|
|
6939
|
-
*/
|
|
6940
|
-
export interface GuardrailTopicPolicyConfig {
|
|
6941
|
-
/**
|
|
6942
|
-
* <p>A list of policies related to topics that the guardrail should deny.</p>
|
|
6943
|
-
* @public
|
|
6944
|
-
*/
|
|
6945
|
-
topicsConfig: GuardrailTopicConfig[] | undefined;
|
|
6946
|
-
/**
|
|
6947
|
-
* <p>The tier that your guardrail uses for denied topic filters.</p>
|
|
6948
|
-
* @public
|
|
6949
|
-
*/
|
|
6950
|
-
tierConfig?: GuardrailTopicsTierConfig | undefined;
|
|
6951
|
-
}
|
|
6952
|
-
/**
|
|
6953
|
-
* <p>The managed word list to configure for the guardrail.</p>
|
|
6954
|
-
* @public
|
|
6955
|
-
*/
|
|
6956
|
-
export interface GuardrailManagedWordsConfig {
|
|
6957
|
-
/**
|
|
6958
|
-
* <p>The managed word type to configure for the guardrail.</p>
|
|
6959
|
-
* @public
|
|
6960
|
-
*/
|
|
6961
|
-
type: GuardrailManagedWordsType | undefined;
|
|
6962
|
-
/**
|
|
6963
|
-
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
6964
|
-
* @public
|
|
6965
|
-
*/
|
|
6966
|
-
inputAction?: GuardrailWordAction | undefined;
|
|
6967
|
-
/**
|
|
6968
|
-
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
6969
|
-
* @public
|
|
6970
|
-
*/
|
|
6971
|
-
outputAction?: GuardrailWordAction | undefined;
|
|
6972
|
-
/**
|
|
6973
|
-
* <p>Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
6974
|
-
* @public
|
|
6975
|
-
*/
|
|
6976
|
-
inputEnabled?: boolean | undefined;
|
|
6977
|
-
/**
|
|
6978
|
-
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
6979
|
-
* @public
|
|
6980
|
-
*/
|
|
6981
|
-
outputEnabled?: boolean | undefined;
|
|
6982
|
-
}
|
|
6983
|
-
/**
|
|
6984
|
-
* <p>A word to configure for the guardrail.</p>
|
|
6985
|
-
* @public
|
|
6986
|
-
*/
|
|
6987
|
-
export interface GuardrailWordConfig {
|
|
6988
|
-
/**
|
|
6989
|
-
* <p>Text of the word configured for the guardrail to block.</p>
|
|
6990
|
-
* @public
|
|
6991
|
-
*/
|
|
6992
|
-
text: string | undefined;
|
|
6993
|
-
/**
|
|
6994
|
-
* <p>Specifies the action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
6995
|
-
* @public
|
|
6996
|
-
*/
|
|
6997
|
-
inputAction?: GuardrailWordAction | undefined;
|
|
6998
|
-
/**
|
|
6999
|
-
* <p>Specifies the action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
|
|
7000
|
-
* @public
|
|
7001
|
-
*/
|
|
7002
|
-
outputAction?: GuardrailWordAction | undefined;
|
|
7003
|
-
/**
|
|
7004
|
-
* <p>Specifies whether to enable guardrail evaluation on the intput. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
7005
|
-
* @public
|
|
7006
|
-
*/
|
|
7007
|
-
inputEnabled?: boolean | undefined;
|
|
7008
|
-
/**
|
|
7009
|
-
* <p>Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.</p>
|
|
7010
|
-
* @public
|
|
7011
|
-
*/
|
|
7012
|
-
outputEnabled?: boolean | undefined;
|
|
7013
|
-
}
|