@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.
Files changed (88) hide show
  1. package/README.md +105 -7
  2. package/dist-cjs/index.js +275 -0
  3. package/dist-cjs/schemas/schemas_0.js +851 -99
  4. package/dist-es/BedrockAgentCore.js +34 -0
  5. package/dist-es/commands/CreateABTestCommand.js +16 -0
  6. package/dist-es/commands/DeleteABTestCommand.js +16 -0
  7. package/dist-es/commands/DeleteBatchEvaluationCommand.js +16 -0
  8. package/dist-es/commands/DeleteRecommendationCommand.js +16 -0
  9. package/dist-es/commands/GetABTestCommand.js +16 -0
  10. package/dist-es/commands/GetBatchEvaluationCommand.js +16 -0
  11. package/dist-es/commands/GetRecommendationCommand.js +16 -0
  12. package/dist-es/commands/ListABTestsCommand.js +16 -0
  13. package/dist-es/commands/ListBatchEvaluationsCommand.js +16 -0
  14. package/dist-es/commands/ListRecommendationsCommand.js +16 -0
  15. package/dist-es/commands/StartBatchEvaluationCommand.js +16 -0
  16. package/dist-es/commands/StartRecommendationCommand.js +16 -0
  17. package/dist-es/commands/StopBatchEvaluationCommand.js +16 -0
  18. package/dist-es/commands/UpdateABTestCommand.js +16 -0
  19. package/dist-es/commands/index.js +14 -0
  20. package/dist-es/index.js +1 -0
  21. package/dist-es/models/enums.js +60 -0
  22. package/dist-es/models/models_1.js +1 -0
  23. package/dist-es/pagination/ListABTestsPaginator.js +4 -0
  24. package/dist-es/pagination/ListBatchEvaluationsPaginator.js +4 -0
  25. package/dist-es/pagination/ListRecommendationsPaginator.js +4 -0
  26. package/dist-es/pagination/index.js +3 -0
  27. package/dist-es/schemas/schemas_0.js +843 -93
  28. package/dist-types/BedrockAgentCore.d.ts +122 -0
  29. package/dist-types/BedrockAgentCoreClient.d.ts +16 -2
  30. package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +10 -0
  31. package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +10 -0
  32. package/dist-types/commands/CreateABTestCommand.d.ts +134 -0
  33. package/dist-types/commands/DeleteABTestCommand.d.ts +97 -0
  34. package/dist-types/commands/DeleteBatchEvaluationCommand.d.ts +97 -0
  35. package/dist-types/commands/DeleteRecommendationCommand.d.ts +93 -0
  36. package/dist-types/commands/GetABTestCommand.d.ts +165 -0
  37. package/dist-types/commands/GetBatchEvaluationCommand.d.ts +148 -0
  38. package/dist-types/commands/GetMemoryRecordCommand.d.ts +7 -2
  39. package/dist-types/commands/GetRecommendationCommand.d.ts +220 -0
  40. package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +7 -1
  41. package/dist-types/commands/ListABTestsCommand.d.ts +103 -0
  42. package/dist-types/commands/ListBatchEvaluationsCommand.d.ts +126 -0
  43. package/dist-types/commands/ListMemoryRecordsCommand.d.ts +25 -2
  44. package/dist-types/commands/ListRecommendationsCommand.d.ts +100 -0
  45. package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +16 -6
  46. package/dist-types/commands/SearchRegistryRecordsCommand.d.ts +2 -1
  47. package/dist-types/commands/StartBatchEvaluationCommand.d.ts +172 -0
  48. package/dist-types/commands/StartRecommendationCommand.d.ts +300 -0
  49. package/dist-types/commands/StopBatchEvaluationCommand.d.ts +98 -0
  50. package/dist-types/commands/UpdateABTestCommand.d.ts +136 -0
  51. package/dist-types/commands/index.d.ts +14 -0
  52. package/dist-types/index.d.ts +1 -0
  53. package/dist-types/models/enums.d.ts +116 -0
  54. package/dist-types/models/models_0.d.ts +2595 -386
  55. package/dist-types/models/models_1.d.ts +147 -0
  56. package/dist-types/pagination/ListABTestsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListBatchEvaluationsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/index.d.ts +3 -0
  60. package/dist-types/schemas/schemas_0.d.ts +99 -0
  61. package/dist-types/ts3.4/BedrockAgentCore.d.ts +262 -0
  62. package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +84 -0
  63. package/dist-types/ts3.4/commands/CreateABTestCommand.d.ts +47 -0
  64. package/dist-types/ts3.4/commands/DeleteABTestCommand.d.ts +47 -0
  65. package/dist-types/ts3.4/commands/DeleteBatchEvaluationCommand.d.ts +51 -0
  66. package/dist-types/ts3.4/commands/DeleteRecommendationCommand.d.ts +51 -0
  67. package/dist-types/ts3.4/commands/GetABTestCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetBatchEvaluationCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +51 -0
  70. package/dist-types/ts3.4/commands/ListABTestsCommand.d.ts +47 -0
  71. package/dist-types/ts3.4/commands/ListBatchEvaluationsCommand.d.ts +51 -0
  72. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/SearchRegistryRecordsCommand.d.ts +2 -4
  74. package/dist-types/ts3.4/commands/StartBatchEvaluationCommand.d.ts +51 -0
  75. package/dist-types/ts3.4/commands/StartRecommendationCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/StopBatchEvaluationCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/UpdateABTestCommand.d.ts +47 -0
  78. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  79. package/dist-types/ts3.4/index.d.ts +1 -0
  80. package/dist-types/ts3.4/models/enums.d.ts +73 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +801 -43
  82. package/dist-types/ts3.4/models/models_1.d.ts +40 -0
  83. package/dist-types/ts3.4/pagination/ListABTestsPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/ListBatchEvaluationsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  86. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  87. package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
  88. package/package.json +7 -7
