@aws-sdk/client-bedrock-agentcore 3.1038.0 → 3.1040.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/README.md +105 -7
- package/dist-cjs/index.js +275 -0
- package/dist-cjs/schemas/schemas_0.js +851 -99
- package/dist-es/BedrockAgentCore.js +34 -0
- package/dist-es/commands/CreateABTestCommand.js +16 -0
- package/dist-es/commands/DeleteABTestCommand.js +16 -0
- package/dist-es/commands/DeleteBatchEvaluationCommand.js +16 -0
- package/dist-es/commands/DeleteRecommendationCommand.js +16 -0
- package/dist-es/commands/GetABTestCommand.js +16 -0
- package/dist-es/commands/GetBatchEvaluationCommand.js +16 -0
- package/dist-es/commands/GetRecommendationCommand.js +16 -0
- package/dist-es/commands/ListABTestsCommand.js +16 -0
- package/dist-es/commands/ListBatchEvaluationsCommand.js +16 -0
- package/dist-es/commands/ListRecommendationsCommand.js +16 -0
- package/dist-es/commands/StartBatchEvaluationCommand.js +16 -0
- package/dist-es/commands/StartRecommendationCommand.js +16 -0
- package/dist-es/commands/StopBatchEvaluationCommand.js +16 -0
- package/dist-es/commands/UpdateABTestCommand.js +16 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +60 -0
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/pagination/ListABTestsPaginator.js +4 -0
- package/dist-es/pagination/ListBatchEvaluationsPaginator.js +4 -0
- package/dist-es/pagination/ListRecommendationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +843 -93
- package/dist-types/BedrockAgentCore.d.ts +122 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +16 -2
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +10 -0
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +10 -0
- package/dist-types/commands/CreateABTestCommand.d.ts +134 -0
- package/dist-types/commands/DeleteABTestCommand.d.ts +97 -0
- package/dist-types/commands/DeleteBatchEvaluationCommand.d.ts +97 -0
- package/dist-types/commands/DeleteRecommendationCommand.d.ts +93 -0
- package/dist-types/commands/GetABTestCommand.d.ts +165 -0
- package/dist-types/commands/GetBatchEvaluationCommand.d.ts +148 -0
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +7 -2
- package/dist-types/commands/GetRecommendationCommand.d.ts +220 -0
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +7 -1
- package/dist-types/commands/ListABTestsCommand.d.ts +103 -0
- package/dist-types/commands/ListBatchEvaluationsCommand.d.ts +126 -0
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +25 -2
- package/dist-types/commands/ListRecommendationsCommand.d.ts +100 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +16 -6
- package/dist-types/commands/SearchRegistryRecordsCommand.d.ts +2 -1
- package/dist-types/commands/StartBatchEvaluationCommand.d.ts +172 -0
- package/dist-types/commands/StartRecommendationCommand.d.ts +300 -0
- package/dist-types/commands/StopBatchEvaluationCommand.d.ts +98 -0
- package/dist-types/commands/UpdateABTestCommand.d.ts +136 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +116 -0
- package/dist-types/models/models_0.d.ts +2595 -386
- package/dist-types/models/models_1.d.ts +147 -0
- package/dist-types/pagination/ListABTestsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListBatchEvaluationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/schemas/schemas_0.d.ts +99 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +262 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/CreateABTestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteABTestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteBatchEvaluationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteRecommendationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetABTestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetBatchEvaluationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListABTestsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListBatchEvaluationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchRegistryRecordsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/StartBatchEvaluationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartRecommendationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StopBatchEvaluationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateABTestCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +73 -0
- package/dist-types/ts3.4/models/models_0.d.ts +801 -43
- package/dist-types/ts3.4/models/models_1.d.ts +40 -0
- package/dist-types/ts3.4/pagination/ListABTestsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListBatchEvaluationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -22,16 +22,16 @@ To install this package, use the CLI of your favorite package manager:
|
|
|
22
22
|
|
|
23
23
|
The AWS SDK is modulized by clients and commands.
|
|
24
24
|
To send a request, you only need to import the `BedrockAgentCoreClient` and
|
|
25
|
-
the commands you need, for example `
|
|
25
|
+
the commands you need, for example `ListABTestsCommand`:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
28
|
// ES5 example
|
|
29
|
-
const { BedrockAgentCoreClient,
|
|
29
|
+
const { BedrockAgentCoreClient, ListABTestsCommand } = require("@aws-sdk/client-bedrock-agentcore");
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
```ts
|
|
33
33
|
// ES6+ example
|
|
34
|
-
import { BedrockAgentCoreClient,
|
|
34
|
+
import { BedrockAgentCoreClient, ListABTestsCommand } from "@aws-sdk/client-bedrock-agentcore";
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Usage
|
|
@@ -48,7 +48,7 @@ To send a request:
|
|
|
48
48
|
const client = new BedrockAgentCoreClient({ region: "REGION" });
|
|
49
49
|
|
|
50
50
|
const params = { /** input parameters */ };
|
|
51
|
-
const command = new
|
|
51
|
+
const command = new ListABTestsCommand(params);
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
#### Async/await
|
|
@@ -104,7 +104,7 @@ const client = new BedrockAgentCore({ region: "REGION" });
|
|
|
104
104
|
|
|
105
105
|
// async/await.
|
|
106
106
|
try {
|
|
107
|
-
const data = await client.
|
|
107
|
+
const data = await client.listABTests(params);
|
|
108
108
|
// process data.
|
|
109
109
|
} catch (error) {
|
|
110
110
|
// error handling.
|
|
@@ -112,7 +112,7 @@ try {
|
|
|
112
112
|
|
|
113
113
|
// Promises.
|
|
114
114
|
client
|
|
115
|
-
.
|
|
115
|
+
.listABTests(params)
|
|
116
116
|
.then((data) => {
|
|
117
117
|
// process data.
|
|
118
118
|
})
|
|
@@ -121,7 +121,7 @@ client
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
// callbacks (not recommended).
|
|
124
|
-
client.
|
|
124
|
+
client.listABTests(params, (err, data) => {
|
|
125
125
|
// process err and data.
|
|
126
126
|
});
|
|
127
127
|
```
|
|
@@ -209,6 +209,13 @@ CompleteResourceTokenAuth
|
|
|
209
209
|
</details>
|
|
210
210
|
<details>
|
|
211
211
|
<summary>
|
|
212
|
+
CreateABTest
|
|
213
|
+
</summary>
|
|
214
|
+
|
|
215
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/CreateABTestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/CreateABTestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/CreateABTestCommandOutput/)
|
|
216
|
+
</details>
|
|
217
|
+
<details>
|
|
218
|
+
<summary>
|
|
212
219
|
CreateEvent
|
|
213
220
|
</summary>
|
|
214
221
|
|
|
@@ -216,6 +223,20 @@ CreateEvent
|
|
|
216
223
|
</details>
|
|
217
224
|
<details>
|
|
218
225
|
<summary>
|
|
226
|
+
DeleteABTest
|
|
227
|
+
</summary>
|
|
228
|
+
|
|
229
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/DeleteABTestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteABTestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteABTestCommandOutput/)
|
|
230
|
+
</details>
|
|
231
|
+
<details>
|
|
232
|
+
<summary>
|
|
233
|
+
DeleteBatchEvaluation
|
|
234
|
+
</summary>
|
|
235
|
+
|
|
236
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/DeleteBatchEvaluationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteBatchEvaluationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteBatchEvaluationCommandOutput/)
|
|
237
|
+
</details>
|
|
238
|
+
<details>
|
|
239
|
+
<summary>
|
|
219
240
|
DeleteEvent
|
|
220
241
|
</summary>
|
|
221
242
|
|
|
@@ -230,6 +251,13 @@ DeleteMemoryRecord
|
|
|
230
251
|
</details>
|
|
231
252
|
<details>
|
|
232
253
|
<summary>
|
|
254
|
+
DeleteRecommendation
|
|
255
|
+
</summary>
|
|
256
|
+
|
|
257
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/DeleteRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteRecommendationCommandOutput/)
|
|
258
|
+
</details>
|
|
259
|
+
<details>
|
|
260
|
+
<summary>
|
|
233
261
|
Evaluate
|
|
234
262
|
</summary>
|
|
235
263
|
|
|
@@ -237,6 +265,13 @@ Evaluate
|
|
|
237
265
|
</details>
|
|
238
266
|
<details>
|
|
239
267
|
<summary>
|
|
268
|
+
GetABTest
|
|
269
|
+
</summary>
|
|
270
|
+
|
|
271
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/GetABTestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetABTestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetABTestCommandOutput/)
|
|
272
|
+
</details>
|
|
273
|
+
<details>
|
|
274
|
+
<summary>
|
|
240
275
|
GetAgentCard
|
|
241
276
|
</summary>
|
|
242
277
|
|
|
@@ -244,6 +279,13 @@ GetAgentCard
|
|
|
244
279
|
</details>
|
|
245
280
|
<details>
|
|
246
281
|
<summary>
|
|
282
|
+
GetBatchEvaluation
|
|
283
|
+
</summary>
|
|
284
|
+
|
|
285
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/GetBatchEvaluationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetBatchEvaluationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetBatchEvaluationCommandOutput/)
|
|
286
|
+
</details>
|
|
287
|
+
<details>
|
|
288
|
+
<summary>
|
|
247
289
|
GetBrowserSession
|
|
248
290
|
</summary>
|
|
249
291
|
|
|
@@ -272,6 +314,13 @@ GetMemoryRecord
|
|
|
272
314
|
</details>
|
|
273
315
|
<details>
|
|
274
316
|
<summary>
|
|
317
|
+
GetRecommendation
|
|
318
|
+
</summary>
|
|
319
|
+
|
|
320
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/GetRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/GetRecommendationCommandOutput/)
|
|
321
|
+
</details>
|
|
322
|
+
<details>
|
|
323
|
+
<summary>
|
|
275
324
|
GetResourceApiKey
|
|
276
325
|
</summary>
|
|
277
326
|
|
|
@@ -342,6 +391,13 @@ InvokeHarness
|
|
|
342
391
|
</details>
|
|
343
392
|
<details>
|
|
344
393
|
<summary>
|
|
394
|
+
ListABTests
|
|
395
|
+
</summary>
|
|
396
|
+
|
|
397
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/ListABTestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListABTestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListABTestsCommandOutput/)
|
|
398
|
+
</details>
|
|
399
|
+
<details>
|
|
400
|
+
<summary>
|
|
345
401
|
ListActors
|
|
346
402
|
</summary>
|
|
347
403
|
|
|
@@ -349,6 +405,13 @@ ListActors
|
|
|
349
405
|
</details>
|
|
350
406
|
<details>
|
|
351
407
|
<summary>
|
|
408
|
+
ListBatchEvaluations
|
|
409
|
+
</summary>
|
|
410
|
+
|
|
411
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/ListBatchEvaluationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListBatchEvaluationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListBatchEvaluationsCommandOutput/)
|
|
412
|
+
</details>
|
|
413
|
+
<details>
|
|
414
|
+
<summary>
|
|
352
415
|
ListBrowserSessions
|
|
353
416
|
</summary>
|
|
354
417
|
|
|
@@ -384,6 +447,13 @@ ListMemoryRecords
|
|
|
384
447
|
</details>
|
|
385
448
|
<details>
|
|
386
449
|
<summary>
|
|
450
|
+
ListRecommendations
|
|
451
|
+
</summary>
|
|
452
|
+
|
|
453
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/ListRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/ListRecommendationsCommandOutput/)
|
|
454
|
+
</details>
|
|
455
|
+
<details>
|
|
456
|
+
<summary>
|
|
387
457
|
ListSessions
|
|
388
458
|
</summary>
|
|
389
459
|
|
|
@@ -412,6 +482,13 @@ SearchRegistryRecords
|
|
|
412
482
|
</details>
|
|
413
483
|
<details>
|
|
414
484
|
<summary>
|
|
485
|
+
StartBatchEvaluation
|
|
486
|
+
</summary>
|
|
487
|
+
|
|
488
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/StartBatchEvaluationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StartBatchEvaluationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StartBatchEvaluationCommandOutput/)
|
|
489
|
+
</details>
|
|
490
|
+
<details>
|
|
491
|
+
<summary>
|
|
415
492
|
StartBrowserSession
|
|
416
493
|
</summary>
|
|
417
494
|
|
|
@@ -433,6 +510,20 @@ StartMemoryExtractionJob
|
|
|
433
510
|
</details>
|
|
434
511
|
<details>
|
|
435
512
|
<summary>
|
|
513
|
+
StartRecommendation
|
|
514
|
+
</summary>
|
|
515
|
+
|
|
516
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/StartRecommendationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StartRecommendationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StartRecommendationCommandOutput/)
|
|
517
|
+
</details>
|
|
518
|
+
<details>
|
|
519
|
+
<summary>
|
|
520
|
+
StopBatchEvaluation
|
|
521
|
+
</summary>
|
|
522
|
+
|
|
523
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/StopBatchEvaluationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StopBatchEvaluationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/StopBatchEvaluationCommandOutput/)
|
|
524
|
+
</details>
|
|
525
|
+
<details>
|
|
526
|
+
<summary>
|
|
436
527
|
StopBrowserSession
|
|
437
528
|
</summary>
|
|
438
529
|
|
|
@@ -454,6 +545,13 @@ StopRuntimeSession
|
|
|
454
545
|
</details>
|
|
455
546
|
<details>
|
|
456
547
|
<summary>
|
|
548
|
+
UpdateABTest
|
|
549
|
+
</summary>
|
|
550
|
+
|
|
551
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/UpdateABTestCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/UpdateABTestCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/UpdateABTestCommandOutput/)
|
|
552
|
+
</details>
|
|
553
|
+
<details>
|
|
554
|
+
<summary>
|
|
457
555
|
UpdateBrowserStream
|
|
458
556
|
</summary>
|
|
459
557
|
|