@aws-sdk/client-bedrock-agent-runtime 3.637.0 → 3.638.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/index.js CHANGED
@@ -24,6 +24,7 @@ __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  ActionGroupInvocationInputFilterSensitiveLog: () => ActionGroupInvocationInputFilterSensitiveLog,
26
26
  ActionGroupInvocationOutputFilterSensitiveLog: () => ActionGroupInvocationOutputFilterSensitiveLog,
27
+ ActionInvocationType: () => ActionInvocationType,
27
28
  ApiInvocationInputFilterSensitiveLog: () => ApiInvocationInputFilterSensitiveLog,
28
29
  ApiResultFilterSensitiveLog: () => ApiResultFilterSensitiveLog,
29
30
  AttributionFilterSensitiveLog: () => AttributionFilterSensitiveLog,
@@ -34,6 +35,7 @@ __export(src_exports, {
34
35
  ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
35
36
  ByteContentFileFilterSensitiveLog: () => ByteContentFileFilterSensitiveLog,
36
37
  CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
38
+ ConfirmationState: () => ConfirmationState,
37
39
  ConflictException: () => ConflictException,
38
40
  CreationMode: () => CreationMode,
39
41
  DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
@@ -359,6 +361,11 @@ var ExecutionType = {
359
361
  LAMBDA: "LAMBDA",
360
362
  RETURN_CONTROL: "RETURN_CONTROL"
361
363
  };
364
+ var ActionInvocationType = {
365
+ RESULT: "RESULT",
366
+ USER_CONFIRMATION: "USER_CONFIRMATION",
367
+ USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT"
368
+ };
362
369
  var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
363
370
  /**
364
371
  * @internal
@@ -565,6 +572,10 @@ var SearchType = {
565
572
  HYBRID: "HYBRID",
566
573
  SEMANTIC: "SEMANTIC"
567
574
  };
575
+ var ConfirmationState = {
576
+ CONFIRM: "CONFIRM",
577
+ DENY: "DENY"
578
+ };
568
579
  var ResponseState = {
569
580
  FAILURE: "FAILURE",
570
581
  REPROMPT: "REPROMPT"
@@ -2555,6 +2566,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2555
2566
  paginateRetrieve,
2556
2567
  AccessDeniedException,
2557
2568
  ExecutionType,
2569
+ ActionInvocationType,
2558
2570
  BadGatewayException,
2559
2571
  ConflictException,
2560
2572
  DependencyFailedException,
@@ -2571,6 +2583,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
2571
2583
  FileSourceType,
2572
2584
  FileUseCase,
2573
2585
  SearchType,
2586
+ ConfirmationState,
2574
2587
  ResponseState,
2575
2588
  InvocationResultMember,
2576
2589
  RetrievalResultLocationType,
@@ -16,6 +16,11 @@ export const ExecutionType = {
16
16
  LAMBDA: "LAMBDA",
17
17
  RETURN_CONTROL: "RETURN_CONTROL",
18
18
  };
19
+ export const ActionInvocationType = {
20
+ RESULT: "RESULT",
21
+ USER_CONFIRMATION: "USER_CONFIRMATION",
22
+ USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT",
23
+ };
19
24
  export class BadGatewayException extends __BaseException {
20
25
  constructor(opts) {
21
26
  super({
@@ -182,6 +187,10 @@ export const SearchType = {
182
187
  HYBRID: "HYBRID",
183
188
  SEMANTIC: "SEMANTIC",
184
189
  };
190
+ export const ConfirmationState = {
191
+ CONFIRM: "CONFIRM",
192
+ DENY: "DENY",
193
+ };
185
194
  export const ResponseState = {
186
195
  FAILURE: "FAILURE",
187
196
  REPROMPT: "REPROMPT",
@@ -80,6 +80,7 @@ declare const InvokeAgentCommand_base: {
80
80
  * actionGroup: "STRING_VALUE", // required
81
81
  * httpMethod: "STRING_VALUE",
82
82
  * apiPath: "STRING_VALUE",
83
+ * confirmationState: "CONFIRM" || "DENY",
83
84
  * responseBody: { // ResponseBody
84
85
  * "<keys>": { // ContentBody
85
86
  * body: "STRING_VALUE",
@@ -90,6 +91,7 @@ declare const InvokeAgentCommand_base: {
90
91
  * },
91
92
  * functionResult: { // FunctionResult
92
93
  * actionGroup: "STRING_VALUE", // required
94
+ * confirmationState: "CONFIRM" || "DENY",
93
95
  * function: "STRING_VALUE",
94
96
  * responseBody: {
95
97
  * "<keys>": {
@@ -568,6 +570,7 @@ declare const InvokeAgentCommand_base: {
568
570
  * // },
569
571
  * // },
570
572
  * // },
573
+ * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT",
571
574
  * // },
572
575
  * // functionInvocationInput: { // FunctionInvocationInput
573
576
  * // actionGroup: "STRING_VALUE", // required
@@ -579,6 +582,7 @@ declare const InvokeAgentCommand_base: {
579
582
  * // },
580
583
  * // ],
581
584
  * // function: "STRING_VALUE",
585
+ * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT",
582
586
  * // },
583
587
  * // },
584
588
  * // ],
@@ -114,6 +114,19 @@ export interface ActionGroupInvocationOutput {
114
114
  */
115
115
  text?: string;
116
116
  }
117
+ /**
118
+ * @public
119
+ * @enum
120
+ */
121
+ export declare const ActionInvocationType: {
122
+ readonly RESULT: "RESULT";
123
+ readonly USER_CONFIRMATION: "USER_CONFIRMATION";
124
+ readonly USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT";
125
+ };
126
+ /**
127
+ * @public
128
+ */
129
+ export type ActionInvocationType = (typeof ActionInvocationType)[keyof typeof ActionInvocationType];
117
130
  /**
118
131
  * <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
119
132
  * @public
@@ -808,6 +821,18 @@ export declare const SearchType: {
808
821
  * @public
809
822
  */
810
823
  export type SearchType = (typeof SearchType)[keyof typeof SearchType];
824
+ /**
825
+ * @public
826
+ * @enum
827
+ */
828
+ export declare const ConfirmationState: {
829
+ readonly CONFIRM: "CONFIRM";
830
+ readonly DENY: "DENY";
831
+ };
832
+ /**
833
+ * @public
834
+ */
835
+ export type ConfirmationState = (typeof ConfirmationState)[keyof typeof ConfirmationState];
811
836
  /**
812
837
  * <p>Contains the body of the API response.</p>
813
838
  * <p>This data type is used in the following API operations:</p>
@@ -865,6 +890,11 @@ export interface ApiResult {
865
890
  * @public
866
891
  */
867
892
  apiPath?: string;
893
+ /**
894
+ * <p>Controls the API operations or functions to invoke based on the user confirmation.</p>
895
+ * @public
896
+ */
897
+ confirmationState?: ConfirmationState;
868
898
  /**
869
899
  * <p>The response body from the API operation. The key of the object is the content type (currently, only <code>TEXT</code> is supported). The response may be returned directly or from the Lambda function.</p>
870
900
  * @public
@@ -898,6 +928,11 @@ export interface FunctionResult {
898
928
  * @public
899
929
  */
900
930
  actionGroup: string | undefined;
931
+ /**
932
+ * <p>Contains the user confirmation information about the function that was called.</p>
933
+ * @public
934
+ */
935
+ confirmationState?: ConfirmationState;
901
936
  /**
902
937
  * <p>The name of the function that was called.</p>
903
938
  * @public
@@ -1416,6 +1451,11 @@ export interface ApiInvocationInput {
1416
1451
  * @public
1417
1452
  */
1418
1453
  requestBody?: ApiRequestBody;
1454
+ /**
1455
+ * <p>Contains information about the API operation to invoke.</p>
1456
+ * @public
1457
+ */
1458
+ actionInvocationType?: ActionInvocationType;
1419
1459
  }