@@ -0,0 +1,220 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
4
+ import type { GetRecommendationRequest, GetRecommendationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRecommendationCommand}.
14
+ */
15
+ export interface GetRecommendationCommandInput extends GetRecommendationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRecommendationCommand}.
21
+ */
22
+ export interface GetRecommendationCommandOutput extends GetRecommendationResponse, __MetadataBearer {
23
+ }
24
+ declare const GetRecommendationCommand_base: {
25
+ new (input: GetRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves detailed information about a recommendation, including its configuration, status, and results.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, GetRecommendationCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, GetRecommendationCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
37
+ * const config = {}; // type is BedrockAgentCoreClientConfig
38
+ * const client = new BedrockAgentCoreClient(config);
39
+ * const input = { // GetRecommendationRequest
40
+ * recommendationId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetRecommendationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetRecommendationResponse
45
+ * // recommendationId: "STRING_VALUE", // required
46
+ * // recommendationArn: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // type: "SYSTEM_PROMPT_RECOMMENDATION" || "TOOL_DESCRIPTION_RECOMMENDATION", // required
50
+ * // recommendationConfig: { // RecommendationConfig Union: only one key present
51
+ * // systemPromptRecommendationConfig: { // SystemPromptRecommendationConfig
52
+ * // systemPrompt: { // SystemPromptConfig Union: only one key present
53
+ * // text: "STRING_VALUE",
54
+ * // configurationBundle: { // SystemPromptConfigurationBundle
55
+ * // bundleArn: "STRING_VALUE", // required
56
+ * // versionId: "STRING_VALUE", // required
57
+ * // systemPromptJsonPath: "STRING_VALUE", // required
58
+ * // },
59
+ * // },
60
+ * // agentTraces: { // AgentTracesConfig Union: only one key present
61
+ * // sessionSpans: [ // Spans
62
+ * // "DOCUMENT_VALUE",
63
+ * // ],
64
+ * // cloudwatchLogs: { // CloudWatchLogsTraceConfig
65
+ * // logGroupArns: [ // LogGroupArnList // required
66
+ * // "STRING_VALUE",
67
+ * // ],
68
+ * // serviceNames: [ // ServiceNameList // required
69
+ * // "STRING_VALUE",
70
+ * // ],
71
+ * // startTime: new Date("TIMESTAMP"), // required
72
+ * // endTime: new Date("TIMESTAMP"), // required
73
+ * // rule: { // CloudWatchLogsRule
74
+ * // filters: [ // CloudWatchLogsFilterList
75
+ * // { // CloudWatchLogsFilter
76
+ * // key: "STRING_VALUE", // required
77
+ * // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
78
+ * // value: { // FilterValue Union: only one key present
79
+ * // stringValue: "STRING_VALUE",
80
+ * // doubleValue: Number("double"),
81
+ * // booleanValue: true || false,
82
+ * // },
83
+ * // },
84
+ * // ],
85
+ * // },
86
+ * // },
87
+ * // },
88
+ * // evaluationConfig: { // RecommendationEvaluationConfig
89
+ * // evaluators: [ // RecommendationEvaluatorList // required
90
+ * // { // RecommendationEvaluatorReference
91
+ * // evaluatorArn: "STRING_VALUE", // required
92
+ * // },
93
+ * // ],
94
+ * // },
95
+ * // },
96
+ * // toolDescriptionRecommendationConfig: { // ToolDescriptionRecommendationConfig
97
+ * // toolDescription: { // ToolDescriptionSource Union: only one key present
98
+ * // toolDescriptionText: { // ToolDescriptionTextInput
99
+ * // tools: [ // ToolDescriptionList // required
100
+ * // { // ToolDescriptionInput
101
+ * // toolName: "STRING_VALUE", // required
102
+ * // toolDescription: { // ToolDescriptionConfig Union: only one key present
103
+ * // text: "STRING_VALUE",
104
+ * // },
105
+ * // },
106
+ * // ],
107
+ * // },
108
+ * // configurationBundle: { // ToolDescriptionConfigurationBundle
109
+ * // bundleArn: "STRING_VALUE", // required
110
+ * // versionId: "STRING_VALUE", // required
111
+ * // tools: [ // ConfigurationBundleToolEntryList // required
112
+ * // { // ConfigurationBundleToolEntry
113
+ * // toolName: "STRING_VALUE", // required
114
+ * // toolDescriptionJsonPath: "STRING_VALUE", // required
115
+ * // },
116
+ * // ],
117
+ * // },
118
+ * // },
119
+ * // agentTraces: {// Union: only one key present
120
+ * // sessionSpans: [
121
+ * // "DOCUMENT_VALUE",
122
+ * // ],
123
+ * // cloudwatchLogs: {
124
+ * // logGroupArns: [ // required
125
+ * // "STRING_VALUE",
126
+ * // ],
127
+ * // serviceNames: [ // required
128
+ * // "STRING_VALUE",
129
+ * // ],
130
+ * // startTime: new Date("TIMESTAMP"), // required
131
+ * // endTime: new Date("TIMESTAMP"), // required
132
+ * // rule: {
133
+ * // filters: [
134
+ * // {
135
+ * // key: "STRING_VALUE", // required
136
+ * // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
137
+ * // value: {// Union: only one key present
138
+ * // stringValue: "STRING_VALUE",
139
+ * // doubleValue: Number("double"),
140
+ * // booleanValue: true || false,
141
+ * // },
142
+ * // },
143
+ * // ],
144
+ * // },
145
+ * // },
146
+ * // },
147
+ * // },
148
+ * // },
149
+ * // status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "DELETING", // required
150
+ * // createdAt: new Date("TIMESTAMP"), // required
151
+ * // updatedAt: new Date("TIMESTAMP"), // required
152
+ * // recommendationResult: { // RecommendationResult Union: only one key present
153
+ * // systemPromptRecommendationResult: { // SystemPromptRecommendationResult
154
+ * // recommendedSystemPrompt: "STRING_VALUE",
155
+ * // configurationBundle: { // RecommendationResultConfigurationBundle
156
+ * // bundleArn: "STRING_VALUE", // required
157
+ * // versionId: "STRING_VALUE", // required
158
+ * // },
159
+ * // errorCode: "STRING_VALUE",
160
+ * // errorMessage: "STRING_VALUE",
161
+ * // },
162
+ * // toolDescriptionRecommendationResult: { // ToolDescriptionRecommendationResult
163
+ * // tools: [ // ToolDescriptionResultList
164
+ * // { // ToolDescriptionOutput
165
+ * // toolName: "STRING_VALUE", // required
166
+ * // recommendedToolDescription: "STRING_VALUE",
167
+ * // },
168
+ * // ],
169
+ * // configurationBundle: {
170
+ * // bundleArn: "STRING_VALUE", // required
171
+ * // versionId: "STRING_VALUE", // required
172
+ * // },
173
+ * // errorCode: "STRING_VALUE",
174
+ * // errorMessage: "STRING_VALUE",
175
+ * // },
176
+ * // },
177
+ * // };
178
+ *
179
+ * ```
180
+ *
181
+ * @param GetRecommendationCommandInput - {@link GetRecommendationCommandInput}
182
+ * @returns {@link GetRecommendationCommandOutput}
183
+ * @see {@link GetRecommendationCommandInput} for command's `input` shape.
184
+ * @see {@link GetRecommendationCommandOutput} for command's `response` shape.
185
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
186
+ *
187
+ * @throws {@link AccessDeniedException} (client fault)
188
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
189
+ *
190
+ * @throws {@link InternalServerException} (server fault)
191
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
192
+ *
193
+ * @throws {@link ResourceNotFoundException} (client fault)
194
+ * <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
195
+ *
196
+ * @throws {@link ThrottlingException} (client fault)
197
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
198
+ *
199
+ * @throws {@link ValidationException} (client fault)
200
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
201
+ *
202
+ * @throws {@link BedrockAgentCoreServiceException}
203
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
204
+ *
205
+ *
206
+ * @public
207
+ */
208
+ export declare class GetRecommendationCommand extends GetRecommendationCommand_base {
209
+ /** @internal type navigation helper, not in runtime. */
210
+ protected static __types: {
211
+ api: {
212
+ input: GetRecommendationRequest;
213
+ output: GetRecommendationResponse;
214
+ };
215
+ sdk: {
216
+ input: GetRecommendationCommandInput;
217
+ output: GetRecommendationCommandOutput;
218
+ };
219
+ };
220
+ }
@@ -42,7 +42,7 @@ declare const GetResourceOauth2TokenCommand_base: {
42
42
  * scopes: [ // ScopesListType // required
43
43
  * "STRING_VALUE",
44
44
  * ],
45
- * oauth2Flow: "USER_FEDERATION" || "M2M", // required
45
+ * oauth2Flow: "USER_FEDERATION" || "M2M" || "ON_BEHALF_OF_TOKEN_EXCHANGE", // required
46
46
  * sessionUri: "STRING_VALUE",
47
47
  * resourceOauth2ReturnUrl: "STRING_VALUE",
48
48
  * forceAuthentication: true || false,
@@ -50,6 +50,12 @@ declare const GetResourceOauth2TokenCommand_base: {
50
50
  * "<keys>": "STRING_VALUE",
51
51
  * },
52
52
  * customState: "STRING_VALUE",
53
+ * resources: [ // ResourcesListType
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * audiences: [ // AudiencesListType
57
+ * "STRING_VALUE",
58
+ * ],
53
59
  * };
54
60
  * const command = new GetResourceOauth2TokenCommand(input);
55
61
  * const response = await client.send(command);
@@ -0,0 +1,103 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
4
+ import type { ListABTestsRequest, ListABTestsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListABTestsCommand}.
14
+ */
15
+ export interface ListABTestsCommandInput extends ListABTestsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListABTestsCommand}.
21
+ */
22
+ export interface ListABTestsCommandOutput extends ListABTestsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListABTestsCommand_base: {
25
+ new (input: ListABTestsCommandInput): import("@smithy/smithy-client").CommandImpl<ListABTestsCommandInput, ListABTestsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListABTestsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListABTestsCommandInput, ListABTestsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all A/B tests in the account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, ListABTestsCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, ListABTestsCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
37
+ * const config = {}; // type is BedrockAgentCoreClientConfig
38
+ * const client = new BedrockAgentCoreClient(config);
39
+ * const input = { // ListABTestsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListABTestsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListABTestsResponse
46
+ * // abTests: [ // ABTestSummaryList // required
47
+ * // { // ABTestSummary
48
+ * // abTestId: "STRING_VALUE", // required
49
+ * // abTestArn: "STRING_VALUE", // required
50
+ * // name: "STRING_VALUE", // required
51
+ * // status: "CREATING" || "ACTIVE" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING" || "DELETE_FAILED" || "FAILED", // required
52
+ * // executionStatus: "PAUSED" || "RUNNING" || "STOPPED" || "NOT_STARTED", // required
53
+ * // description: "STRING_VALUE",
54
+ * // gatewayArn: "STRING_VALUE",
55
+ * // createdAt: new Date("TIMESTAMP"), // required
56
+ * // updatedAt: new Date("TIMESTAMP"), // required
57
+ * // },
58
+ * // ],
59
+ * // nextToken: "STRING_VALUE",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param ListABTestsCommandInput - {@link ListABTestsCommandInput}
65
+ * @returns {@link ListABTestsCommandOutput}
66
+ * @see {@link ListABTestsCommandInput} for command's `input` shape.
67
+ * @see {@link ListABTestsCommandOutput} for command's `response` shape.
68
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
78
+ *
79
+ * @throws {@link UnauthorizedException} (client fault)
80
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
84
+ *
85
+ * @throws {@link BedrockAgentCoreServiceException}
86
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
87
+ *
88
+ *
89
+ * @public
90
+ */
91
+ export declare class ListABTestsCommand extends ListABTestsCommand_base {
92
+ /** @internal type navigation helper, not in runtime. */
93
+ protected static __types: {
94
+ api: {
95
+ input: ListABTestsRequest;
96
+ output: ListABTestsResponse;
97
+ };
98
+ sdk: {
99
+ input: ListABTestsCommandInput;
100
+ output: ListABTestsCommandOutput;
101
+ };
102
+ };
103
+ }
@@ -0,0 +1,126 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
4
+ import type { ListBatchEvaluationsRequest, ListBatchEvaluationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListBatchEvaluationsCommand}.
14
+ */
15
+ export interface ListBatchEvaluationsCommandInput extends ListBatchEvaluationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListBatchEvaluationsCommand}.
21
+ */
22
+ export interface ListBatchEvaluationsCommandOutput extends ListBatchEvaluationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListBatchEvaluationsCommand_base: {
25
+ new (input: ListBatchEvaluationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBatchEvaluationsCommandInput, ListBatchEvaluationsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListBatchEvaluationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListBatchEvaluationsCommandInput, ListBatchEvaluationsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, ListBatchEvaluationsCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, ListBatchEvaluationsCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
37
+ * const config = {}; // type is BedrockAgentCoreClientConfig
38
+ * const client = new BedrockAgentCoreClient(config);
39
+ * const input = { // ListBatchEvaluationsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListBatchEvaluationsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListBatchEvaluationsResponse
46
+ * // batchEvaluations: [ // BatchEvaluationSummaryList // required
47
+ * // { // BatchEvaluationSummary
48
+ * // batchEvaluationId: "STRING_VALUE", // required
49
+ * // batchEvaluationArn: "STRING_VALUE", // required
50
+ * // batchEvaluationName: "STRING_VALUE", // required
51
+ * // status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "FAILED" || "STOPPING" || "STOPPED" || "DELETING", // required
52
+ * // createdAt: new Date("TIMESTAMP"), // required
53
+ * // description: "STRING_VALUE",
54
+ * // evaluators: [ // EvaluatorList
55
+ * // { // Evaluator
56
+ * // evaluatorId: "STRING_VALUE", // required
57
+ * // },
58
+ * // ],
59
+ * // evaluationResults: { // EvaluationJobResults
60
+ * // numberOfSessionsCompleted: Number("int"),
61
+ * // numberOfSessionsInProgress: Number("int"),
62
+ * // numberOfSessionsFailed: Number("int"),
63
+ * // totalNumberOfSessions: Number("int"),
64
+ * // numberOfSessionsIgnored: Number("int"),
65
+ * // evaluatorSummaries: [ // EvaluatorSummaryList
66
+ * // { // EvaluatorSummary
67
+ * // evaluatorId: "STRING_VALUE",
68
+ * // statistics: { // EvaluatorStatistics
69
+ * // averageScore: Number("double"),
70
+ * // },
71
+ * // totalEvaluated: Number("int"),
72
+ * // totalFailed: Number("int"),
73
+ * // },
74
+ * // ],
75
+ * // },
76
+ * // errorDetails: [ // ErrorDetailsList
77
+ * // "STRING_VALUE",
78
+ * // ],
79
+ * // updatedAt: new Date("TIMESTAMP"),
80
+ * // },
81
+ * // ],
82
+ * // nextToken: "STRING_VALUE",
83
+ * // };
84
+ *
85
+ * ```
86
+ *
87
+ * @param ListBatchEvaluationsCommandInput - {@link ListBatchEvaluationsCommandInput}
88
+ * @returns {@link ListBatchEvaluationsCommandOutput}
89
+ * @see {@link ListBatchEvaluationsCommandInput} for command's `input` shape.
90
+ * @see {@link ListBatchEvaluationsCommandOutput} for command's `response` shape.
91
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
92
+ *
93
+ * @throws {@link AccessDeniedException} (client fault)
94
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
95
+ *
96
+ * @throws {@link InternalServerException} (server fault)
97
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
101
+ *
102
+ * @throws {@link UnauthorizedException} (client fault)
103
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
104
+ *
105
+ * @throws {@link ValidationException} (client fault)
106
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
107
+ *
108
+ * @throws {@link BedrockAgentCoreServiceException}
109
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
110
+ *
111
+ *
112
+ * @public
113
+ */
114
+ export declare class ListBatchEvaluationsCommand extends ListBatchEvaluationsCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: ListBatchEvaluationsRequest;
119
+ output: ListBatchEvaluationsResponse;
120
+ };
121
+ sdk: {
122
+ input: ListBatchEvaluationsCommandInput;
123
+ output: ListBatchEvaluationsCommandOutput;
124
+ };
125
+ };
126
+ }
@@ -43,6 +43,24 @@ declare const ListMemoryRecordsCommand_base: {
43
43
  * memoryStrategyId: "STRING_VALUE",
44
44
  * maxResults: Number("int"),
45
45
  * nextToken: "STRING_VALUE",
46
+ * metadataFilters: [ // MemoryMetadataFilterList
47
+ * { // MemoryMetadataFilterExpression
48
+ * left: { // MemoryRecordLeftExpression Union: only one key present
49
+ * metadataKey: "STRING_VALUE",
50
+ * },
51
+ * operator: "EQUALS_TO" || "EXISTS" || "NOT_EXISTS" || "BEFORE" || "AFTER" || "CONTAINS" || "GREATER_THAN" || "GREATER_THAN_OR_EQUALS" || "LESS_THAN" || "LESS_THAN_OR_EQUALS", // required
52
+ * right: { // MemoryRecordRightExpression Union: only one key present
53
+ * metadataValue: { // MemoryRecordMetadataValue Union: only one key present
54
+ * stringValue: "STRING_VALUE",
55
+ * stringListValue: [ // StringValueList
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * numberValue: Number("double"),
59
+ * dateTimeValue: new Date("TIMESTAMP"),
60
+ * },
61
+ * },
62
+ * },
63
+ * ],
46
64
  * };
47
65
  * const command = new ListMemoryRecordsCommand(input);
48
66
  * const response = await client.send(command);
@@ -59,9 +77,14 @@ declare const ListMemoryRecordsCommand_base: {
59
77
  * // ],
60
78
  * // createdAt: new Date("TIMESTAMP"), // required
61
79
  * // score: Number("double"),
62
- * // metadata: { // MetadataMap
63
- * // "<keys>": { // MetadataValue Union: only one key present
80
+ * // metadata: { // MemoryRecordMetadataMap
81
+ * // "<keys>": { // MemoryRecordMetadataValue Union: only one key present
64
82
  * // stringValue: "STRING_VALUE",
83
+ * // stringListValue: [ // StringValueList
84
+ * // "STRING_VALUE",
85
+ * // ],
86
+ * // numberValue: Number("double"),
87
+ * // dateTimeValue: new Date("TIMESTAMP"),
65
88
  * // },
66
89
  * // },
67
90
  * // },
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
4
+ import type { ListRecommendationsRequest, ListRecommendationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListRecommendationsCommand}.
14
+ */
15
+ export interface ListRecommendationsCommandInput extends ListRecommendationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRecommendationsCommand}.
21
+ */
22
+ export interface ListRecommendationsCommandOutput extends ListRecommendationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListRecommendationsCommand_base: {
25
+ new (input: ListRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListRecommendationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all recommendations in the account, with optional filtering by status.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, ListRecommendationsCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, ListRecommendationsCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
37
+ * const config = {}; // type is BedrockAgentCoreClientConfig
38
+ * const client = new BedrockAgentCoreClient(config);
39
+ * const input = { // ListRecommendationsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * statusFilter: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "DELETING",
43
+ * };
44
+ * const command = new ListRecommendationsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListRecommendationsResponse
47
+ * // recommendationSummaries: [ // RecommendationSummaryList // required
48
+ * // { // RecommendationSummary
49
+ * // recommendationId: "STRING_VALUE", // required
50
+ * // recommendationArn: "STRING_VALUE", // required
51
+ * // name: "STRING_VALUE", // required
52
+ * // description: "STRING_VALUE",
53
+ * // type: "SYSTEM_PROMPT_RECOMMENDATION" || "TOOL_DESCRIPTION_RECOMMENDATION", // required
54
+ * // status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "DELETING", // required
55
+ * // createdAt: new Date("TIMESTAMP"), // required
56
+ * // updatedAt: new Date("TIMESTAMP"), // required
57
+ * // },
58
+ * // ],
59
+ * // nextToken: "STRING_VALUE",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param ListRecommendationsCommandInput - {@link ListRecommendationsCommandInput}
65
+ * @returns {@link ListRecommendationsCommandOutput}
66
+ * @see {@link ListRecommendationsCommandInput} for command's `input` shape.
67
+ * @see {@link ListRecommendationsCommandOutput} for command's `response` shape.
68
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
69
+ *
70
+ * @throws {@link AccessDeniedException} (client fault)
71
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
72
+ *
73
+ * @throws {@link InternalServerException} (server fault)
74
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
81
+ *
82
+ * @throws {@link BedrockAgentCoreServiceException}
83
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListRecommendationsCommand extends ListRecommendationsCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListRecommendationsRequest;
93
+ output: ListRecommendationsResponse;
94
+ };
95
+ sdk: {
96
+ input: ListRecommendationsCommandInput;
97
+ output: ListRecommendationsCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -46,13 +46,18 @@ declare const RetrieveMemoryRecordsCommand_base: {
46
46
  * topK: Number("int"),
47
47
  * metadataFilters: [ // MemoryMetadataFilterList
48
48
  * { // MemoryMetadataFilterExpression
49
- * left: { // LeftExpression Union: only one key present
49
+ * left: { // MemoryRecordLeftExpression Union: only one key present
50
50
  * metadataKey: "STRING_VALUE",
51
51
  * },
52
- * operator: "EQUALS_TO" || "EXISTS" || "NOT_EXISTS", // required
53
- * right: { // RightExpression Union: only one key present
54
- * metadataValue: { // MetadataValue Union: only one key present
52
+ * operator: "EQUALS_TO" || "EXISTS" || "NOT_EXISTS" || "BEFORE" || "AFTER" || "CONTAINS" || "GREATER_THAN" || "GREATER_THAN_OR_EQUALS" || "LESS_THAN" || "LESS_THAN_OR_EQUALS", // required
53
+ * right: { // MemoryRecordRightExpression Union: only one key present
54
+ * metadataValue: { // MemoryRecordMetadataValue Union: only one key present
55
55
  * stringValue: "STRING_VALUE",
56
+ * stringListValue: [ // StringValueList
57
+ * "STRING_VALUE",
58
+ * ],
59
+ * numberValue: Number("double"),
60
+ * dateTimeValue: new Date("TIMESTAMP"),
56
61
  * },
57
62
  * },
58
63
  * },
@@ -76,9 +81,14 @@ declare const RetrieveMemoryRecordsCommand_base: {
76
81
  * // ],
77
82
  * // createdAt: new Date("TIMESTAMP"), // required
78
83
  * // score: Number("double"),
79
- * // metadata: { // MetadataMap
80
- * // "<keys>": { // MetadataValue Union: only one key present
84
+ * // metadata: { // MemoryRecordMetadataMap
85
+ * // "<keys>": { // MemoryRecordMetadataValue Union: only one key present
81
86
  * // stringValue: "STRING_VALUE",
87
+ * // stringListValue: [ // StringValueList
88
+ * // "STRING_VALUE",
89
+ * // ],
90
+ * // numberValue: Number("double"),
91
+ * // dateTimeValue: new Date("TIMESTAMP"),
82
92
  * // },
83
93
  * // },
84
94
  * // },