@aws-sdk/client-bedrock-agentcore 3.1009.0 → 3.1010.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.
@@ -0,0 +1,156 @@
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 { InvokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link InvokeAgentRuntimeCommandCommand}.
14
+ */
15
+ export interface InvokeAgentRuntimeCommandCommandInput extends InvokeAgentRuntimeCommandRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link InvokeAgentRuntimeCommandCommand}.
21
+ */
22
+ export interface InvokeAgentRuntimeCommandCommandOutput extends InvokeAgentRuntimeCommandResponse, __MetadataBearer {
23
+ }
24
+ declare const InvokeAgentRuntimeCommandCommand_base: {
25
+ new (input: InvokeAgentRuntimeCommandCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: InvokeAgentRuntimeCommandCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Executes a command in a runtime session container.
31
+ * Returns streaming output with contentStart, contentDelta, and contentStop events.
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { BedrockAgentCoreClient, InvokeAgentRuntimeCommandCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
36
+ * // const { BedrockAgentCoreClient, InvokeAgentRuntimeCommandCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
37
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
38
+ * const config = {}; // type is BedrockAgentCoreClientConfig
39
+ * const client = new BedrockAgentCoreClient(config);
40
+ * const input = { // InvokeAgentRuntimeCommandRequest
41
+ * contentType: "STRING_VALUE",
42
+ * accept: "STRING_VALUE",
43
+ * runtimeSessionId: "STRING_VALUE",
44
+ * traceId: "STRING_VALUE",
45
+ * traceParent: "STRING_VALUE",
46
+ * traceState: "STRING_VALUE",
47
+ * baggage: "STRING_VALUE",
48
+ * agentRuntimeArn: "STRING_VALUE", // required
49
+ * qualifier: "STRING_VALUE",
50
+ * accountId: "STRING_VALUE",
51
+ * body: { // InvokeAgentRuntimeCommandRequestBody
52
+ * command: "STRING_VALUE", // required
53
+ * timeout: Number("int"),
54
+ * },
55
+ * };
56
+ * const command = new InvokeAgentRuntimeCommandCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // InvokeAgentRuntimeCommandResponse
59
+ * // runtimeSessionId: "STRING_VALUE",
60
+ * // traceId: "STRING_VALUE",
61
+ * // traceParent: "STRING_VALUE",
62
+ * // traceState: "STRING_VALUE",
63
+ * // baggage: "STRING_VALUE",
64
+ * // contentType: "STRING_VALUE", // required
65
+ * // statusCode: Number("int"),
66
+ * // stream: { // InvokeAgentRuntimeCommandStreamOutput Union: only one key present
67
+ * // chunk: { // ResponseChunk
68
+ * // contentStart: {},
69
+ * // contentDelta: { // ContentDeltaEvent
70
+ * // stdout: "STRING_VALUE",
71
+ * // stderr: "STRING_VALUE",
72
+ * // },
73
+ * // contentStop: { // ContentStopEvent
74
+ * // exitCode: Number("int"), // required
75
+ * // status: "COMPLETED" || "TIMED_OUT", // required
76
+ * // },
77
+ * // },
78
+ * // accessDeniedException: { // AccessDeniedException
79
+ * // message: "STRING_VALUE",
80
+ * // },
81
+ * // internalServerException: { // InternalServerException
82
+ * // message: "STRING_VALUE",
83
+ * // },
84
+ * // resourceNotFoundException: { // ResourceNotFoundException
85
+ * // message: "STRING_VALUE",
86
+ * // },
87
+ * // serviceQuotaExceededException: { // ServiceQuotaExceededException
88
+ * // message: "STRING_VALUE",
89
+ * // },
90
+ * // throttlingException: { // ThrottlingException
91
+ * // message: "STRING_VALUE",
92
+ * // },
93
+ * // validationException: { // ValidationException
94
+ * // message: "STRING_VALUE", // required
95
+ * // reason: "CannotParse" || "FieldValidationFailed" || "IdempotentParameterMismatchException" || "EventInOtherSession" || "ResourceConflict", // required
96
+ * // fieldList: [ // ValidationExceptionFieldList
97
+ * // { // ValidationExceptionField
98
+ * // name: "STRING_VALUE", // required
99
+ * // message: "STRING_VALUE", // required
100
+ * // },
101
+ * // ],
102
+ * // },
103
+ * // runtimeClientError: { // RuntimeClientError
104
+ * // message: "STRING_VALUE",
105
+ * // },
106
+ * // },
107
+ * // };
108
+ *
109
+ * ```
110
+ *
111
+ * @param InvokeAgentRuntimeCommandCommandInput - {@link InvokeAgentRuntimeCommandCommandInput}
112
+ * @returns {@link InvokeAgentRuntimeCommandCommandOutput}
113
+ * @see {@link InvokeAgentRuntimeCommandCommandInput} for command's `input` shape.
114
+ * @see {@link InvokeAgentRuntimeCommandCommandOutput} for command's `response` shape.
115
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
116
+ *
117
+ * @throws {@link AccessDeniedException} (client fault)
118
+ * <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>
119
+ *
120
+ * @throws {@link InternalServerException} (server fault)
121
+ * <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>
122
+ *
123
+ * @throws {@link ResourceNotFoundException} (client fault)
124
+ * <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>
125
+ *
126
+ * @throws {@link RuntimeClientError} (client fault)
127
+ * <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
128
+ *
129
+ * @throws {@link ServiceQuotaExceededException} (client fault)
130
+ * <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
131
+ *
132
+ * @throws {@link ThrottlingException} (client fault)
133
+ * <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>
134
+ *
135
+ * @throws {@link ValidationException} (client fault)
136
+ * <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>
137
+ *
138
+ * @throws {@link BedrockAgentCoreServiceException}
139
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
140
+ *
141
+ *
142
+ * @public
143
+ */
144
+ export declare class InvokeAgentRuntimeCommandCommand extends InvokeAgentRuntimeCommandCommand_base {
145
+ /** @internal type navigation helper, not in runtime. */
146
+ protected static __types: {
147
+ api: {
148
+ input: InvokeAgentRuntimeCommandRequest;
149
+ output: InvokeAgentRuntimeCommandResponse;
150
+ };
151
+ sdk: {
152
+ input: InvokeAgentRuntimeCommandCommandInput;
153
+ output: InvokeAgentRuntimeCommandCommandOutput;
154
+ };
155
+ };
156
+ }
@@ -17,6 +17,7 @@ export * from "./GetWorkloadAccessTokenCommand";
17
17
  export * from "./GetWorkloadAccessTokenForJWTCommand";
18
18
  export * from "./GetWorkloadAccessTokenForUserIdCommand";
19
19
  export * from "./InvokeAgentRuntimeCommand";
20
+ export * from "./InvokeAgentRuntimeCommandCommand";
20
21
  export * from "./InvokeCodeInterpreterCommand";
21
22
  export * from "./ListActorsCommand";
22
23
  export * from "./ListBrowserSessionsCommand";
@@ -13,6 +13,18 @@ export declare const ValidationExceptionReason: {
13
13
  * @public
14
14
  */
15
15
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const CommandExecutionStatus: {
21
+ readonly COMPLETED: "COMPLETED";
22
+ readonly TIMED_OUT: "TIMED_OUT";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type CommandExecutionStatus = (typeof CommandExecutionStatus)[keyof typeof CommandExecutionStatus];
16
28
  /**
17
29
  * @public
18
30
  * @enum
@@ -1,6 +1,6 @@
1
1
  import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
2
- import { AutomationStreamStatus, BrowserSessionStatus, CodeInterpreterSessionStatus, ContentBlockType, ExtractionJobStatus, MemoryRecordStatus, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, SessionStatus, TaskStatus, ToolName } from "./enums";
3
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
2
+ import { AutomationStreamStatus, BrowserSessionStatus, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, ExtractionJobStatus, MemoryRecordStatus, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, SessionStatus, TaskStatus, ToolName } from "./enums";
3
+ import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
4
4
  /**
5
5
  * <p>Contains summary information about an actor in an AgentCore Memory resource.</p>
6
6
  * @public
@@ -123,17 +123,17 @@ export interface InvokeAgentRuntimeRequest {
123
123
  */
124
124
  baggage?: string | undefined;
125
125
  /**
126
- * <p>The Amazon Web Services Resource Name (ARN) of the agent runtime to invoke. The ARN uniquely identifies the agent runtime resource in Amazon Bedrock AgentCore.</p>
126
+ * <p>The identifier of the agent runtime to invoke. You can specify either the full Amazon Web Services Resource Name (ARN) or the agent ID. If you use the agent ID, you must also provide the <code>accountId</code> query parameter.</p>
127
127
  * @public
128
128
  */
129
129
  agentRuntimeArn: string | undefined;
130
130
  /**
131
- * <p>The qualifier to use for the agent runtime. This can be a version number or an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default version of the agent runtime.</p>
131
+ * <p>The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime.</p>
132
132
  * @public
133
133
  */
134
134
  qualifier?: string | undefined;
135
135
  /**
136
- * <p>The identifier of the Amazon Web Services account for the agent runtime resource.</p>
136
+ * <p>The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN for <code>agentRuntimeArn</code>.</p>
137
137
  * @public
138
138
  */
139
139
  accountId?: string | undefined;
@@ -198,6 +198,348 @@ export interface InvokeAgentRuntimeResponse {
198
198
  */
199
199
  statusCode?: number | undefined;
200
200
  }
201
+ /**
202
+ * Request body for InvokeAgentRuntimeCommand
203
+ * @public
204
+ */
205
+ export interface InvokeAgentRuntimeCommandRequestBody {
206
+ /**
207
+ * The command to execute in the runtime container
208
+ * @public
209
+ */
210
+ command: string | undefined;
211
+ /**
212
+ * Command timeout in seconds (default: 300, min:1, max: 3600)
213
+ * @public
214
+ */
215
+ timeout?: number | undefined;
216
+ }
217
+ /**
218
+ * Request for InvokeAgentRuntimeCommand operation
219
+ * @public
220
+ */
221
+ export interface InvokeAgentRuntimeCommandRequest {
222
+ /**
223
+ * <p>The MIME type of the input data in the request payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.</p>
224
+ * @public
225
+ */
226
+ contentType?: string | undefined;
227
+ /**
228
+ * <p>The desired MIME type for the response from the agent runtime command. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.</p>
229
+ * @public
230
+ */
231
+ accept?: string | undefined;
232
+ /**
233
+ * Runtime session identifier
234
+ * @public
235
+ */
236
+ runtimeSessionId?: string | undefined;
237
+ /**
238
+ * <p>The trace identifier for request tracking.</p>
239
+ * @public
240
+ */
241
+ traceId?: string | undefined;
242
+ /**
243
+ * <p>The parent trace information for distributed tracing.</p>
244
+ * @public
245
+ */
246
+ traceParent?: string | undefined;
247
+ /**
248
+ * <p>The trace state information for distributed tracing.</p>
249
+ * @public
250
+ */
251
+ traceState?: string | undefined;
252
+ /**
253
+ * <p>Additional context information for distributed tracing.</p>
254
+ * @public
255
+ */
256
+ baggage?: string | undefined;
257
+ /**
258
+ * ARN of the agent runtime
259
+ * @public
260
+ */
261
+ agentRuntimeArn: string | undefined;
262
+ /**
263
+ * Version or alias qualifier
264
+ * @public
265
+ */
266
+ qualifier?: string | undefined;
267
+ /**
268
+ * Account ID (12 digits)
269
+ * @public
270
+ */
271
+ accountId?: string | undefined;
272
+ /**
273
+ * Request body containing command and timeout
274
+ * @public
275
+ */
276
+ body: InvokeAgentRuntimeCommandRequestBody | undefined;
277
+ }
278
+ /**
279
+ * Content event containing stdout or stderr output
280
+ * @public
281
+ */
282
+ export interface ContentDeltaEvent {
283
+ /**
284
+ * Standard output content
285
+ * @public
286
+ */
287
+ stdout?: string | undefined;
288
+ /**
289
+ * Standard error content
290
+ * @public
291
+ */
292
+ stderr?: string | undefined;
293
+ }
294
+ /**
295
+ * First event indicating command execution has started
296
+ * @public
297
+ */
298
+ export interface ContentStartEvent {
299
+ }
300
+ /**
301
+ * Final event indicating command execution has completed
302
+ * @public
303
+ */
304
+ export interface ContentStopEvent {
305
+ /**
306
+ * Exit code: 0 = success, -1 = platform error, >0 = command error
307
+ * @public
308
+ */
309
+ exitCode: number | undefined;
310
+ /**
311
+ * Execution status
312
+ * @public
313
+ */
314
+ status: CommandExecutionStatus | undefined;
315
+ }
316
+ /**
317
+ * Response chunk containing exactly one of: contentStart, contentDelta, or contentStop
318
+ * @public
319
+ */
320
+ export interface ResponseChunk {
321
+ /**
322
+ * First chunk - indicates command execution has started
323
+ * @public
324
+ */
325
+ contentStart?: ContentStartEvent | undefined;
326
+ /**
327
+ * Middle chunks - stdout/stderr output
328
+ * @public
329
+ */
330
+ contentDelta?: ContentDeltaEvent | undefined;
331
+ /**
332
+ * Last chunk - indicates command execution has completed
333
+ * @public
334
+ */
335
+ contentStop?: ContentStopEvent | undefined;
336
+ }
337
+ /**
338
+ * Streaming output for InvokeAgentRuntimeCommand operation
339
+ * Delivers typed events: contentStart (first), contentDelta (middle), contentStop (last)
340
+ * @public
341
+ */
342
+ export type InvokeAgentRuntimeCommandStreamOutput = InvokeAgentRuntimeCommandStreamOutput.AccessDeniedExceptionMember | InvokeAgentRuntimeCommandStreamOutput.ChunkMember | InvokeAgentRuntimeCommandStreamOutput.InternalServerExceptionMember | InvokeAgentRuntimeCommandStreamOutput.ResourceNotFoundExceptionMember | InvokeAgentRuntimeCommandStreamOutput.RuntimeClientErrorMember | InvokeAgentRuntimeCommandStreamOutput.ServiceQuotaExceededExceptionMember | InvokeAgentRuntimeCommandStreamOutput.ThrottlingExceptionMember | InvokeAgentRuntimeCommandStreamOutput.ValidationExceptionMember | InvokeAgentRuntimeCommandStreamOutput.$UnknownMember;
343
+ /**
344
+ * @public
345
+ */
346
+ export declare namespace InvokeAgentRuntimeCommandStreamOutput {
347
+ /**
348
+ * Response chunk containing command execution events
349
+ * @public
350
+ */
351
+ interface ChunkMember {
352
+ chunk: ResponseChunk;
353
+ accessDeniedException?: never;
354
+ internalServerException?: never;
355
+ resourceNotFoundException?: never;
356
+ serviceQuotaExceededException?: never;
357
+ throttlingException?: never;
358
+ validationException?: never;
359
+ runtimeClientError?: never;
360
+ $unknown?: never;
361
+ }
362
+ /**
363
+ * Exception events for error streaming
364
+ * @public
365
+ */
366
+ interface AccessDeniedExceptionMember {
367
+ chunk?: never;
368
+ accessDeniedException: AccessDeniedException;
369
+ internalServerException?: never;
370
+ resourceNotFoundException?: never;
371
+ serviceQuotaExceededException?: never;
372
+ throttlingException?: never;
373
+ validationException?: never;
374
+ runtimeClientError?: never;
375
+ $unknown?: never;
376
+ }
377
+ /**
378
+ * <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>
379
+ * @public
380
+ */
381
+ interface InternalServerExceptionMember {
382
+ chunk?: never;
383
+ accessDeniedException?: never;
384
+ internalServerException: InternalServerException;
385
+ resourceNotFoundException?: never;
386
+ serviceQuotaExceededException?: never;
387
+ throttlingException?: never;
388
+ validationException?: never;
389
+ runtimeClientError?: never;
390
+ $unknown?: never;
391
+ }
392
+ /**
393
+ * <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>
394
+ * @public
395
+ */
396
+ interface ResourceNotFoundExceptionMember {
397
+ chunk?: never;
398
+ accessDeniedException?: never;
399
+ internalServerException?: never;
400
+ resourceNotFoundException: ResourceNotFoundException;
401
+ serviceQuotaExceededException?: never;
402
+ throttlingException?: never;
403
+ validationException?: never;
404
+ runtimeClientError?: never;
405
+ $unknown?: never;
406
+ }
407
+ /**
408
+ * <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
409
+ * @public
410
+ */
411
+ interface ServiceQuotaExceededExceptionMember {
412
+ chunk?: never;
413
+ accessDeniedException?: never;
414
+ internalServerException?: never;
415
+ resourceNotFoundException?: never;
416
+ serviceQuotaExceededException: ServiceQuotaExceededException;
417
+ throttlingException?: never;
418
+ validationException?: never;
419
+ runtimeClientError?: never;
420
+ $unknown?: never;
421
+ }
422
+ /**
423
+ * <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>
424
+ * @public
425
+ */
426
+ interface ThrottlingExceptionMember {
427
+ chunk?: never;
428
+ accessDeniedException?: never;
429
+ internalServerException?: never;
430
+ resourceNotFoundException?: never;
431
+ serviceQuotaExceededException?: never;
432
+ throttlingException: ThrottlingException;
433
+ validationException?: never;
434
+ runtimeClientError?: never;
435
+ $unknown?: never;
436
+ }
437
+ /**
438
+ * <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>
439
+ * @public
440
+ */
441
+ interface ValidationExceptionMember {
442
+ chunk?: never;
443
+ accessDeniedException?: never;
444
+ internalServerException?: never;
445
+ resourceNotFoundException?: never;
446
+ serviceQuotaExceededException?: never;
447
+ throttlingException?: never;
448
+ validationException: ValidationException;
449
+ runtimeClientError?: never;
450
+ $unknown?: never;
451
+ }
452
+ /**
453
+ * <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
454
+ * @public
455
+ */
456
+ interface RuntimeClientErrorMember {
457
+ chunk?: never;
458
+ accessDeniedException?: never;
459
+ internalServerException?: never;
460
+ resourceNotFoundException?: never;
461
+ serviceQuotaExceededException?: never;
462
+ throttlingException?: never;
463
+ validationException?: never;
464
+ runtimeClientError: RuntimeClientError;
465
+ $unknown?: never;
466
+ }
467
+ /**
468
+ * @public
469
+ */
470
+ interface $UnknownMember {
471
+ chunk?: never;
472
+ accessDeniedException?: never;
473
+ internalServerException?: never;
474
+ resourceNotFoundException?: never;
475
+ serviceQuotaExceededException?: never;
476
+ throttlingException?: never;
477
+ validationException?: never;
478
+ runtimeClientError?: never;
479
+ $unknown: [string, any];
480
+ }
481
+ /**
482
+ * @deprecated unused in schema-serde mode.
483
+ *
484
+ */
485
+ interface Visitor<T> {
486
+ chunk: (value: ResponseChunk) => T;
487
+ accessDeniedException: (value: AccessDeniedException) => T;
488
+ internalServerException: (value: InternalServerException) => T;
489
+ resourceNotFoundException: (value: ResourceNotFoundException) => T;
490
+ serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
491
+ throttlingException: (value: ThrottlingException) => T;
492
+ validationException: (value: ValidationException) => T;
493
+ runtimeClientError: (value: RuntimeClientError) => T;
494
+ _: (name: string, value: any) => T;
495
+ }
496
+ }
497
+ /**
498
+ * Response for InvokeAgentRuntimeCommand operation
499
+ * @public
500
+ */
501
+ export interface InvokeAgentRuntimeCommandResponse {
502
+ /**
503
+ * Runtime session identifier
504
+ * @public
505
+ */
506
+ runtimeSessionId?: string | undefined;
507
+ /**
508
+ * <p>The trace identifier for request tracking.</p>
509
+ * @public
510
+ */
511
+ traceId?: string | undefined;
512
+ /**
513
+ * <p>The parent trace information for distributed tracing.</p>
514
+ * @public
515
+ */
516
+ traceParent?: string | undefined;
517
+ /**
518
+ * <p>The trace state information for distributed tracing.</p>
519
+ * @public
520
+ */
521
+ traceState?: string | undefined;
522
+ /**
523
+ * <p>Additional context information for distributed tracing.</p>
524
+ * @public
525
+ */
526
+ baggage?: string | undefined;
527
+ /**
528
+ * <p>The MIME type of the response data. This indicates how to interpret the response data. Common values include application/json for JSON data.</p>
529
+ * @public
530
+ */
531
+ contentType: string | undefined;
532
+ /**
533
+ * <p>The HTTP status code of the response. A status code of 200 indicates a successful operation. Other status codes indicate various error conditions.</p>
534
+ * @public
535
+ */
536
+ statusCode?: number | undefined;
537
+ /**
538
+ * Streaming output containing command execution events
539
+ * @public
540
+ */
541
+ stream: AsyncIterable<InvokeAgentRuntimeCommandStreamOutput> | undefined;
542
+ }
201
543
  /**
202
544
  * @public
203
545
  */
@@ -749,7 +1091,7 @@ export interface StartBrowserSessionRequest {
749
1091
  */
750
1092
  name?: string | undefined;
751
1093
  /**
752
- * <p>The time in seconds after which the session automatically terminates if there is no activity. The default value is 3600 seconds (1 hour). The minimum allowed value is 60 seconds, and the maximum allowed value is 28800 seconds (8 hours).</p>
1094
+ * <p>The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 3600 seconds (1 hour). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).</p>
753
1095
  * @public
754
1096
  */
755
1097
  sessionTimeoutSeconds?: number | undefined;
@@ -1099,7 +1441,7 @@ export interface StartCodeInterpreterSessionRequest {
1099
1441
  */
1100
1442
  name?: string | undefined;
1101
1443
  /**
1102
- * <p>The time in seconds after which the session automatically terminates if there is no activity. The default value is 900 seconds (15 minutes). The minimum allowed value is 60 seconds, and the maximum allowed value is 28800 seconds (8 hours).</p>
1444
+ * <p>The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 900 seconds (15 minutes). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).</p>
1103
1445
  * @public
1104
1446
  */
1105
1447
  sessionTimeoutSeconds?: number | undefined;
@@ -1189,7 +1531,7 @@ export type UserIdentifier = UserIdentifier.UserIdMember | UserIdentifier.UserTo
1189
1531
  */
1190
1532
  export declare namespace UserIdentifier {
1191
1533
  /**
1192
- * <p>The OAuth2.0 token issued by the user’s identity provider</p>
1534
+ * <p>The OAuth2.0 token issued by the user’s identity provider that was used to generate the workload access token</p>
1193
1535
  * @public
1194
1536
  */
1195
1537
  interface UserTokenMember {
@@ -42,6 +42,9 @@ export declare var CodeInterpreterSessionSummary$: StaticStructureSchema;
42
42
  export declare var CompleteResourceTokenAuthRequest$: StaticStructureSchema;
43
43
  export declare var CompleteResourceTokenAuthResponse$: StaticStructureSchema;
44
44
  export declare var ContentBlock$: StaticStructureSchema;
45
+ export declare var ContentDeltaEvent$: StaticStructureSchema;
46
+ export declare var ContentStartEvent$: StaticStructureSchema;
47
+ export declare var ContentStopEvent$: StaticStructureSchema;
45
48
  export declare var Conversational$: StaticStructureSchema;
46
49
  export declare var CreateEventInput$: StaticStructureSchema;
47
50
  export declare var CreateEventOutput$: StaticStructureSchema;
@@ -80,6 +83,9 @@ export declare var GetWorkloadAccessTokenForUserIdResponse$: StaticStructureSche
80
83
  export declare var GetWorkloadAccessTokenRequest$: StaticStructureSchema;
81
84
  export declare var GetWorkloadAccessTokenResponse$: StaticStructureSchema;
82
85
  export declare var InputContentBlock$: StaticStructureSchema;
86
+ export declare var InvokeAgentRuntimeCommandRequest$: StaticStructureSchema;
87
+ export declare var InvokeAgentRuntimeCommandRequestBody$: StaticStructureSchema;
88
+ export declare var InvokeAgentRuntimeCommandResponse$: StaticStructureSchema;
83
89
  export declare var InvokeAgentRuntimeRequest$: StaticStructureSchema;
84
90
  export declare var InvokeAgentRuntimeResponse$: StaticStructureSchema;
85
91
  export declare var InvokeCodeInterpreterRequest$: StaticStructureSchema;
@@ -110,6 +116,7 @@ export declare var MessageMetadata$: StaticStructureSchema;
110
116
  export declare var ProxyBypass$: StaticStructureSchema;
111
117
  export declare var ProxyConfiguration$: StaticStructureSchema;
112
118
  export declare var ResourceContent$: StaticStructureSchema;
119
+ export declare var ResponseChunk$: StaticStructureSchema;
113
120
  export declare var RetrieveMemoryRecordsInput$: StaticStructureSchema;
114
121
  export declare var RetrieveMemoryRecordsOutput$: StaticStructureSchema;
115
122
  export declare var S3Location$: StaticStructureSchema;
@@ -143,6 +150,7 @@ export declare var Context$: StaticUnionSchema;
143
150
  export declare var EvaluationInput$: StaticUnionSchema;
144
151
  export declare var EvaluationTarget$: StaticUnionSchema;
145
152
  export declare var ExtractionJobMessages$: StaticUnionSchema;
153
+ export declare var InvokeAgentRuntimeCommandStreamOutput$: StaticUnionSchema;
146
154
  export declare var LeftExpression$: StaticUnionSchema;
147
155
  export declare var MemoryContent$: StaticUnionSchema;
148
156
  export declare var MetadataValue$: StaticUnionSchema;
@@ -172,6 +180,7 @@ export declare var GetWorkloadAccessToken$: StaticOperationSchema;
172
180
  export declare var GetWorkloadAccessTokenForJWT$: StaticOperationSchema;
173
181
  export declare var GetWorkloadAccessTokenForUserId$: StaticOperationSchema;
174
182
  export declare var InvokeAgentRuntime$: StaticOperationSchema;
183
+ export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
175
184
  export declare var InvokeCodeInterpreter$: StaticOperationSchema;
176
185
  export declare var ListActors$: StaticOperationSchema;
177
186
  export declare var ListBrowserSessions$: StaticOperationSchema;
@@ -80,6 +80,10 @@ import {
80
80
  InvokeAgentRuntimeCommandInput,
81
81
  InvokeAgentRuntimeCommandOutput,
82
82
  } from "./commands/InvokeAgentRuntimeCommand";
83
+ import {
84
+ InvokeAgentRuntimeCommandCommandInput,
85
+ InvokeAgentRuntimeCommandCommandOutput,
86
+ } from "./commands/InvokeAgentRuntimeCommandCommand";
83
87
  import {
84
88
  InvokeCodeInterpreterCommandInput,
85
89
  InvokeCodeInterpreterCommandOutput,
@@ -396,6 +400,19 @@ export interface BedrockAgentCore {
396
400
  options: __HttpHandlerOptions,
397
401
  cb: (err: any, data?: InvokeAgentRuntimeCommandOutput) => void
398
402
  ): void;
403
+ invokeAgentRuntimeCommand(
404
+ args: InvokeAgentRuntimeCommandCommandInput,
405
+ options?: __HttpHandlerOptions
406
+ ): Promise<InvokeAgentRuntimeCommandCommandOutput>;
407
+ invokeAgentRuntimeCommand(
408
+ args: InvokeAgentRuntimeCommandCommandInput,
409
+ cb: (err: any, data?: InvokeAgentRuntimeCommandCommandOutput) => void
410
+ ): void;
411
+ invokeAgentRuntimeCommand(
412
+ args: InvokeAgentRuntimeCommandCommandInput,
413
+ options: __HttpHandlerOptions,
414
+ cb: (err: any, data?: InvokeAgentRuntimeCommandCommandOutput) => void
415
+ ): void;
399
416
  invokeCodeInterpreter(
400
417
  args: InvokeCodeInterpreterCommandInput,
401
418
  options?: __HttpHandlerOptions