@aws-sdk/client-bedrock-agent-runtime 3.1068.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +143 -163
- package/dist-cjs/models/BedrockAgentRuntimeServiceException.js +4 -8
- package/dist-cjs/models/errors.js +21 -34
- package/dist-cjs/runtimeConfig.browser.js +24 -28
- package/dist-cjs/runtimeConfig.js +32 -36
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +859 -556
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
|
|
10
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
11
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
12
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
13
|
+
const { resolveHttpAuthSchemeConfig, defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
15
|
+
const { CreateInvocation$, CreateSession$, DeleteAgentMemory$, DeleteSession$, EndSession$, GenerateQuery$, GetAgentMemory$, GetExecutionFlowSnapshot$, GetFlowExecution$, GetInvocationStep$, GetSession$, InvokeAgent$, InvokeFlow$, InvokeInlineAgent$, ListFlowExecutionEvents$, ListFlowExecutions$, ListInvocations$, ListInvocationSteps$, ListSessions$, ListTagsForResource$, OptimizePrompt$, PutInvocationStep$, Rerank$, RetrieveAndGenerate$, RetrieveAndGenerateStream$, Retrieve$, StartFlowExecution$, StopFlowExecution$, TagResource$, UntagResource$, UpdateSession$ } = require("./schemas/schemas_0");
|
|
16
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { BedrockAgentRuntimeServiceException } = require("./models/BedrockAgentRuntimeServiceException");
|
|
19
|
+
exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -69,184 +72,184 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
-
const extensionConfiguration = Object.assign(
|
|
75
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
-
return Object.assign(runtimeConfig,
|
|
77
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
class BedrockAgentRuntimeClient extends
|
|
80
|
+
class BedrockAgentRuntimeClient extends Client {
|
|
78
81
|
config;
|
|
79
82
|
constructor(...[configuration]) {
|
|
80
|
-
const _config_0 =
|
|
83
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
81
84
|
super(_config_0);
|
|
82
85
|
this.initConfig = _config_0;
|
|
83
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
-
const _config_2 =
|
|
85
|
-
const _config_3 =
|
|
86
|
-
const _config_4 =
|
|
87
|
-
const _config_5 =
|
|
88
|
-
const _config_6 =
|
|
89
|
-
const _config_7 =
|
|
90
|
-
const _config_8 =
|
|
87
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = resolveEventStreamSerdeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
|
|
91
94
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
92
95
|
this.config = _config_9;
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
httpAuthSchemeParametersProvider:
|
|
102
|
-
identityProviderConfigProvider: async (config) => new
|
|
96
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
104
|
+
httpAuthSchemeParametersProvider: defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider,
|
|
105
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
103
106
|
"aws.auth#sigv4": config.credentials,
|
|
104
107
|
}),
|
|
105
108
|
}));
|
|
106
|
-
this.middlewareStack.use(
|
|
109
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
107
110
|
}
|
|
108
111
|
destroy() {
|
|
109
112
|
super.destroy();
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class CreateInvocationCommand extends
|
|
116
|
+
class CreateInvocationCommand extends Command
|
|
114
117
|
.classBuilder()
|
|
115
118
|
.ep(commonParams)
|
|
116
119
|
.m(function (Command, cs, config, o) {
|
|
117
|
-
return [
|
|
120
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
118
121
|
})
|
|
119
122
|
.s("AmazonBedrockAgentRunTimeService", "CreateInvocation", {})
|
|
120
123
|
.n("BedrockAgentRuntimeClient", "CreateInvocationCommand")
|
|
121
|
-
.sc(
|
|
124
|
+
.sc(CreateInvocation$)
|
|
122
125
|
.build() {
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
class CreateSessionCommand extends
|
|
128
|
+
class CreateSessionCommand extends Command
|
|
126
129
|
.classBuilder()
|
|
127
130
|
.ep(commonParams)
|
|
128
131
|
.m(function (Command, cs, config, o) {
|
|
129
|
-
return [
|
|
132
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
130
133
|
})
|
|
131
134
|
.s("AmazonBedrockAgentRunTimeService", "CreateSession", {})
|
|
132
135
|
.n("BedrockAgentRuntimeClient", "CreateSessionCommand")
|
|
133
|
-
.sc(
|
|
136
|
+
.sc(CreateSession$)
|
|
134
137
|
.build() {
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
class DeleteAgentMemoryCommand extends
|
|
140
|
+
class DeleteAgentMemoryCommand extends Command
|
|
138
141
|
.classBuilder()
|
|
139
142
|
.ep(commonParams)
|
|
140
143
|
.m(function (Command, cs, config, o) {
|
|
141
|
-
return [
|
|
144
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
142
145
|
})
|
|
143
146
|
.s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {})
|
|
144
147
|
.n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand")
|
|
145
|
-
.sc(
|
|
148
|
+
.sc(DeleteAgentMemory$)
|
|
146
149
|
.build() {
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
class DeleteSessionCommand extends
|
|
152
|
+
class DeleteSessionCommand extends Command
|
|
150
153
|
.classBuilder()
|
|
151
154
|
.ep(commonParams)
|
|
152
155
|
.m(function (Command, cs, config, o) {
|
|
153
|
-
return [
|
|
156
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
154
157
|
})
|
|
155
158
|
.s("AmazonBedrockAgentRunTimeService", "DeleteSession", {})
|
|
156
159
|
.n("BedrockAgentRuntimeClient", "DeleteSessionCommand")
|
|
157
|
-
.sc(
|
|
160
|
+
.sc(DeleteSession$)
|
|
158
161
|
.build() {
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
class EndSessionCommand extends
|
|
164
|
+
class EndSessionCommand extends Command
|
|
162
165
|
.classBuilder()
|
|
163
166
|
.ep(commonParams)
|
|
164
167
|
.m(function (Command, cs, config, o) {
|
|
165
|
-
return [
|
|
168
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
166
169
|
})
|
|
167
170
|
.s("AmazonBedrockAgentRunTimeService", "EndSession", {})
|
|
168
171
|
.n("BedrockAgentRuntimeClient", "EndSessionCommand")
|
|
169
|
-
.sc(
|
|
172
|
+
.sc(EndSession$)
|
|
170
173
|
.build() {
|
|
171
174
|
}
|
|
172
175
|
|
|
173
|
-
class GenerateQueryCommand extends
|
|
176
|
+
class GenerateQueryCommand extends Command
|
|
174
177
|
.classBuilder()
|
|
175
178
|
.ep(commonParams)
|
|
176
179
|
.m(function (Command, cs, config, o) {
|
|
177
|
-
return [
|
|
180
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
178
181
|
})
|
|
179
182
|
.s("AmazonBedrockAgentRunTimeService", "GenerateQuery", {})
|
|
180
183
|
.n("BedrockAgentRuntimeClient", "GenerateQueryCommand")
|
|
181
|
-
.sc(
|
|
184
|
+
.sc(GenerateQuery$)
|
|
182
185
|
.build() {
|
|
183
186
|
}
|
|
184
187
|
|
|
185
|
-
class GetAgentMemoryCommand extends
|
|
188
|
+
class GetAgentMemoryCommand extends Command
|
|
186
189
|
.classBuilder()
|
|
187
190
|
.ep(commonParams)
|
|
188
191
|
.m(function (Command, cs, config, o) {
|
|
189
|
-
return [
|
|
192
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
190
193
|
})
|
|
191
194
|
.s("AmazonBedrockAgentRunTimeService", "GetAgentMemory", {})
|
|
192
195
|
.n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand")
|
|
193
|
-
.sc(
|
|
196
|
+
.sc(GetAgentMemory$)
|
|
194
197
|
.build() {
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
class GetExecutionFlowSnapshotCommand extends
|
|
200
|
+
class GetExecutionFlowSnapshotCommand extends Command
|
|
198
201
|
.classBuilder()
|
|
199
202
|
.ep(commonParams)
|
|
200
203
|
.m(function (Command, cs, config, o) {
|
|
201
|
-
return [
|
|
204
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
202
205
|
})
|
|
203
206
|
.s("AmazonBedrockAgentRunTimeService", "GetExecutionFlowSnapshot", {})
|
|
204
207
|
.n("BedrockAgentRuntimeClient", "GetExecutionFlowSnapshotCommand")
|
|
205
|
-
.sc(
|
|
208
|
+
.sc(GetExecutionFlowSnapshot$)
|
|
206
209
|
.build() {
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
class GetFlowExecutionCommand extends
|
|
212
|
+
class GetFlowExecutionCommand extends Command
|
|
210
213
|
.classBuilder()
|
|
211
214
|
.ep(commonParams)
|
|
212
215
|
.m(function (Command, cs, config, o) {
|
|
213
|
-
return [
|
|
216
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
214
217
|
})
|
|
215
218
|
.s("AmazonBedrockAgentRunTimeService", "GetFlowExecution", {})
|
|
216
219
|
.n("BedrockAgentRuntimeClient", "GetFlowExecutionCommand")
|
|
217
|
-
.sc(
|
|
220
|
+
.sc(GetFlowExecution$)
|
|
218
221
|
.build() {
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
class GetInvocationStepCommand extends
|
|
224
|
+
class GetInvocationStepCommand extends Command
|
|
222
225
|
.classBuilder()
|
|
223
226
|
.ep(commonParams)
|
|
224
227
|
.m(function (Command, cs, config, o) {
|
|
225
|
-
return [
|
|
228
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
226
229
|
})
|
|
227
230
|
.s("AmazonBedrockAgentRunTimeService", "GetInvocationStep", {})
|
|
228
231
|
.n("BedrockAgentRuntimeClient", "GetInvocationStepCommand")
|
|
229
|
-
.sc(
|
|
232
|
+
.sc(GetInvocationStep$)
|
|
230
233
|
.build() {
|
|
231
234
|
}
|
|
232
235
|
|
|
233
|
-
class GetSessionCommand extends
|
|
236
|
+
class GetSessionCommand extends Command
|
|
234
237
|
.classBuilder()
|
|
235
238
|
.ep(commonParams)
|
|
236
239
|
.m(function (Command, cs, config, o) {
|
|
237
|
-
return [
|
|
240
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
238
241
|
})
|
|
239
242
|
.s("AmazonBedrockAgentRunTimeService", "GetSession", {})
|
|
240
243
|
.n("BedrockAgentRuntimeClient", "GetSessionCommand")
|
|
241
|
-
.sc(
|
|
244
|
+
.sc(GetSession$)
|
|
242
245
|
.build() {
|
|
243
246
|
}
|
|
244
247
|
|
|
245
|
-
class InvokeAgentCommand extends
|
|
248
|
+
class InvokeAgentCommand extends Command
|
|
246
249
|
.classBuilder()
|
|
247
250
|
.ep(commonParams)
|
|
248
251
|
.m(function (Command, cs, config, o) {
|
|
249
|
-
return [
|
|
252
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
250
253
|
})
|
|
251
254
|
.s("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
|
|
252
255
|
eventStream: {
|
|
@@ -254,15 +257,15 @@ class InvokeAgentCommand extends client.Command
|
|
|
254
257
|
},
|
|
255
258
|
})
|
|
256
259
|
.n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
|
|
257
|
-
.sc(
|
|
260
|
+
.sc(InvokeAgent$)
|
|
258
261
|
.build() {
|
|
259
262
|
}
|
|
260
263
|
|
|
261
|
-
class InvokeFlowCommand extends
|
|
264
|
+
class InvokeFlowCommand extends Command
|
|
262
265
|
.classBuilder()
|
|
263
266
|
.ep(commonParams)
|
|
264
267
|
.m(function (Command, cs, config, o) {
|
|
265
|
-
return [
|
|
268
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
266
269
|
})
|
|
267
270
|
.s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
|
|
268
271
|
eventStream: {
|
|
@@ -270,15 +273,15 @@ class InvokeFlowCommand extends client.Command
|
|
|
270
273
|
},
|
|
271
274
|
})
|
|
272
275
|
.n("BedrockAgentRuntimeClient", "InvokeFlowCommand")
|
|
273
|
-
.sc(
|
|
276
|
+
.sc(InvokeFlow$)
|
|
274
277
|
.build() {
|
|
275
278
|
}
|
|
276
279
|
|
|
277
|
-
class InvokeInlineAgentCommand extends
|
|
280
|
+
class InvokeInlineAgentCommand extends Command
|
|
278
281
|
.classBuilder()
|
|
279
282
|
.ep(commonParams)
|
|
280
283
|
.m(function (Command, cs, config, o) {
|
|
281
|
-
return [
|
|
284
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
282
285
|
})
|
|
283
286
|
.s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
|
|
284
287
|
eventStream: {
|
|
@@ -286,87 +289,87 @@ class InvokeInlineAgentCommand extends client.Command
|
|
|
286
289
|
},
|
|
287
290
|
})
|
|
288
291
|
.n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand")
|
|
289
|
-
.sc(
|
|
292
|
+
.sc(InvokeInlineAgent$)
|
|
290
293
|
.build() {
|
|
291
294
|
}
|
|
292
295
|
|
|
293
|
-
class ListFlowExecutionEventsCommand extends
|
|
296
|
+
class ListFlowExecutionEventsCommand extends Command
|
|
294
297
|
.classBuilder()
|
|
295
298
|
.ep(commonParams)
|
|
296
299
|
.m(function (Command, cs, config, o) {
|
|
297
|
-
return [
|
|
300
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
298
301
|
})
|
|
299
302
|
.s("AmazonBedrockAgentRunTimeService", "ListFlowExecutionEvents", {})
|
|
300
303
|
.n("BedrockAgentRuntimeClient", "ListFlowExecutionEventsCommand")
|
|
301
|
-
.sc(
|
|
304
|
+
.sc(ListFlowExecutionEvents$)
|
|
302
305
|
.build() {
|
|
303
306
|
}
|
|
304
307
|
|
|
305
|
-
class ListFlowExecutionsCommand extends
|
|
308
|
+
class ListFlowExecutionsCommand extends Command
|
|
306
309
|
.classBuilder()
|
|
307
310
|
.ep(commonParams)
|
|
308
311
|
.m(function (Command, cs, config, o) {
|
|
309
|
-
return [
|
|
312
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
310
313
|
})
|
|
311
314
|
.s("AmazonBedrockAgentRunTimeService", "ListFlowExecutions", {})
|
|
312
315
|
.n("BedrockAgentRuntimeClient", "ListFlowExecutionsCommand")
|
|
313
|
-
.sc(
|
|
316
|
+
.sc(ListFlowExecutions$)
|
|
314
317
|
.build() {
|
|
315
318
|
}
|
|
316
319
|
|
|
317
|
-
class ListInvocationsCommand extends
|
|
320
|
+
class ListInvocationsCommand extends Command
|
|
318
321
|
.classBuilder()
|
|
319
322
|
.ep(commonParams)
|
|
320
323
|
.m(function (Command, cs, config, o) {
|
|
321
|
-
return [
|
|
324
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
322
325
|
})
|
|
323
326
|
.s("AmazonBedrockAgentRunTimeService", "ListInvocations", {})
|
|
324
327
|
.n("BedrockAgentRuntimeClient", "ListInvocationsCommand")
|
|
325
|
-
.sc(
|
|
328
|
+
.sc(ListInvocations$)
|
|
326
329
|
.build() {
|
|
327
330
|
}
|
|
328
331
|
|
|
329
|
-
class ListInvocationStepsCommand extends
|
|
332
|
+
class ListInvocationStepsCommand extends Command
|
|
330
333
|
.classBuilder()
|
|
331
334
|
.ep(commonParams)
|
|
332
335
|
.m(function (Command, cs, config, o) {
|
|
333
|
-
return [
|
|
336
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
334
337
|
})
|
|
335
338
|
.s("AmazonBedrockAgentRunTimeService", "ListInvocationSteps", {})
|
|
336
339
|
.n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand")
|
|
337
|
-
.sc(
|
|
340
|
+
.sc(ListInvocationSteps$)
|
|
338
341
|
.build() {
|
|
339
342
|
}
|
|
340
343
|
|
|
341
|
-
class ListSessionsCommand extends
|
|
344
|
+
class ListSessionsCommand extends Command
|
|
342
345
|
.classBuilder()
|
|
343
346
|
.ep(commonParams)
|
|
344
347
|
.m(function (Command, cs, config, o) {
|
|
345
|
-
return [
|
|
348
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
346
349
|
})
|
|
347
350
|
.s("AmazonBedrockAgentRunTimeService", "ListSessions", {})
|
|
348
351
|
.n("BedrockAgentRuntimeClient", "ListSessionsCommand")
|
|
349
|
-
.sc(
|
|
352
|
+
.sc(ListSessions$)
|
|
350
353
|
.build() {
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
class ListTagsForResourceCommand extends
|
|
356
|
+
class ListTagsForResourceCommand extends Command
|
|
354
357
|
.classBuilder()
|
|
355
358
|
.ep(commonParams)
|
|
356
359
|
.m(function (Command, cs, config, o) {
|
|
357
|
-
return [
|
|
360
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
358
361
|
})
|
|
359
362
|
.s("AmazonBedrockAgentRunTimeService", "ListTagsForResource", {})
|
|
360
363
|
.n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand")
|
|
361
|
-
.sc(
|
|
364
|
+
.sc(ListTagsForResource$)
|
|
362
365
|
.build() {
|
|
363
366
|
}
|
|
364
367
|
|
|
365
|
-
class OptimizePromptCommand extends
|
|
368
|
+
class OptimizePromptCommand extends Command
|
|
366
369
|
.classBuilder()
|
|
367
370
|
.ep(commonParams)
|
|
368
371
|
.m(function (Command, cs, config, o) {
|
|
369
|
-
return [
|
|
372
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
370
373
|
})
|
|
371
374
|
.s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
|
|
372
375
|
eventStream: {
|
|
@@ -374,51 +377,51 @@ class OptimizePromptCommand extends client.Command
|
|
|
374
377
|
},
|
|
375
378
|
})
|
|
376
379
|
.n("BedrockAgentRuntimeClient", "OptimizePromptCommand")
|
|
377
|
-
.sc(
|
|
380
|
+
.sc(OptimizePrompt$)
|
|
378
381
|
.build() {
|
|
379
382
|
}
|
|
380
383
|
|
|
381
|
-
class PutInvocationStepCommand extends
|
|
384
|
+
class PutInvocationStepCommand extends Command
|
|
382
385
|
.classBuilder()
|
|
383
386
|
.ep(commonParams)
|
|
384
387
|
.m(function (Command, cs, config, o) {
|
|
385
|
-
return [
|
|
388
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
386
389
|
})
|
|
387
390
|
.s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {})
|
|
388
391
|
.n("BedrockAgentRuntimeClient", "PutInvocationStepCommand")
|
|
389
|
-
.sc(
|
|
392
|
+
.sc(PutInvocationStep$)
|
|
390
393
|
.build() {
|
|
391
394
|
}
|
|
392
395
|
|
|
393
|
-
class RerankCommand extends
|
|
396
|
+
class RerankCommand extends Command
|
|
394
397
|
.classBuilder()
|
|
395
398
|
.ep(commonParams)
|
|
396
399
|
.m(function (Command, cs, config, o) {
|
|
397
|
-
return [
|
|
400
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
398
401
|
})
|
|
399
402
|
.s("AmazonBedrockAgentRunTimeService", "Rerank", {})
|
|
400
403
|
.n("BedrockAgentRuntimeClient", "RerankCommand")
|
|
401
|
-
.sc(
|
|
404
|
+
.sc(Rerank$)
|
|
402
405
|
.build() {
|
|
403
406
|
}
|
|
404
407
|
|
|
405
|
-
class RetrieveAndGenerateCommand extends
|
|
408
|
+
class RetrieveAndGenerateCommand extends Command
|
|
406
409
|
.classBuilder()
|
|
407
410
|
.ep(commonParams)
|
|
408
411
|
.m(function (Command, cs, config, o) {
|
|
409
|
-
return [
|
|
412
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
410
413
|
})
|
|
411
414
|
.s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
|
|
412
415
|
.n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
|
|
413
|
-
.sc(
|
|
416
|
+
.sc(RetrieveAndGenerate$)
|
|
414
417
|
.build() {
|
|
415
418
|
}
|
|
416
419
|
|
|
417
|
-
class RetrieveAndGenerateStreamCommand extends
|
|
420
|
+
class RetrieveAndGenerateStreamCommand extends Command
|
|
418
421
|
.classBuilder()
|
|
419
422
|
.ep(commonParams)
|
|
420
423
|
.m(function (Command, cs, config, o) {
|
|
421
|
-
return [
|
|
424
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
422
425
|
})
|
|
423
426
|
.s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerateStream", {
|
|
424
427
|
eventStream: {
|
|
@@ -426,97 +429,97 @@ class RetrieveAndGenerateStreamCommand extends client.Command
|
|
|
426
429
|
},
|
|
427
430
|
})
|
|
428
431
|
.n("BedrockAgentRuntimeClient", "RetrieveAndGenerateStreamCommand")
|
|
429
|
-
.sc(
|
|
432
|
+
.sc(RetrieveAndGenerateStream$)
|
|
430
433
|
.build() {
|
|
431
434
|
}
|
|
432
435
|
|
|
433
|
-
class RetrieveCommand extends
|
|
436
|
+
class RetrieveCommand extends Command
|
|
434
437
|
.classBuilder()
|
|
435
438
|
.ep(commonParams)
|
|
436
439
|
.m(function (Command, cs, config, o) {
|
|
437
|
-
return [
|
|
440
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
438
441
|
})
|
|
439
442
|
.s("AmazonBedrockAgentRunTimeService", "Retrieve", {})
|
|
440
443
|
.n("BedrockAgentRuntimeClient", "RetrieveCommand")
|
|
441
|
-
.sc(
|
|
444
|
+
.sc(Retrieve$)
|
|
442
445
|
.build() {
|
|
443
446
|
}
|
|
444
447
|
|
|
445
|
-
class StartFlowExecutionCommand extends
|
|
448
|
+
class StartFlowExecutionCommand extends Command
|
|
446
449
|
.classBuilder()
|
|
447
450
|
.ep(commonParams)
|
|
448
451
|
.m(function (Command, cs, config, o) {
|
|
449
|
-
return [
|
|
452
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
450
453
|
})
|
|
451
454
|
.s("AmazonBedrockAgentRunTimeService", "StartFlowExecution", {})
|
|
452
455
|
.n("BedrockAgentRuntimeClient", "StartFlowExecutionCommand")
|
|
453
|
-
.sc(
|
|
456
|
+
.sc(StartFlowExecution$)
|
|
454
457
|
.build() {
|
|
455
458
|
}
|
|
456
459
|
|
|
457
|
-
class StopFlowExecutionCommand extends
|
|
460
|
+
class StopFlowExecutionCommand extends Command
|
|
458
461
|
.classBuilder()
|
|
459
462
|
.ep(commonParams)
|
|
460
463
|
.m(function (Command, cs, config, o) {
|
|
461
|
-
return [
|
|
464
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
462
465
|
})
|
|
463
466
|
.s("AmazonBedrockAgentRunTimeService", "StopFlowExecution", {})
|
|
464
467
|
.n("BedrockAgentRuntimeClient", "StopFlowExecutionCommand")
|
|
465
|
-
.sc(
|
|
468
|
+
.sc(StopFlowExecution$)
|
|
466
469
|
.build() {
|
|
467
470
|
}
|
|
468
471
|
|
|
469
|
-
class TagResourceCommand extends
|
|
472
|
+
class TagResourceCommand extends Command
|
|
470
473
|
.classBuilder()
|
|
471
474
|
.ep(commonParams)
|
|
472
475
|
.m(function (Command, cs, config, o) {
|
|
473
|
-
return [
|
|
476
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
474
477
|
})
|
|
475
478
|
.s("AmazonBedrockAgentRunTimeService", "TagResource", {})
|
|
476
479
|
.n("BedrockAgentRuntimeClient", "TagResourceCommand")
|
|
477
|
-
.sc(
|
|
480
|
+
.sc(TagResource$)
|
|
478
481
|
.build() {
|
|
479
482
|
}
|
|
480
483
|
|
|
481
|
-
class UntagResourceCommand extends
|
|
484
|
+
class UntagResourceCommand extends Command
|
|
482
485
|
.classBuilder()
|
|
483
486
|
.ep(commonParams)
|
|
484
487
|
.m(function (Command, cs, config, o) {
|
|
485
|
-
return [
|
|
488
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
486
489
|
})
|
|
487
490
|
.s("AmazonBedrockAgentRunTimeService", "UntagResource", {})
|
|
488
491
|
.n("BedrockAgentRuntimeClient", "UntagResourceCommand")
|
|
489
|
-
.sc(
|
|
492
|
+
.sc(UntagResource$)
|
|
490
493
|
.build() {
|
|
491
494
|
}
|
|
492
495
|
|
|
493
|
-
class UpdateSessionCommand extends
|
|
496
|
+
class UpdateSessionCommand extends Command
|
|
494
497
|
.classBuilder()
|
|
495
498
|
.ep(commonParams)
|
|
496
499
|
.m(function (Command, cs, config, o) {
|
|
497
|
-
return [
|
|
500
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
498
501
|
})
|
|
499
502
|
.s("AmazonBedrockAgentRunTimeService", "UpdateSession", {})
|
|
500
503
|
.n("BedrockAgentRuntimeClient", "UpdateSessionCommand")
|
|
501
|
-
.sc(
|
|
504
|
+
.sc(UpdateSession$)
|
|
502
505
|
.build() {
|
|
503
506
|
}
|
|
504
507
|
|
|
505
|
-
const paginateGetAgentMemory =
|
|
508
|
+
const paginateGetAgentMemory = createPaginator(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
|
|
506
509
|
|
|
507
|
-
const paginateListFlowExecutionEvents =
|
|
510
|
+
const paginateListFlowExecutionEvents = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
508
511
|
|
|
509
|
-
const paginateListFlowExecutions =
|
|
512
|
+
const paginateListFlowExecutions = createPaginator(BedrockAgentRuntimeClient, ListFlowExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
510
513
|
|
|
511
|
-
const paginateListInvocations =
|
|
514
|
+
const paginateListInvocations = createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
|
|
512
515
|
|
|
513
|
-
const paginateListInvocationSteps =
|
|
516
|
+
const paginateListInvocationSteps = createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
|
|
514
517
|
|
|
515
|
-
const paginateListSessions =
|
|
518
|
+
const paginateListSessions = createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
516
519
|
|
|
517
|
-
const paginateRerank =
|
|
520
|
+
const paginateRerank = createPaginator(BedrockAgentRuntimeClient, RerankCommand, "nextToken", "nextToken", "");
|
|
518
521
|
|
|
519
|
-
const paginateRetrieve =
|
|
522
|
+
const paginateRetrieve = createPaginator(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
|
|
520
523
|
|
|
521
524
|
const commands = {
|
|
522
525
|
CreateInvocationCommand,
|
|
@@ -563,7 +566,7 @@ const paginators = {
|
|
|
563
566
|
};
|
|
564
567
|
class BedrockAgentRuntime extends BedrockAgentRuntimeClient {
|
|
565
568
|
}
|
|
566
|
-
|
|
569
|
+
createAggregatedClient(commands, BedrockAgentRuntime, { paginators });
|
|
567
570
|
|
|
568
571
|
const CustomControlMethod = {
|
|
569
572
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
@@ -908,9 +911,6 @@ const ImageFormat = {
|
|
|
908
911
|
WEBP: "webp",
|
|
909
912
|
};
|
|
910
913
|
|
|
911
|
-
exports.$Command = client.Command;
|
|
912
|
-
exports.__Client = client.Client;
|
|
913
|
-
exports.BedrockAgentRuntimeServiceException = BedrockAgentRuntimeServiceException.BedrockAgentRuntimeServiceException;
|
|
914
914
|
exports.ActionGroupSignature = ActionGroupSignature;
|
|
915
915
|
exports.ActionInvocationType = ActionInvocationType;
|
|
916
916
|
exports.AgentCollaboration = AgentCollaboration;
|
|
@@ -1019,23 +1019,3 @@ exports.paginateListInvocations = paginateListInvocations;
|
|
|
1019
1019
|
exports.paginateListSessions = paginateListSessions;
|
|
1020
1020
|
exports.paginateRerank = paginateRerank;
|
|
1021
1021
|
exports.paginateRetrieve = paginateRetrieve;
|
|
1022
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1023
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1024
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1025
|
-
enumerable: true,
|
|
1026
|
-
value: schemas_0['__proto__']
|
|
1027
|
-
});
|
|
1028
|
-
|
|
1029
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
1030
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
1031
|
-
});
|
|
1032
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
1033
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1034
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1035
|
-
enumerable: true,
|
|
1036
|
-
value: errors['__proto__']
|
|
1037
|
-
});
|
|
1038
|
-
|
|
1039
|
-
Object.keys(errors).forEach(function (k) {
|
|
1040
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
1041
|
-
});
|