@aws-sdk/client-bedrock-agent-runtime 3.554.0 → 3.560.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 +99 -1
- package/dist-es/models/models_0.js +66 -0
- package/dist-es/protocols/Aws_restJson1.js +12 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +79 -4
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +1 -1
- package/dist-types/commands/RetrieveCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +466 -8
- package/dist-types/ts3.4/models/models_0.d.ts +156 -1
- package/package.json +4 -4
|
@@ -22,6 +22,7 @@ export interface ActionGroupInvocationInput {
|
|
|
22
22
|
apiPath?: string;
|
|
23
23
|
parameters?: Parameter[];
|
|
24
24
|
requestBody?: RequestBody;
|
|
25
|
+
function?: string;
|
|
25
26
|
}
|
|
26
27
|
export interface ActionGroupInvocationOutput {
|
|
27
28
|
text?: string;
|
|
@@ -54,9 +55,60 @@ export declare class InternalServerException extends __BaseException {
|
|
|
54
55
|
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
55
56
|
);
|
|
56
57
|
}
|
|
58
|
+
export interface ContentBody {
|
|
59
|
+
body?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare const ResponseState: {
|
|
62
|
+
readonly FAILURE: "FAILURE";
|
|
63
|
+
readonly REPROMPT: "REPROMPT";
|
|
64
|
+
};
|
|
65
|
+
export type ResponseState = (typeof ResponseState)[keyof typeof ResponseState];
|
|
66
|
+
export interface ApiResult {
|
|
67
|
+
actionGroup: string | undefined;
|
|
68
|
+
httpMethod?: string;
|
|
69
|
+
apiPath?: string;
|
|
70
|
+
responseBody?: Record<string, ContentBody>;
|
|
71
|
+
httpStatusCode?: number;
|
|
72
|
+
responseState?: ResponseState;
|
|
73
|
+
}
|
|
74
|
+
export interface FunctionResult {
|
|
75
|
+
actionGroup: string | undefined;
|
|
76
|
+
function?: string;
|
|
77
|
+
responseBody?: Record<string, ContentBody>;
|
|
78
|
+
responseState?: ResponseState;
|
|
79
|
+
}
|
|
80
|
+
export type InvocationResultMember =
|
|
81
|
+
| InvocationResultMember.ApiResultMember
|
|
82
|
+
| InvocationResultMember.FunctionResultMember
|
|
83
|
+
| InvocationResultMember.$UnknownMember;
|
|
84
|
+
export declare namespace InvocationResultMember {
|
|
85
|
+
interface ApiResultMember {
|
|
86
|
+
apiResult: ApiResult;
|
|
87
|
+
functionResult?: never;
|
|
88
|
+
$unknown?: never;
|
|
89
|
+
}
|
|
90
|
+
interface FunctionResultMember {
|
|
91
|
+
apiResult?: never;
|
|
92
|
+
functionResult: FunctionResult;
|
|
93
|
+
$unknown?: never;
|
|
94
|
+
}
|
|
95
|
+
interface $UnknownMember {
|
|
96
|
+
apiResult?: never;
|
|
97
|
+
functionResult?: never;
|
|
98
|
+
$unknown: [string, any];
|
|
99
|
+
}
|
|
100
|
+
interface Visitor<T> {
|
|
101
|
+
apiResult: (value: ApiResult) => T;
|
|
102
|
+
functionResult: (value: FunctionResult) => T;
|
|
103
|
+
_: (name: string, value: any) => T;
|
|
104
|
+
}
|
|
105
|
+
const visit: <T>(value: InvocationResultMember, visitor: Visitor<T>) => T;
|
|
106
|
+
}
|
|
57
107
|
export interface SessionState {
|
|
58
108
|
sessionAttributes?: Record<string, string>;
|
|
59
109
|
promptSessionAttributes?: Record<string, string>;
|
|
110
|
+
returnControlInvocationResults?: InvocationResultMember[];
|
|
111
|
+
invocationId?: string;
|
|
60
112
|
}
|
|
61
113
|
export interface InvokeAgentRequest {
|
|
62
114
|
sessionState?: SessionState;
|
|
@@ -65,7 +117,7 @@ export interface InvokeAgentRequest {
|
|
|
65
117
|
sessionId: string | undefined;
|
|
66
118
|
endSession?: boolean;
|
|
67
119
|
enableTrace?: boolean;
|
|
68
|
-
inputText
|
|
120
|
+
inputText?: string;
|
|
69
121
|
}
|
|
70
122
|
export interface Span {
|
|
71
123
|
start?: number;
|
|
@@ -116,6 +168,65 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
116
168
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
117
169
|
);
|
|
118
170
|
}
|
|
171
|
+
export interface ApiParameter {
|
|
172
|
+
name?: string;
|
|
173
|
+
type?: string;
|
|
174
|
+
value?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface PropertyParameters {
|
|
177
|
+
properties?: Parameter[];
|
|
178
|
+
}
|
|
179
|
+
export interface ApiRequestBody {
|
|
180
|
+
content?: Record<string, PropertyParameters>;
|
|
181
|
+
}
|
|
182
|
+
export interface ApiInvocationInput {
|
|
183
|
+
actionGroup: string | undefined;
|
|
184
|
+
httpMethod?: string;
|
|
185
|
+
apiPath?: string;
|
|
186
|
+
parameters?: ApiParameter[];
|
|
187
|
+
requestBody?: ApiRequestBody;
|
|
188
|
+
}
|
|
189
|
+
export interface FunctionParameter {
|
|
190
|
+
name?: string;
|
|
191
|
+
type?: string;
|
|
192
|
+
value?: string;
|
|
193
|
+
}
|
|
194
|
+
export interface FunctionInvocationInput {
|
|
195
|
+
actionGroup: string | undefined;
|
|
196
|
+
parameters?: FunctionParameter[];
|
|
197
|
+
function?: string;
|
|
198
|
+
}
|
|
199
|
+
export type InvocationInputMember =
|
|
200
|
+
| InvocationInputMember.ApiInvocationInputMember
|
|
201
|
+
| InvocationInputMember.FunctionInvocationInputMember
|
|
202
|
+
| InvocationInputMember.$UnknownMember;
|
|
203
|
+
export declare namespace InvocationInputMember {
|
|
204
|
+
interface ApiInvocationInputMember {
|
|
205
|
+
apiInvocationInput: ApiInvocationInput;
|
|
206
|
+
functionInvocationInput?: never;
|
|
207
|
+
$unknown?: never;
|
|
208
|
+
}
|
|
209
|
+
interface FunctionInvocationInputMember {
|
|
210
|
+
apiInvocationInput?: never;
|
|
211
|
+
functionInvocationInput: FunctionInvocationInput;
|
|
212
|
+
$unknown?: never;
|
|
213
|
+
}
|
|
214
|
+
interface $UnknownMember {
|
|
215
|
+
apiInvocationInput?: never;
|
|
216
|
+
functionInvocationInput?: never;
|
|
217
|
+
$unknown: [string, any];
|
|
218
|
+
}
|
|
219
|
+
interface Visitor<T> {
|
|
220
|
+
apiInvocationInput: (value: ApiInvocationInput) => T;
|
|
221
|
+
functionInvocationInput: (value: FunctionInvocationInput) => T;
|
|
222
|
+
_: (name: string, value: any) => T;
|
|
223
|
+
}
|
|
224
|
+
const visit: <T>(value: InvocationInputMember, visitor: Visitor<T>) => T;
|
|
225
|
+
}
|
|
226
|
+
export interface ReturnControlPayload {
|
|
227
|
+
invocationInputs?: InvocationInputMember[];
|
|
228
|
+
invocationId?: string;
|
|
229
|
+
}
|
|
119
230
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
120
231
|
readonly name: "ServiceQuotaExceededException";
|
|
121
232
|
readonly $fault: "client";
|
|
@@ -390,6 +501,7 @@ export interface TracePart {
|
|
|
390
501
|
agentId?: string;
|
|
391
502
|
agentAliasId?: string;
|
|
392
503
|
sessionId?: string;
|
|
504
|
+
agentVersion?: string;
|
|
393
505
|
trace?: Trace;
|
|
394
506
|
}
|
|
395
507
|
export declare class ValidationException extends __BaseException {
|
|
@@ -407,6 +519,7 @@ export type ResponseStream =
|
|
|
407
519
|
| ResponseStream.DependencyFailedExceptionMember
|
|
408
520
|
| ResponseStream.InternalServerExceptionMember
|
|
409
521
|
| ResponseStream.ResourceNotFoundExceptionMember
|
|
522
|
+
| ResponseStream.ReturnControlMember
|
|
410
523
|
| ResponseStream.ServiceQuotaExceededExceptionMember
|
|
411
524
|
| ResponseStream.ThrottlingExceptionMember
|
|
412
525
|
| ResponseStream.TraceMember
|
|
@@ -416,6 +529,7 @@ export declare namespace ResponseStream {
|
|
|
416
529
|
interface ChunkMember {
|
|
417
530
|
chunk: PayloadPart;
|
|
418
531
|
trace?: never;
|
|
532
|
+
returnControl?: never;
|
|
419
533
|
internalServerException?: never;
|
|
420
534
|
validationException?: never;
|
|
421
535
|
resourceNotFoundException?: never;
|
|
@@ -430,6 +544,22 @@ export declare namespace ResponseStream {
|
|
|
430
544
|
interface TraceMember {
|
|
431
545
|
chunk?: never;
|
|
432
546
|
trace: TracePart;
|
|
547
|
+
returnControl?: never;
|
|
548
|
+
internalServerException?: never;
|
|
549
|
+
validationException?: never;
|
|
550
|
+
resourceNotFoundException?: never;
|
|
551
|
+
serviceQuotaExceededException?: never;
|
|
552
|
+
throttlingException?: never;
|
|
553
|
+
accessDeniedException?: never;
|
|
554
|
+
conflictException?: never;
|
|
555
|
+
dependencyFailedException?: never;
|
|
556
|
+
badGatewayException?: never;
|
|
557
|
+
$unknown?: never;
|
|
558
|
+
}
|
|
559
|
+
interface ReturnControlMember {
|
|
560
|
+
chunk?: never;
|
|
561
|
+
trace?: never;
|
|
562
|
+
returnControl: ReturnControlPayload;
|
|
433
563
|
internalServerException?: never;
|
|
434
564
|
validationException?: never;
|
|
435
565
|
resourceNotFoundException?: never;
|
|
@@ -444,6 +574,7 @@ export declare namespace ResponseStream {
|
|
|
444
574
|
interface InternalServerExceptionMember {
|
|
445
575
|
chunk?: never;
|
|
446
576
|
trace?: never;
|
|
577
|
+
returnControl?: never;
|
|
447
578
|
internalServerException: InternalServerException;
|
|
448
579
|
validationException?: never;
|
|
449
580
|
resourceNotFoundException?: never;
|
|
@@ -458,6 +589,7 @@ export declare namespace ResponseStream {
|
|
|
458
589
|
interface ValidationExceptionMember {
|
|
459
590
|
chunk?: never;
|
|
460
591
|
trace?: never;
|
|
592
|
+
returnControl?: never;
|
|
461
593
|
internalServerException?: never;
|
|
462
594
|
validationException: ValidationException;
|
|
463
595
|
resourceNotFoundException?: never;
|
|
@@ -472,6 +604,7 @@ export declare namespace ResponseStream {
|
|
|
472
604
|
interface ResourceNotFoundExceptionMember {
|
|
473
605
|
chunk?: never;
|
|
474
606
|
trace?: never;
|
|
607
|
+
returnControl?: never;
|
|
475
608
|
internalServerException?: never;
|
|
476
609
|
validationException?: never;
|
|
477
610
|
resourceNotFoundException: ResourceNotFoundException;
|
|
@@ -486,6 +619,7 @@ export declare namespace ResponseStream {
|
|
|
486
619
|
interface ServiceQuotaExceededExceptionMember {
|
|
487
620
|
chunk?: never;
|
|
488
621
|
trace?: never;
|
|
622
|
+
returnControl?: never;
|
|
489
623
|
internalServerException?: never;
|
|
490
624
|
validationException?: never;
|
|
491
625
|
resourceNotFoundException?: never;
|
|
@@ -500,6 +634,7 @@ export declare namespace ResponseStream {
|
|
|
500
634
|
interface ThrottlingExceptionMember {
|
|
501
635
|
chunk?: never;
|
|
502
636
|
trace?: never;
|
|
637
|
+
returnControl?: never;
|
|
503
638
|
internalServerException?: never;
|
|
504
639
|
validationException?: never;
|
|
505
640
|
resourceNotFoundException?: never;
|
|
@@ -514,6 +649,7 @@ export declare namespace ResponseStream {
|
|
|
514
649
|
interface AccessDeniedExceptionMember {
|
|
515
650
|
chunk?: never;
|
|
516
651
|
trace?: never;
|
|
652
|
+
returnControl?: never;
|
|
517
653
|
internalServerException?: never;
|
|
518
654
|
validationException?: never;
|
|
519
655
|
resourceNotFoundException?: never;
|
|
@@ -528,6 +664,7 @@ export declare namespace ResponseStream {
|
|
|
528
664
|
interface ConflictExceptionMember {
|
|
529
665
|
chunk?: never;
|
|
530
666
|
trace?: never;
|
|
667
|
+
returnControl?: never;
|
|
531
668
|
internalServerException?: never;
|
|
532
669
|
validationException?: never;
|
|
533
670
|
resourceNotFoundException?: never;
|
|
@@ -542,6 +679,7 @@ export declare namespace ResponseStream {
|
|
|
542
679
|
interface DependencyFailedExceptionMember {
|
|
543
680
|
chunk?: never;
|
|
544
681
|
trace?: never;
|
|
682
|
+
returnControl?: never;
|
|
545
683
|
internalServerException?: never;
|
|
546
684
|
validationException?: never;
|
|
547
685
|
resourceNotFoundException?: never;
|
|
@@ -556,6 +694,7 @@ export declare namespace ResponseStream {
|
|
|
556
694
|
interface BadGatewayExceptionMember {
|
|
557
695
|
chunk?: never;
|
|
558
696
|
trace?: never;
|
|
697
|
+
returnControl?: never;
|
|
559
698
|
internalServerException?: never;
|
|
560
699
|
validationException?: never;
|
|
561
700
|
resourceNotFoundException?: never;
|
|
@@ -570,6 +709,7 @@ export declare namespace ResponseStream {
|
|
|
570
709
|
interface $UnknownMember {
|
|
571
710
|
chunk?: never;
|
|
572
711
|
trace?: never;
|
|
712
|
+
returnControl?: never;
|
|
573
713
|
internalServerException?: never;
|
|
574
714
|
validationException?: never;
|
|
575
715
|
resourceNotFoundException?: never;
|
|
@@ -584,6 +724,7 @@ export declare namespace ResponseStream {
|
|
|
584
724
|
interface Visitor<T> {
|
|
585
725
|
chunk: (value: PayloadPart) => T;
|
|
586
726
|
trace: (value: TracePart) => T;
|
|
727
|
+
returnControl: (value: ReturnControlPayload) => T;
|
|
587
728
|
internalServerException: (value: InternalServerException) => T;
|
|
588
729
|
validationException: (value: ValidationException) => T;
|
|
589
730
|
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
@@ -883,6 +1024,11 @@ export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
|
883
1024
|
export declare const ActionGroupInvocationOutputFilterSensitiveLog: (
|
|
884
1025
|
obj: ActionGroupInvocationOutput
|
|
885
1026
|
) => any;
|
|
1027
|
+
export declare const ApiResultFilterSensitiveLog: (obj: ApiResult) => any;
|
|
1028
|
+
export declare const InvocationResultMemberFilterSensitiveLog: (
|
|
1029
|
+
obj: InvocationResultMember
|
|
1030
|
+
) => any;
|
|
1031
|
+
export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
|
|
886
1032
|
export declare const InvokeAgentRequestFilterSensitiveLog: (
|
|
887
1033
|
obj: InvokeAgentRequest
|
|
888
1034
|
) => any;
|
|
@@ -904,6 +1050,15 @@ export declare const RetrievedReferenceFilterSensitiveLog: (
|
|
|
904
1050
|
export declare const CitationFilterSensitiveLog: (obj: Citation) => any;
|
|
905
1051
|
export declare const AttributionFilterSensitiveLog: (obj: Attribution) => any;
|
|
906
1052
|
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
1053
|
+
export declare const ApiInvocationInputFilterSensitiveLog: (
|
|
1054
|
+
obj: ApiInvocationInput
|
|
1055
|
+
) => any;
|
|
1056
|
+
export declare const InvocationInputMemberFilterSensitiveLog: (
|
|
1057
|
+
obj: InvocationInputMember
|
|
1058
|
+
) => any;
|
|
1059
|
+
export declare const ReturnControlPayloadFilterSensitiveLog: (
|
|
1060
|
+
obj: ReturnControlPayload
|
|
1061
|
+
) => any;
|
|
907
1062
|
export declare const FailureTraceFilterSensitiveLog: (obj: FailureTrace) => any;
|
|
908
1063
|
export declare const KnowledgeBaseLookupInputFilterSensitiveLog: (
|
|
909
1064
|
obj: KnowledgeBaseLookupInput
|
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.
|
|
4
|
+
"version": "3.560.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.556.0",
|
|
24
|
+
"@aws-sdk/core": "3.556.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.556.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.535.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.535.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.535.0",
|