1420
1460
  /**
1421
1461
  * <p>Contains information about a parameter of the function.</p>
@@ -1472,6 +1512,11 @@ export interface FunctionInvocationInput {
1472
1512
  * @public
1473
1513
  */
1474
1514
  function?: string;
1515
+ /**
1516
+ * <p>Contains information about the function to invoke,</p>
1517
+ * @public
1518
+ */
1519
+ actionInvocationType?: ActionInvocationType;
1475
1520
  }
1476
1521
  /**
1477
1522
  * <p>Contains details about the API operation or function that the agent predicts should be called. </p>
@@ -34,6 +34,13 @@ export interface ActionGroupInvocationInput {
34
34
  export interface ActionGroupInvocationOutput {
35
35
  text?: string;
36
36
  }
37
+ export declare const ActionInvocationType: {
38
+ readonly RESULT: "RESULT";
39
+ readonly USER_CONFIRMATION: "USER_CONFIRMATION";
40
+ readonly USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT";
41
+ };
42
+ export type ActionInvocationType =
43
+ (typeof ActionInvocationType)[keyof typeof ActionInvocationType];
37
44
  export declare class BadGatewayException extends __BaseException {
38
45
  readonly name: "BadGatewayException";
39
46
  readonly $fault: "server";
@@ -397,6 +404,12 @@ export declare const SearchType: {
397
404
  readonly SEMANTIC: "SEMANTIC";
398
405
  };
399
406
  export type SearchType = (typeof SearchType)[keyof typeof SearchType];
407
+ export declare const ConfirmationState: {
408
+ readonly CONFIRM: "CONFIRM";
409
+ readonly DENY: "DENY";
410
+ };
411
+ export type ConfirmationState =
412
+ (typeof ConfirmationState)[keyof typeof ConfirmationState];
400
413
  export interface ContentBody {
401
414
  body?: string;
402
415
  }
@@ -409,12 +422,14 @@ export interface ApiResult {
409
422
  actionGroup: string | undefined;
410
423
  httpMethod?: string;
411
424
  apiPath?: string;
425
+ confirmationState?: ConfirmationState;
412
426
  responseBody?: Record<string, ContentBody>;
413
427
  httpStatusCode?: number;
414
428
  responseState?: ResponseState;
415
429
  }
416
430
  export interface FunctionResult {
417
431
  actionGroup: string | undefined;
432
+ confirmationState?: ConfirmationState;
418
433
  function?: string;
419
434
  responseBody?: Record<string, ContentBody>;
420
435
  responseState?: ResponseState;
@@ -533,6 +548,7 @@ export interface ApiInvocationInput {
533
548
  apiPath?: string;
534
549
  parameters?: ApiParameter[];
535
550
  requestBody?: ApiRequestBody;
551
+ actionInvocationType?: ActionInvocationType;
536
552
  }
537
553
  export interface FunctionParameter {
538
554
  name?: string;
@@ -543,6 +559,7 @@ export interface FunctionInvocationInput {
543
559
  actionGroup: string | undefined;
544
560
  parameters?: FunctionParameter[];
545
561
  function?: string;
562
+ actionInvocationType?: ActionInvocationType;
546
563
  }
547
564
  export type InvocationInputMember =
548
565
  | InvocationInputMember.ApiInvocationInputMember
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.637.0",
4
+ "version": "3.638.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",