@aws-sdk/client-bedrock-agentcore 3.1169.0 → 3.1171.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 +49 -0
- package/dist-cjs/index.js +701 -60
- package/dist-es/BedrockAgentCore.js +18 -0
- package/dist-es/commands/DeleteDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/GetAgentInsightCommand.js +4 -0
- package/dist-es/commands/GetDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/ListAgentInsightsCommand.js +4 -0
- package/dist-es/commands/ListDatasetGenerationsCommand.js +4 -0
- package/dist-es/commands/StartDatasetGenerationCommand.js +4 -0
- package/dist-es/commands/UpdateAgentInsightCommand.js +4 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/enums.js +146 -3
- package/dist-es/pagination/ListAgentInsightsPaginator.js +4 -0
- package/dist-es/pagination/ListDatasetGenerationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +456 -56
- package/dist-types/BedrockAgentCore.d.ts +64 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +9 -2
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +1 -2
- package/dist-types/commands/DeleteDatasetGenerationCommand.d.ts +94 -0
- package/dist-types/commands/GetAgentInsightCommand.d.ts +136 -0
- package/dist-types/commands/GetBatchEvaluationCommand.d.ts +13 -0
- package/dist-types/commands/GetDatasetGenerationCommand.d.ts +220 -0
- package/dist-types/commands/InvokeHarnessCommand.d.ts +1 -1
- package/dist-types/commands/InvokeWebSearchCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentInsightsCommand.d.ts +103 -0
- package/dist-types/commands/ListDatasetGenerationsCommand.d.ts +103 -0
- package/dist-types/commands/StartBatchEvaluationCommand.d.ts +12 -0
- package/dist-types/commands/StartDatasetGenerationCommand.d.ts +202 -0
- package/dist-types/commands/UpdateAgentInsightCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/enums.d.ts +256 -7
- package/dist-types/models/models_0.d.ts +2398 -2632
- package/dist-types/models/models_1.d.ts +1588 -2
- package/dist-types/pagination/ListAgentInsightsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDatasetGenerationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +134 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/BatchCreateMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchDeleteMemoryRecordsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchUpdateMemoryRecordsCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DeleteDatasetGenerationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAgentInsightCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDatasetGenerationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/InvokeHarnessCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InvokeWebSearchCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListDatasetGenerationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/StartDatasetGenerationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateAgentInsightCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/enums.d.ts +159 -4
- package/dist-types/ts3.4/models/models_0.d.ts +458 -756
- package/dist-types/ts3.4/models/models_1.d.ts +747 -3
- package/dist-types/ts3.4/pagination/ListAgentInsightsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDatasetGenerationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
- package/package.json +1 -1
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetDatasetGenerationRequest, GetDatasetGenerationResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetDatasetGenerationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetDatasetGenerationCommandInput extends GetDatasetGenerationRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetDatasetGenerationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetDatasetGenerationCommandOutput extends GetDatasetGenerationResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetDatasetGenerationCommand_base: {
|
|
22
|
+
new (input: GetDatasetGenerationCommandInput): import("@smithy/core/client").CommandImpl<GetDatasetGenerationCommandInput, GetDatasetGenerationCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetDatasetGenerationCommandInput): import("@smithy/core/client").CommandImpl<GetDatasetGenerationCommandInput, GetDatasetGenerationCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Gets a dataset generation, including its status, the request it was started with, its progress counts, its redaction summary and its errors. Call this operation to track a generation that you started with <code>StartDatasetGeneration</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockAgentCoreClient, GetDatasetGenerationCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
32
|
+
* // const { BedrockAgentCoreClient, GetDatasetGenerationCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
33
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
34
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
35
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
36
|
+
* const input = { // GetDatasetGenerationRequest
|
|
37
|
+
* datasetId: "STRING_VALUE", // required
|
|
38
|
+
* generationId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetDatasetGenerationCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetDatasetGenerationResponse
|
|
43
|
+
* // generationId: "STRING_VALUE", // required
|
|
44
|
+
* // name: "STRING_VALUE", // required
|
|
45
|
+
* // description: "STRING_VALUE",
|
|
46
|
+
* // datasetId: "STRING_VALUE", // required
|
|
47
|
+
* // scenarioType: "FIXED" || "DYNAMIC", // required
|
|
48
|
+
* // status: "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "FAILED" || "DELETING", // required
|
|
49
|
+
* // failureReason: "STRING_VALUE",
|
|
50
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
51
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // completedAt: new Date("TIMESTAMP"),
|
|
53
|
+
* // source: { // GenerationSourceRecord Union: only one key present
|
|
54
|
+
* // traceGeneration: { // TraceGenerationRecord
|
|
55
|
+
* // sourceConfig: { // TraceSourceConfig Union: only one key present
|
|
56
|
+
* // cloudWatchLogs: { // CloudWatchLogsSourceConfig
|
|
57
|
+
* // logGroupNames: [ // CloudWatchLogsSourceConfigLogGroupNamesList
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // logGroupNamePrefixes: [ // CloudWatchLogsSourceConfigLogGroupNamePrefixesList
|
|
61
|
+
* // "STRING_VALUE",
|
|
62
|
+
* // ],
|
|
63
|
+
* // serviceNames: [ // ServiceNameList // required
|
|
64
|
+
* // "STRING_VALUE",
|
|
65
|
+
* // ],
|
|
66
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
67
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
68
|
+
* // },
|
|
69
|
+
* // onlineEvaluation: { // OnlineEvaluationSourceConfig
|
|
70
|
+
* // onlineEvaluationConfigArn: "STRING_VALUE", // required
|
|
71
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
72
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
73
|
+
* // },
|
|
74
|
+
* // batchEvaluation: { // BatchEvaluationSourceConfig
|
|
75
|
+
* // batchEvaluationArn: "STRING_VALUE", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // selection: { // GenerationSelectionRecord Union: only one key present
|
|
79
|
+
* // filters: { // GenerationFilters
|
|
80
|
+
* // attributeFilters: [ // GenerationAttributeFilterList
|
|
81
|
+
* // { // GenerationAttributeFilter
|
|
82
|
+
* // key: "STRING_VALUE", // required
|
|
83
|
+
* // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
|
|
84
|
+
* // value: { // GenerationFilterValue Union: only one key present
|
|
85
|
+
* // stringValue: "STRING_VALUE",
|
|
86
|
+
* // doubleValue: Number("double"),
|
|
87
|
+
* // booleanValue: true || false,
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // ],
|
|
91
|
+
* // turnCount: { // TurnCountRange
|
|
92
|
+
* // min: Number("int"),
|
|
93
|
+
* // max: Number("int"),
|
|
94
|
+
* // },
|
|
95
|
+
* // evaluatorFilters: [ // EvaluatorFilterList
|
|
96
|
+
* // { // EvaluatorFilter
|
|
97
|
+
* // evaluatorId: "STRING_VALUE", // required
|
|
98
|
+
* // evaluationDimensionName: "STRING_VALUE",
|
|
99
|
+
* // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
|
|
100
|
+
* // value: {// Union: only one key present
|
|
101
|
+
* // stringValue: "STRING_VALUE",
|
|
102
|
+
* // doubleValue: Number("double"),
|
|
103
|
+
* // booleanValue: true || false,
|
|
104
|
+
* // },
|
|
105
|
+
* // aggregation: "Min" || "Max" || "Mean" || "AllMatch" || "AnyMatch",
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
108
|
+
* // },
|
|
109
|
+
* // identifiers: { // GenerationIdentifierCounts
|
|
110
|
+
* // sessionIdCount: Number("int"),
|
|
111
|
+
* // traceIdCount: Number("int"),
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // sampling: { // GenerationSamplingConfig
|
|
115
|
+
* // maxScenarios: Number("int"),
|
|
116
|
+
* // },
|
|
117
|
+
* // groundTruth: { // GroundTruthConfig
|
|
118
|
+
* // fields: [ // GroundTruthFieldList // required
|
|
119
|
+
* // "expected_response" || "expected_trajectory",
|
|
120
|
+
* // ],
|
|
121
|
+
* // qualityFilters: [
|
|
122
|
+
* // {
|
|
123
|
+
* // evaluatorId: "STRING_VALUE", // required
|
|
124
|
+
* // evaluationDimensionName: "STRING_VALUE",
|
|
125
|
+
* // operator: "Equals" || "NotEquals" || "GreaterThan" || "LessThan" || "GreaterThanOrEqual" || "LessThanOrEqual" || "Contains" || "NotContains", // required
|
|
126
|
+
* // value: {// Union: only one key present
|
|
127
|
+
* // stringValue: "STRING_VALUE",
|
|
128
|
+
* // doubleValue: Number("double"),
|
|
129
|
+
* // booleanValue: true || false,
|
|
130
|
+
* // },
|
|
131
|
+
* // aggregation: "Min" || "Max" || "Mean" || "AllMatch" || "AnyMatch",
|
|
132
|
+
* // },
|
|
133
|
+
* // ],
|
|
134
|
+
* // },
|
|
135
|
+
* // redactionConfiguration: { // RedactionConfiguration
|
|
136
|
+
* // identifiers: [ // RedactionIdentifierList
|
|
137
|
+
* // "ADDRESS" || "AWS_SECRET_KEY" || "BANK_ACCOUNT_NUMBER_DE" || "BANK_ACCOUNT_NUMBER_ES" || "BANK_ACCOUNT_NUMBER_FR" || "BANK_ACCOUNT_NUMBER_GB" || "BANK_ACCOUNT_NUMBER_IT" || "BANK_ACCOUNT_NUMBER_US" || "CEP_CODE_BR" || "CNPJ_BR" || "CPF_CODE_BR" || "CREDIT_CARD_EXPIRATION" || "CREDIT_CARD_MAGNETIC_STRIPE" || "CREDIT_CARD_NUMBER" || "CREDIT_CARD_SECURITY_CODE" || "DATE_OF_BIRTH" || "DRIVERS_LICENSE_AT" || "DRIVERS_LICENSE_AU" || "DRIVERS_LICENSE_BE" || "DRIVERS_LICENSE_BG" || "DRIVERS_LICENSE_CA" || "DRIVERS_LICENSE_CY" || "DRIVERS_LICENSE_CZ" || "DRIVERS_LICENSE_DE" || "DRIVERS_LICENSE_DK" || "DRIVERS_LICENSE_EE" || "DRIVERS_LICENSE_ES" || "DRIVERS_LICENSE_FI" || "DRIVERS_LICENSE_FR" || "DRIVERS_LICENSE_GB" || "DRIVERS_LICENSE_GR" || "DRIVERS_LICENSE_HR" || "DRIVERS_LICENSE_HU" || "DRIVERS_LICENSE_IE" || "DRIVERS_LICENSE_IT" || "DRIVERS_LICENSE_LT" || "DRIVERS_LICENSE_LU" || "DRIVERS_LICENSE_LV" || "DRIVERS_LICENSE_MT" || "DRIVERS_LICENSE_NL" || "DRIVERS_LICENSE_PL" || "DRIVERS_LICENSE_PT" || "DRIVERS_LICENSE_RO" || "DRIVERS_LICENSE_SE" || "DRIVERS_LICENSE_SI" || "DRIVERS_LICENSE_SK" || "DRIVERS_LICENSE_US" || "DRUG_ENFORCEMENT_AGENCY_NUMBER_US" || "ELECTORAL_ROLL_NUMBER_GB" || "EMAIL_ADDRESS" || "HEALTH_INSURANCE_CARD_NUMBER_EU" || "HEALTH_INSURANCE_CLAIM_NUMBER_US" || "HEALTH_INSURANCE_NUMBER_FR" || "HEALTHCARE_PROCEDURE_CODE_US" || "INDIVIDUAL_TAX_IDENTIFICATION_NUMBER_US" || "INSEE_CODE_FR" || "IP_ADDRESS" || "LAT_LONG" || "MEDICARE_BENEFICIARY_NUMBER_US" || "NAME" || "NATIONAL_DRUG_CODE_US" || "NATIONAL_IDENTIFICATION_NUMBER_DE" || "NATIONAL_IDENTIFICATION_NUMBER_ES" || "NATIONAL_IDENTIFICATION_NUMBER_IT" || "NATIONAL_INSURANCE_NUMBER_GB" || "NATIONAL_PROVIDER_ID_US" || "NHS_NUMBER_GB" || "NIE_NUMBER_ES" || "NIF_NUMBER_ES" || "OPEN_SSH_PRIVATE_KEY" || "PASSPORT_NUMBER_CA" || "PASSPORT_NUMBER_DE" || "PASSPORT_NUMBER_ES" || "PASSPORT_NUMBER_FR" || "PASSPORT_NUMBER_GB" || "PASSPORT_NUMBER_IT" || "PASSPORT_NUMBER_US" || "PERMANENT_RESIDENCE_NUMBER_CA" || "PERSONAL_HEALTH_NUMBER_CA" || "PGP_PRIVATE_KEY" || "PHONE_NUMBER_BR" || "PHONE_NUMBER_DE" || "PHONE_NUMBER_ES" || "PHONE_NUMBER_FR" || "PHONE_NUMBER_GB" || "PHONE_NUMBER_IT" || "PHONE_NUMBER_US" || "PKCS_PRIVATE_KEY" || "POSTAL_CODE_CA" || "PUTTY_PRIVATE_KEY" || "RG_NUMBER_BR" || "SOCIAL_INSURANCE_NUMBER_CA" || "SSN_ES" || "SSN_US" || "TAX_ID_DE" || "TAX_ID_ES" || "TAX_ID_FR" || "TAX_ID_GB" || "VEHICLE_IDENTIFICATION_NUMBER" || "ZIP_CODE_US",
|
|
138
|
+
* // ],
|
|
139
|
+
* // customDataIdentifiers: [ // CustomDataIdentifierList
|
|
140
|
+
* // { // CustomDataIdentifier
|
|
141
|
+
* // name: "STRING_VALUE", // required
|
|
142
|
+
* // regex: "STRING_VALUE", // required
|
|
143
|
+
* // },
|
|
144
|
+
* // ],
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
148
|
+
* // generationResults: { // GenerationResults
|
|
149
|
+
* // sessionsMatched: Number("int"),
|
|
150
|
+
* // sessionsSelected: Number("int"),
|
|
151
|
+
* // sessionsUnscored: Number("int"),
|
|
152
|
+
* // sessionsFailed: Number("int"),
|
|
153
|
+
* // scenariosGenerated: Number("int"),
|
|
154
|
+
* // scenariosDeduplicated: Number("int"),
|
|
155
|
+
* // examplesWritten: Number("int"),
|
|
156
|
+
* // examplesWithGroundTruth: Number("int"),
|
|
157
|
+
* // },
|
|
158
|
+
* // redactionSummary: { // RedactionSummary
|
|
159
|
+
* // scenariosScanned: Number("int"),
|
|
160
|
+
* // findingCounts: { // FindingCountMap
|
|
161
|
+
* // "<keys>": Number("int"),
|
|
162
|
+
* // },
|
|
163
|
+
* // },
|
|
164
|
+
* // errorDetails: [ // GenerationErrorDetailsList
|
|
165
|
+
* // { // GenerationErrorDetail
|
|
166
|
+
* // errorCode: "STRING_VALUE",
|
|
167
|
+
* // errorMessage: "STRING_VALUE",
|
|
168
|
+
* // count: Number("int"),
|
|
169
|
+
* // sessionIds: [ // GenerationErrorSessionIdList
|
|
170
|
+
* // "STRING_VALUE",
|
|
171
|
+
* // ],
|
|
172
|
+
* // },
|
|
173
|
+
* // ],
|
|
174
|
+
* // };
|
|
175
|
+
*
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* @param GetDatasetGenerationCommandInput - {@link GetDatasetGenerationCommandInput}
|
|
179
|
+
* @returns {@link GetDatasetGenerationCommandOutput}
|
|
180
|
+
* @see {@link GetDatasetGenerationCommandInput} for command's `input` shape.
|
|
181
|
+
* @see {@link GetDatasetGenerationCommandOutput} for command's `response` shape.
|
|
182
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
185
|
+
* <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>
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link InternalServerException} (server fault)
|
|
188
|
+
* <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>
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
191
|
+
* <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>
|
|
192
|
+
*
|
|
193
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
194
|
+
* <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>
|
|
195
|
+
*
|
|
196
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
197
|
+
* <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</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 GetDatasetGenerationCommand extends GetDatasetGenerationCommand_base {
|
|
209
|
+
/** @internal type navigation helper, not in runtime. */
|
|
210
|
+
protected static __types: {
|
|
211
|
+
api: {
|
|
212
|
+
input: GetDatasetGenerationRequest;
|
|
213
|
+
output: GetDatasetGenerationResponse;
|
|
214
|
+
};
|
|
215
|
+
sdk: {
|
|
216
|
+
input: GetDatasetGenerationCommandInput;
|
|
217
|
+
output: GetDatasetGenerationCommandOutput;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { InvokeHarnessRequest, InvokeHarnessResponse } from "../models/
|
|
2
|
+
import type { InvokeHarnessRequest, InvokeHarnessResponse } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { InvokeWebSearchInput, InvokeWebSearchOutput } from "../models/
|
|
2
|
+
import type { InvokeWebSearchInput, InvokeWebSearchOutput } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListAgentInsightsRequest, ListAgentInsightsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListAgentInsightsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListAgentInsightsCommandInput extends ListAgentInsightsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListAgentInsightsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListAgentInsightsCommandOutput extends ListAgentInsightsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListAgentInsightsCommand_base: {
|
|
22
|
+
new (input: ListAgentInsightsCommandInput): import("@smithy/core/client").CommandImpl<ListAgentInsightsCommandInput, ListAgentInsightsCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [ListAgentInsightsCommandInput]): import("@smithy/core/client").CommandImpl<ListAgentInsightsCommandInput, ListAgentInsightsCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists Amazon Bedrock AgentCore Agent Insight summaries in your account and Region. Use this operation to review patterns across sessions before you investigate or archive an insight. The response paginates the results. Use the <code>nextToken</code> parameter to retrieve additional results.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockAgentCoreClient, ListAgentInsightsCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
32
|
+
* // const { BedrockAgentCoreClient, ListAgentInsightsCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
33
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
34
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
35
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
36
|
+
* const input = { // ListAgentInsightsRequest
|
|
37
|
+
* applicationName: "STRING_VALUE",
|
|
38
|
+
* batchEvaluationId: "STRING_VALUE",
|
|
39
|
+
* archiveStatus: "ACTIVE" || "ARCHIVED",
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* nextToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListAgentInsightsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListAgentInsightsResponse
|
|
46
|
+
* // agentInsights: [ // AgentInsightSummaryList // required
|
|
47
|
+
* // { // AgentInsightSummary
|
|
48
|
+
* // type: "FAILURE", // required
|
|
49
|
+
* // name: "STRING_VALUE", // required
|
|
50
|
+
* // description: "STRING_VALUE", // required
|
|
51
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // affectedSessionCount: Number("int"),
|
|
53
|
+
* // agentInsightId: "STRING_VALUE", // required
|
|
54
|
+
* // applicationName: "STRING_VALUE", // required
|
|
55
|
+
* // batchEvaluationId: "STRING_VALUE",
|
|
56
|
+
* // customerMetadataStatus: "AVAILABLE" || "CUSTOMER_KEY_UNAVAILABLE" || "UNAVAILABLE", // required
|
|
57
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // archiveStatus: "ACTIVE" || "ARCHIVED", // required
|
|
59
|
+
* // lastSeenAt: new Date("TIMESTAMP"),
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // nextToken: "STRING_VALUE",
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param ListAgentInsightsCommandInput - {@link ListAgentInsightsCommandInput}
|
|
68
|
+
* @returns {@link ListAgentInsightsCommandOutput}
|
|
69
|
+
* @see {@link ListAgentInsightsCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link ListAgentInsightsCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
74
|
+
* <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>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InternalServerException} (server fault)
|
|
77
|
+
* <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>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
80
|
+
* <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>
|
|
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 ListAgentInsightsCommand extends ListAgentInsightsCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListAgentInsightsRequest;
|
|
96
|
+
output: ListAgentInsightsResponse;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListAgentInsightsCommandInput;
|
|
100
|
+
output: ListAgentInsightsCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListDatasetGenerationsRequest, ListDatasetGenerationsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListDatasetGenerationsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListDatasetGenerationsCommandInput extends ListDatasetGenerationsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListDatasetGenerationsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListDatasetGenerationsCommandOutput extends ListDatasetGenerationsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListDatasetGenerationsCommand_base: {
|
|
22
|
+
new (input: ListDatasetGenerationsCommandInput): import("@smithy/core/client").CommandImpl<ListDatasetGenerationsCommandInput, ListDatasetGenerationsCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListDatasetGenerationsCommandInput): import("@smithy/core/client").CommandImpl<ListDatasetGenerationsCommandInput, ListDatasetGenerationsCommandOutput, import("..").BedrockAgentCoreClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the generations for a dataset. AgentCore keeps a generation until you delete it with <code>DeleteDatasetGeneration</code> or delete the dataset. To get a generation's counts and the request it was started with, call <code>GetDatasetGeneration</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { BedrockAgentCoreClient, ListDatasetGenerationsCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
32
|
+
* // const { BedrockAgentCoreClient, ListDatasetGenerationsCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
33
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
34
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
35
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
36
|
+
* const input = { // ListDatasetGenerationsRequest
|
|
37
|
+
* datasetId: "STRING_VALUE", // required
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListDatasetGenerationsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListDatasetGenerationsResponse
|
|
44
|
+
* // datasetGenerations: [ // DatasetGenerationSummaryList // required
|
|
45
|
+
* // { // DatasetGenerationSummary
|
|
46
|
+
* // generationId: "STRING_VALUE", // required
|
|
47
|
+
* // datasetId: "STRING_VALUE", // required
|
|
48
|
+
* // name: "STRING_VALUE", // required
|
|
49
|
+
* // description: "STRING_VALUE",
|
|
50
|
+
* // scenarioType: "FIXED" || "DYNAMIC", // required
|
|
51
|
+
* // status: "IN_PROGRESS" || "COMPLETED" || "COMPLETED_WITH_ERRORS" || "FAILED" || "DELETING", // required
|
|
52
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // completedAt: new Date("TIMESTAMP"),
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // nextToken: "STRING_VALUE",
|
|
57
|
+
* // };
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @param ListDatasetGenerationsCommandInput - {@link ListDatasetGenerationsCommandInput}
|
|
62
|
+
* @returns {@link ListDatasetGenerationsCommandOutput}
|
|
63
|
+
* @see {@link ListDatasetGenerationsCommandInput} for command's `input` shape.
|
|
64
|
+
* @see {@link ListDatasetGenerationsCommandOutput} for command's `response` shape.
|
|
65
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* <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>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <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>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <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>
|
|
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 ListDatasetGenerationsCommand extends ListDatasetGenerationsCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListDatasetGenerationsRequest;
|
|
96
|
+
output: ListDatasetGenerationsResponse;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListDatasetGenerationsCommandInput;
|
|
100
|
+
output: ListDatasetGenerationsCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -131,6 +131,18 @@ declare const StartBatchEvaluationCommand_base: {
|
|
|
131
131
|
* resultDestination: "DEDICATED_LOG_GROUP" || "SOURCE_LOG_GROUP",
|
|
132
132
|
* },
|
|
133
133
|
* },
|
|
134
|
+
* datasetExecutionConfig: { // DatasetExecutionConfig
|
|
135
|
+
* dataset: { // DatasetSource
|
|
136
|
+
* datasetId: "STRING_VALUE", // required
|
|
137
|
+
* datasetVersion: "STRING_VALUE",
|
|
138
|
+
* },
|
|
139
|
+
* agentInvocation: { // AgentInvocationConfig Union: only one key present
|
|
140
|
+
* agentCoreRuntime: { // AgentCoreRuntimeInvocation
|
|
141
|
+
* agentRuntimeEndpointArn: "STRING_VALUE", // required
|
|
142
|
+
* requestTemplate: "STRING_VALUE",
|
|
143
|
+
* },
|
|
144
|
+
* },
|
|
145
|
+
* },
|
|
134
146
|
* };
|
|
135
147
|
* const command = new StartBatchEvaluationCommand(input);
|
|
136
148
|
* const response = await client.send(command);
|