cdk-lambda-subminute 2.0.436 → 2.0.437
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/.jsii +3 -3
- package/lib/cdk-lambda-subminute.js +3 -3
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +98 -52
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +197 -51
- package/node_modules/aws-sdk/apis/metadata.json +3 -0
- package/node_modules/aws-sdk/apis/payment-cryptography-2021-09-14.min.json +219 -189
- package/node_modules/aws-sdk/apis/payment-cryptography-2021-09-14.waiters2.json +5 -0
- package/node_modules/aws-sdk/apis/route53profiles-2018-05-10.examples.json +5 -0
- package/node_modules/aws-sdk/apis/route53profiles-2018-05-10.min.json +598 -0
- package/node_modules/aws-sdk/apis/route53profiles-2018-05-10.paginators.json +22 -0
- package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +87 -63
- package/node_modules/aws-sdk/apis/servicediscovery-2017-03-14.examples.json +86 -0
- package/node_modules/aws-sdk/apis/transfer-2018-11-05.min.json +32 -3
- package/node_modules/aws-sdk/clients/all.d.ts +1 -0
- package/node_modules/aws-sdk/clients/all.js +2 -1
- package/node_modules/aws-sdk/clients/bedrockagent.d.ts +56 -0
- package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +187 -4
- package/node_modules/aws-sdk/clients/paymentcryptography.d.ts +175 -147
- package/node_modules/aws-sdk/clients/paymentcryptography.js +1 -0
- package/node_modules/aws-sdk/clients/redshiftserverless.d.ts +5 -5
- package/node_modules/aws-sdk/clients/route53profiles.d.ts +614 -0
- package/node_modules/aws-sdk/clients/route53profiles.js +18 -0
- package/node_modules/aws-sdk/clients/sagemaker.d.ts +17 -10
- package/node_modules/aws-sdk/clients/servicediscovery.d.ts +4 -4
- package/node_modules/aws-sdk/clients/transfer.d.ts +44 -5
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +291 -247
- package/node_modules/aws-sdk/dist/aws-sdk.js +6 -3
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +6 -6
- package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +2 -0
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +1 -1
- package/package.json +2 -2
@@ -13,11 +13,11 @@ declare class BedrockAgentRuntime extends Service {
|
|
13
13
|
constructor(options?: BedrockAgentRuntime.Types.ClientConfiguration)
|
14
14
|
config: Config & BedrockAgentRuntime.Types.ClientConfiguration;
|
15
15
|
/**
|
16
|
-
* Sends a prompt for the agent to process and respond to. The CLI doesn't support InvokeAgent. To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true.
|
16
|
+
* Sends a prompt for the agent to process and respond to. Use return control event type for function calling. The CLI doesn't support InvokeAgent. To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or parameters returned from the action group. Use return control event type for function calling. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. Errors are also surfaced in the response.
|
17
17
|
*/
|
18
18
|
invokeAgent(params: BedrockAgentRuntime.Types.InvokeAgentRequest, callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
|
19
19
|
/**
|
20
|
-
* Sends a prompt for the agent to process and respond to. The CLI doesn't support InvokeAgent. To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true.
|
20
|
+
* Sends a prompt for the agent to process and respond to. Use return control event type for function calling. The CLI doesn't support InvokeAgent. To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or parameters returned from the action group. Use return control event type for function calling. The response is returned in the bytes field of the chunk object. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. Errors are also surfaced in the response.
|
21
21
|
*/
|
22
22
|
invokeAgent(callback?: (err: AWSError, data: BedrockAgentRuntime.Types.InvokeAgentResponse) => void): Request<BedrockAgentRuntime.Types.InvokeAgentResponse, AWSError>;
|
23
23
|
/**
|
@@ -50,6 +50,10 @@ declare namespace BedrockAgentRuntime {
|
|
50
50
|
* The path to the API to call, based off the action group.
|
51
51
|
*/
|
52
52
|
apiPath?: ApiPath;
|
53
|
+
/**
|
54
|
+
* The function in the action group to call.
|
55
|
+
*/
|
56
|
+
function?: Function;
|
53
57
|
/**
|
54
58
|
* The parameters in the Lambda input event.
|
55
59
|
*/
|
@@ -73,7 +77,78 @@ declare namespace BedrockAgentRuntime {
|
|
73
77
|
export type ActionGroupOutputString = string;
|
74
78
|
export type AgentAliasId = string;
|
75
79
|
export type AgentId = string;
|
80
|
+
export type AgentVersion = string;
|
81
|
+
export type ApiContentMap = {[key: string]: PropertyParameters};
|
82
|
+
export interface ApiInvocationInput {
|
83
|
+
/**
|
84
|
+
* The action group that the API operation belongs to.
|
85
|
+
*/
|
86
|
+
actionGroup: String;
|
87
|
+
/**
|
88
|
+
* The path to the API operation.
|
89
|
+
*/
|
90
|
+
apiPath?: ApiPath;
|
91
|
+
/**
|
92
|
+
* The HTTP method of the API operation.
|
93
|
+
*/
|
94
|
+
httpMethod?: String;
|
95
|
+
/**
|
96
|
+
* The parameters to provide for the API request, as the agent elicited from the user.
|
97
|
+
*/
|
98
|
+
parameters?: ApiParameters;
|
99
|
+
/**
|
100
|
+
* The request body to provide for the API request, as the agent elicited from the user.
|
101
|
+
*/
|
102
|
+
requestBody?: ApiRequestBody;
|
103
|
+
}
|
104
|
+
export interface ApiParameter {
|
105
|
+
/**
|
106
|
+
* The name of the parameter.
|
107
|
+
*/
|
108
|
+
name?: String;
|
109
|
+
/**
|
110
|
+
* The data type for the parameter.
|
111
|
+
*/
|
112
|
+
type?: String;
|
113
|
+
/**
|
114
|
+
* The value of the parameter.
|
115
|
+
*/
|
116
|
+
value?: String;
|
117
|
+
}
|
118
|
+
export type ApiParameters = ApiParameter[];
|
76
119
|
export type ApiPath = string;
|
120
|
+
export interface ApiRequestBody {
|
121
|
+
/**
|
122
|
+
* The content of the request body. The key of the object in this field is a media type defining the format of the request body.
|
123
|
+
*/
|
124
|
+
content?: ApiContentMap;
|
125
|
+
}
|
126
|
+
export interface ApiResult {
|
127
|
+
/**
|
128
|
+
* The action group that the API operation belongs to.
|
129
|
+
*/
|
130
|
+
actionGroup: String;
|
131
|
+
/**
|
132
|
+
* The path to the API operation.
|
133
|
+
*/
|
134
|
+
apiPath?: ApiPath;
|
135
|
+
/**
|
136
|
+
* The HTTP method for the API operation.
|
137
|
+
*/
|
138
|
+
httpMethod?: String;
|
139
|
+
/**
|
140
|
+
* http status code from API execution response (for example: 200, 400, 500).
|
141
|
+
*/
|
142
|
+
httpStatusCode?: Integer;
|
143
|
+
/**
|
144
|
+
* The response body from the API operation. The key of the object is the content type. The response may be returned directly or from the Lambda function.
|
145
|
+
*/
|
146
|
+
responseBody?: ResponseBody;
|
147
|
+
/**
|
148
|
+
* Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt
|
149
|
+
*/
|
150
|
+
responseState?: ResponseState;
|
151
|
+
}
|
77
152
|
export interface Attribution {
|
78
153
|
/**
|
79
154
|
* A list of citations and related information for a part of an agent response.
|
@@ -103,6 +178,12 @@ declare namespace BedrockAgentRuntime {
|
|
103
178
|
export interface ConflictException {
|
104
179
|
message?: NonBlankString;
|
105
180
|
}
|
181
|
+
export interface ContentBody {
|
182
|
+
/**
|
183
|
+
* The body of the API response.
|
184
|
+
*/
|
185
|
+
body?: String;
|
186
|
+
}
|
106
187
|
export type ContentMap = {[key: string]: Parameters};
|
107
188
|
export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
|
108
189
|
export interface DependencyFailedException {
|
@@ -144,6 +225,54 @@ declare namespace BedrockAgentRuntime {
|
|
144
225
|
text?: FinalResponseString;
|
145
226
|
}
|
146
227
|
export type FinalResponseString = string;
|
228
|
+
export type Function = string;
|
229
|
+
export interface FunctionInvocationInput {
|
230
|
+
/**
|
231
|
+
* The action group that the function belongs to.
|
232
|
+
*/
|
233
|
+
actionGroup: String;
|
234
|
+
/**
|
235
|
+
* The name of the function.
|
236
|
+
*/
|
237
|
+
function?: String;
|
238
|
+
/**
|
239
|
+
* A list of parameters of the function.
|
240
|
+
*/
|
241
|
+
parameters?: FunctionParameters;
|
242
|
+
}
|
243
|
+
export interface FunctionParameter {
|
244
|
+
/**
|
245
|
+
* The name of the parameter.
|
246
|
+
*/
|
247
|
+
name?: String;
|
248
|
+
/**
|
249
|
+
* The data type of the parameter.
|
250
|
+
*/
|
251
|
+
type?: String;
|
252
|
+
/**
|
253
|
+
* The value of the parameter.
|
254
|
+
*/
|
255
|
+
value?: String;
|
256
|
+
}
|
257
|
+
export type FunctionParameters = FunctionParameter[];
|
258
|
+
export interface FunctionResult {
|
259
|
+
/**
|
260
|
+
* The action group that the function belongs to.
|
261
|
+
*/
|
262
|
+
actionGroup: String;
|
263
|
+
/**
|
264
|
+
* The name of the function that was called.
|
265
|
+
*/
|
266
|
+
function?: String;
|
267
|
+
/**
|
268
|
+
* The response from the function call using the parameters. The response may be returned directly or from the Lambda function.
|
269
|
+
*/
|
270
|
+
responseBody?: ResponseBody;
|
271
|
+
/**
|
272
|
+
* Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt
|
273
|
+
*/
|
274
|
+
responseState?: ResponseState;
|
275
|
+
}
|
147
276
|
export interface GeneratedResponsePart {
|
148
277
|
/**
|
149
278
|
* Contains metadata about a textual part of the generated response that is accompanied by a citation.
|
@@ -179,6 +308,7 @@ declare namespace BedrockAgentRuntime {
|
|
179
308
|
topP?: TopP;
|
180
309
|
}
|
181
310
|
export type InputText = string;
|
311
|
+
export type Integer = number;
|
182
312
|
export interface InternalServerException {
|
183
313
|
message?: NonBlankString;
|
184
314
|
}
|
@@ -200,6 +330,27 @@ declare namespace BedrockAgentRuntime {
|
|
200
330
|
*/
|
201
331
|
traceId?: TraceId;
|
202
332
|
}
|
333
|
+
export interface InvocationInputMember {
|
334
|
+
/**
|
335
|
+
* Contains information about the API operation that the agent predicts should be called.
|
336
|
+
*/
|
337
|
+
apiInvocationInput?: ApiInvocationInput;
|
338
|
+
/**
|
339
|
+
* Contains information about the function that the agent predicts should be called.
|
340
|
+
*/
|
341
|
+
functionInvocationInput?: FunctionInvocationInput;
|
342
|
+
}
|
343
|
+
export type InvocationInputs = InvocationInputMember[];
|
344
|
+
export interface InvocationResultMember {
|
345
|
+
/**
|
346
|
+
* The result from the API response from the action group invocation.
|
347
|
+
*/
|
348
|
+
apiResult?: ApiResult;
|
349
|
+
/**
|
350
|
+
* The result from the function from the action group invocation.
|
351
|
+
*/
|
352
|
+
functionResult?: FunctionResult;
|
353
|
+
}
|
203
354
|
export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|string;
|
204
355
|
export interface InvokeAgentRequest {
|
205
356
|
/**
|
@@ -221,7 +372,7 @@ declare namespace BedrockAgentRuntime {
|
|
221
372
|
/**
|
222
373
|
* The prompt text to send the agent.
|
223
374
|
*/
|
224
|
-
inputText
|
375
|
+
inputText?: InputText;
|
225
376
|
/**
|
226
377
|
* The unique identifier of the session. Use the same value across requests to continue the same conversation.
|
227
378
|
*/
|
@@ -423,6 +574,7 @@ declare namespace BedrockAgentRuntime {
|
|
423
574
|
*/
|
424
575
|
value?: String;
|
425
576
|
}
|
577
|
+
export type ParameterList = Parameter[];
|
426
578
|
export type Parameters = Parameter[];
|
427
579
|
export type PartBody = Buffer|Uint8Array|Blob|string;
|
428
580
|
export interface PayloadPart {
|
@@ -500,6 +652,12 @@ declare namespace BedrockAgentRuntime {
|
|
500
652
|
}
|
501
653
|
export type PromptText = string;
|
502
654
|
export type PromptType = "PRE_PROCESSING"|"ORCHESTRATION"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"POST_PROCESSING"|string;
|
655
|
+
export interface PropertyParameters {
|
656
|
+
/**
|
657
|
+
* A list of parameters in the request body.
|
658
|
+
*/
|
659
|
+
properties?: ParameterList;
|
660
|
+
}
|
503
661
|
export interface Rationale {
|
504
662
|
/**
|
505
663
|
* The reasoning or thought process of the agent, based on the input.
|
@@ -530,7 +688,9 @@ declare namespace BedrockAgentRuntime {
|
|
530
688
|
export interface ResourceNotFoundException {
|
531
689
|
message?: NonBlankString;
|
532
690
|
}
|
533
|
-
export type
|
691
|
+
export type ResponseBody = {[key: string]: ContentBody};
|
692
|
+
export type ResponseState = "FAILURE"|"REPROMPT"|string;
|
693
|
+
export type ResponseStream = EventStream<{accessDeniedException?:AccessDeniedException,badGatewayException?:BadGatewayException,chunk?:PayloadPart,conflictException?:ConflictException,dependencyFailedException?:DependencyFailedException,internalServerException?:InternalServerException,resourceNotFoundException?:ResourceNotFoundException,returnControl?:ReturnControlPayload,serviceQuotaExceededException?:ServiceQuotaExceededException,throttlingException?:ThrottlingException,trace?:TracePart,validationException?:ValidationException}>;
|
534
694
|
export interface RetrievalFilter {
|
535
695
|
/**
|
536
696
|
* Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
|
@@ -710,6 +870,17 @@ declare namespace BedrockAgentRuntime {
|
|
710
870
|
metadata?: RetrievalResultMetadata;
|
711
871
|
}
|
712
872
|
export type RetrievedReferences = RetrievedReference[];
|
873
|
+
export type ReturnControlInvocationResults = InvocationResultMember[];
|
874
|
+
export interface ReturnControlPayload {
|
875
|
+
/**
|
876
|
+
* The identifier of the action group invocation.
|
877
|
+
*/
|
878
|
+
invocationId?: String;
|
879
|
+
/**
|
880
|
+
* A list of objects that contain information about the parameters and inputs that need to be sent into the API operation or function, based on what the agent determines from its session with the user.
|
881
|
+
*/
|
882
|
+
invocationInputs?: InvocationInputs;
|
883
|
+
}
|
713
884
|
export type SearchType = "HYBRID"|"SEMANTIC"|string;
|
714
885
|
export interface ServiceQuotaExceededException {
|
715
886
|
message?: NonBlankString;
|
@@ -717,10 +888,18 @@ declare namespace BedrockAgentRuntime {
|
|
717
888
|
export type SessionAttributesMap = {[key: string]: String};
|
718
889
|
export type SessionId = string;
|
719
890
|
export interface SessionState {
|
891
|
+
/**
|
892
|
+
* The identifier of the invocation.
|
893
|
+
*/
|
894
|
+
invocationId?: String;
|
720
895
|
/**
|
721
896
|
* Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.
|
722
897
|
*/
|
723
898
|
promptSessionAttributes?: PromptSessionAttributesMap;
|
899
|
+
/**
|
900
|
+
* Contains information about the results from the action group invocation.
|
901
|
+
*/
|
902
|
+
returnControlInvocationResults?: ReturnControlInvocationResults;
|
724
903
|
/**
|
725
904
|
* Contains attributes that persist across a session and the values of those attributes.
|
726
905
|
*/
|
@@ -787,6 +966,10 @@ declare namespace BedrockAgentRuntime {
|
|
787
966
|
* The unique identifier of the agent.
|
788
967
|
*/
|
789
968
|
agentId?: AgentId;
|
969
|
+
/**
|
970
|
+
* The version of the agent.
|
971
|
+
*/
|
972
|
+
agentVersion?: AgentVersion;
|
790
973
|
/**
|
791
974
|
* The unique identifier of the session with the agent.
|
792
975
|
*/
|