cdk-lambda-subminute 2.0.436 → 2.0.438
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-2023-04-20.min.json +1059 -90
- package/node_modules/aws-sdk/apis/bedrock-2023-04-20.paginators.json +12 -0
- package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +105 -52
- package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +265 -58
- package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +24 -0
- package/node_modules/aws-sdk/apis/ce-2017-10-25.min.json +2 -1
- package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +139 -82
- 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/apis/workspaces-web-2020-07-08.min.json +84 -43
- 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/bedrock.d.ts +1082 -118
- package/node_modules/aws-sdk/clients/bedrockagent.d.ts +80 -2
- package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +252 -5
- package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +37 -10
- package/node_modules/aws-sdk/clients/costexplorer.d.ts +11 -7
- package/node_modules/aws-sdk/clients/ec2.d.ts +103 -39
- 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/pi.d.ts +5 -5
- package/node_modules/aws-sdk/clients/rds.d.ts +1 -1
- 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/clients/workspacesweb.d.ts +89 -23
- 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 +297 -253
- package/node_modules/aws-sdk/dist/aws-sdk.js +147 -86
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +70 -70
- 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
@@ -344,6 +344,10 @@ declare namespace BedrockAgent {
|
|
344
344
|
s3?: S3Identifier;
|
345
345
|
}
|
346
346
|
export interface ActionGroupExecutor {
|
347
|
+
/**
|
348
|
+
* To return the action group invocation results directly in the InvokeAgent response, specify RETURN_CONTROL.
|
349
|
+
*/
|
350
|
+
customControl?: CustomControlMethod;
|
347
351
|
/**
|
348
352
|
* The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action.
|
349
353
|
*/
|
@@ -489,6 +493,10 @@ declare namespace BedrockAgent {
|
|
489
493
|
* The description of the action group.
|
490
494
|
*/
|
491
495
|
description?: Description;
|
496
|
+
/**
|
497
|
+
* Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
|
498
|
+
*/
|
499
|
+
functionSchema?: FunctionSchema;
|
492
500
|
/**
|
493
501
|
* If this field is set as AMAZON.UserInput, the agent can request the user for additional information when trying to complete a task. The description, apiSchema, and actionGroupExecutor fields must be blank for this action group. During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
|
494
502
|
*/
|
@@ -803,6 +811,7 @@ declare namespace BedrockAgent {
|
|
803
811
|
export type BasePromptTemplate = string;
|
804
812
|
export type BedrockEmbeddingModelArn = string;
|
805
813
|
export type Boolean = boolean;
|
814
|
+
export type BucketOwnerAccountId = string;
|
806
815
|
export interface ChunkingConfiguration {
|
807
816
|
/**
|
808
817
|
* Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk. FIXED_SIZE – Amazon Bedrock splits your source data into chunks of the approximate size that you set in the fixedSizeChunkingConfiguration. NONE – Amazon Bedrock treats each file as one chunk. If you choose this option, you may want to pre-process your documents by splitting them into separate files.
|
@@ -849,6 +858,10 @@ declare namespace BedrockAgent {
|
|
849
858
|
* A description of the action group.
|
850
859
|
*/
|
851
860
|
description?: Description;
|
861
|
+
/**
|
862
|
+
* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
|
863
|
+
*/
|
864
|
+
functionSchema?: FunctionSchema;
|
852
865
|
/**
|
853
866
|
* To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor fields blank for this action group. During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
|
854
867
|
*/
|
@@ -945,6 +958,10 @@ declare namespace BedrockAgent {
|
|
945
958
|
* A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
|
946
959
|
*/
|
947
960
|
clientToken?: ClientToken;
|
961
|
+
/**
|
962
|
+
* The deletion policy for the requested data source
|
963
|
+
*/
|
964
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
948
965
|
/**
|
949
966
|
* Contains metadata about where the data source is stored.
|
950
967
|
*/
|
@@ -1013,11 +1030,17 @@ declare namespace BedrockAgent {
|
|
1013
1030
|
knowledgeBase: KnowledgeBase;
|
1014
1031
|
}
|
1015
1032
|
export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
|
1033
|
+
export type CustomControlMethod = "RETURN_CONTROL"|string;
|
1034
|
+
export type DataDeletionPolicy = "RETAIN"|"DELETE"|string;
|
1016
1035
|
export interface DataSource {
|
1017
1036
|
/**
|
1018
1037
|
* The time at which the data source was created.
|
1019
1038
|
*/
|
1020
1039
|
createdAt: DateTimestamp;
|
1040
|
+
/**
|
1041
|
+
* The deletion policy for the data source.
|
1042
|
+
*/
|
1043
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
1021
1044
|
/**
|
1022
1045
|
* Contains details about how the data source is stored.
|
1023
1046
|
*/
|
@@ -1030,6 +1053,10 @@ declare namespace BedrockAgent {
|
|
1030
1053
|
* The description of the data source.
|
1031
1054
|
*/
|
1032
1055
|
description?: Description;
|
1056
|
+
/**
|
1057
|
+
* The details of the failure reasons related to the data source.
|
1058
|
+
*/
|
1059
|
+
failureReasons?: FailureReasons;
|
1033
1060
|
/**
|
1034
1061
|
* The unique identifier of the knowledge base to which the data source belongs.
|
1035
1062
|
*/
|
@@ -1065,7 +1092,7 @@ declare namespace BedrockAgent {
|
|
1065
1092
|
*/
|
1066
1093
|
type: DataSourceType;
|
1067
1094
|
}
|
1068
|
-
export type DataSourceStatus = "AVAILABLE"|"DELETING"|string;
|
1095
|
+
export type DataSourceStatus = "AVAILABLE"|"DELETING"|"DELETE_UNSUCCESSFUL"|string;
|
1069
1096
|
export type DataSourceSummaries = DataSourceSummary[];
|
1070
1097
|
export interface DataSourceSummary {
|
1071
1098
|
/**
|
@@ -1260,6 +1287,28 @@ declare namespace BedrockAgent {
|
|
1260
1287
|
}
|
1261
1288
|
export type FixedSizeChunkingConfigurationMaxTokensInteger = number;
|
1262
1289
|
export type FixedSizeChunkingConfigurationOverlapPercentageInteger = number;
|
1290
|
+
export interface Function {
|
1291
|
+
/**
|
1292
|
+
* A description of the function and its purpose.
|
1293
|
+
*/
|
1294
|
+
description?: FunctionDescription;
|
1295
|
+
/**
|
1296
|
+
* A name for the function.
|
1297
|
+
*/
|
1298
|
+
name: Name;
|
1299
|
+
/**
|
1300
|
+
* The parameters that the agent elicits from the user to fulfill the function.
|
1301
|
+
*/
|
1302
|
+
parameters?: ParameterMap;
|
1303
|
+
}
|
1304
|
+
export type FunctionDescription = string;
|
1305
|
+
export interface FunctionSchema {
|
1306
|
+
/**
|
1307
|
+
* A list of functions that each define an action in the action group.
|
1308
|
+
*/
|
1309
|
+
functions?: Functions;
|
1310
|
+
}
|
1311
|
+
export type Functions = Function[];
|
1263
1312
|
export interface GetAgentActionGroupRequest {
|
1264
1313
|
/**
|
1265
1314
|
* The unique identifier of the action group for which to get information.
|
@@ -1610,7 +1659,7 @@ declare namespace BedrockAgent {
|
|
1610
1659
|
}
|
1611
1660
|
export type KnowledgeBaseRoleArn = string;
|
1612
1661
|
export type KnowledgeBaseState = "ENABLED"|"DISABLED"|string;
|
1613
|
-
export type KnowledgeBaseStatus = "CREATING"|"ACTIVE"|"DELETING"|"UPDATING"|"FAILED"|string;
|
1662
|
+
export type KnowledgeBaseStatus = "CREATING"|"ACTIVE"|"DELETING"|"UPDATING"|"FAILED"|"DELETE_UNSUCCESSFUL"|string;
|
1614
1663
|
export type KnowledgeBaseStorageType = "OPENSEARCH_SERVERLESS"|"PINECONE"|"REDIS_ENTERPRISE_CLOUD"|"RDS"|string;
|
1615
1664
|
export type KnowledgeBaseSummaries = KnowledgeBaseSummary[];
|
1616
1665
|
export interface KnowledgeBaseSummary {
|
@@ -1889,6 +1938,22 @@ declare namespace BedrockAgent {
|
|
1889
1938
|
vectorField: FieldName;
|
1890
1939
|
}
|
1891
1940
|
export type OpenSearchServerlessIndexName = string;
|
1941
|
+
export type ParameterDescription = string;
|
1942
|
+
export interface ParameterDetail {
|
1943
|
+
/**
|
1944
|
+
* A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user.
|
1945
|
+
*/
|
1946
|
+
description?: ParameterDescription;
|
1947
|
+
/**
|
1948
|
+
* Whether the parameter is required for the agent to complete the function for action group invocation.
|
1949
|
+
*/
|
1950
|
+
required?: Boolean;
|
1951
|
+
/**
|
1952
|
+
* The data type of the parameter.
|
1953
|
+
*/
|
1954
|
+
type: Type;
|
1955
|
+
}
|
1956
|
+
export type ParameterMap = {[key: string]: ParameterDetail};
|
1892
1957
|
export type Payload = string;
|
1893
1958
|
export interface PineconeConfiguration {
|
1894
1959
|
/**
|
@@ -2070,6 +2135,10 @@ declare namespace BedrockAgent {
|
|
2070
2135
|
* The Amazon Resource Name (ARN) of the bucket that contains the data source.
|
2071
2136
|
*/
|
2072
2137
|
bucketArn: S3BucketArn;
|
2138
|
+
/**
|
2139
|
+
* The account ID for the owner of the S3 bucket.
|
2140
|
+
*/
|
2141
|
+
bucketOwnerAccountId?: BucketOwnerAccountId;
|
2073
2142
|
/**
|
2074
2143
|
* A list of S3 prefixes that define the object containing the data sources. For more information, see Organizing objects using prefixes.
|
2075
2144
|
*/
|
@@ -2165,6 +2234,7 @@ declare namespace BedrockAgent {
|
|
2165
2234
|
export type Temperature = number;
|
2166
2235
|
export type TopK = number;
|
2167
2236
|
export type TopP = number;
|
2237
|
+
export type Type = "string"|"number"|"integer"|"boolean"|"array"|string;
|
2168
2238
|
export interface UntagResourceRequest {
|
2169
2239
|
/**
|
2170
2240
|
* The Amazon Resource Name (ARN) of the resource from which to remove tags.
|
@@ -2210,6 +2280,10 @@ declare namespace BedrockAgent {
|
|
2210
2280
|
* Specifies a new name for the action group.
|
2211
2281
|
*/
|
2212
2282
|
description?: Description;
|
2283
|
+
/**
|
2284
|
+
* Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.
|
2285
|
+
*/
|
2286
|
+
functionSchema?: FunctionSchema;
|
2213
2287
|
/**
|
2214
2288
|
* To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. You must leave the description, apiSchema, and actionGroupExecutor fields blank for this action group. During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
|
2215
2289
|
*/
|
@@ -2322,6 +2396,10 @@ declare namespace BedrockAgent {
|
|
2322
2396
|
agent: Agent;
|
2323
2397
|
}
|
2324
2398
|
export interface UpdateDataSourceRequest {
|
2399
|
+
/**
|
2400
|
+
* The data deletion policy of the updated data source.
|
2401
|
+
*/
|
2402
|
+
dataDeletionPolicy?: DataDeletionPolicy;
|
2325
2403
|
/**
|
2326
2404
|
* Contains details about the storage configuration of the data source.
|
2327
2405
|
*/
|
@@ -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.
|
@@ -89,6 +164,21 @@ declare namespace BedrockAgentRuntime {
|
|
89
164
|
}
|
90
165
|
export type BedrockModelArn = string;
|
91
166
|
export type Boolean = boolean;
|
167
|
+
export type ByteContentBlob = Buffer|Uint8Array|Blob|string;
|
168
|
+
export interface ByteContentDoc {
|
169
|
+
/**
|
170
|
+
* The MIME type of the document contained in the wrapper object.
|
171
|
+
*/
|
172
|
+
contentType: ContentType;
|
173
|
+
/**
|
174
|
+
* The byte value of the file to upload, encoded as a Base-64 string.
|
175
|
+
*/
|
176
|
+
data: ByteContentBlob;
|
177
|
+
/**
|
178
|
+
* The file name of the document contained in the wrapper object.
|
179
|
+
*/
|
180
|
+
identifier: Identifier;
|
181
|
+
}
|
92
182
|
export interface Citation {
|
93
183
|
/**
|
94
184
|
* Contains the generated response and metadata
|
@@ -103,7 +193,14 @@ declare namespace BedrockAgentRuntime {
|
|
103
193
|
export interface ConflictException {
|
104
194
|
message?: NonBlankString;
|
105
195
|
}
|
196
|
+
export interface ContentBody {
|
197
|
+
/**
|
198
|
+
* The body of the API response.
|
199
|
+
*/
|
200
|
+
body?: String;
|
201
|
+
}
|
106
202
|
export type ContentMap = {[key: string]: Parameters};
|
203
|
+
export type ContentType = string;
|
107
204
|
export type CreationMode = "DEFAULT"|"OVERRIDDEN"|string;
|
108
205
|
export interface DependencyFailedException {
|
109
206
|
message?: NonBlankString;
|
@@ -113,6 +210,42 @@ declare namespace BedrockAgentRuntime {
|
|
113
210
|
resourceName?: NonBlankString;
|
114
211
|
}
|
115
212
|
export type Double = number;
|
213
|
+
export interface ExternalSource {
|
214
|
+
/**
|
215
|
+
* The identifier, contentType, and data of the external source wrapper object.
|
216
|
+
*/
|
217
|
+
byteContent?: ByteContentDoc;
|
218
|
+
/**
|
219
|
+
* The S3 location of the external source wrapper object.
|
220
|
+
*/
|
221
|
+
s3Location?: S3ObjectDoc;
|
222
|
+
/**
|
223
|
+
* The source type of the external source wrapper object.
|
224
|
+
*/
|
225
|
+
sourceType: ExternalSourceType;
|
226
|
+
}
|
227
|
+
export type ExternalSourceType = "S3"|"BYTE_CONTENT"|string;
|
228
|
+
export type ExternalSources = ExternalSource[];
|
229
|
+
export interface ExternalSourcesGenerationConfiguration {
|
230
|
+
/**
|
231
|
+
* Contain the textPromptTemplate string for the external source wrapper object.
|
232
|
+
*/
|
233
|
+
promptTemplate?: PromptTemplate;
|
234
|
+
}
|
235
|
+
export interface ExternalSourcesRetrieveAndGenerateConfiguration {
|
236
|
+
/**
|
237
|
+
* The prompt used with the external source wrapper object with the retrieveAndGenerate function.
|
238
|
+
*/
|
239
|
+
generationConfiguration?: ExternalSourcesGenerationConfiguration;
|
240
|
+
/**
|
241
|
+
* The modelArn used with the external source wrapper object in the retrieveAndGenerate function.
|
242
|
+
*/
|
243
|
+
modelArn: BedrockModelArn;
|
244
|
+
/**
|
245
|
+
* The document used with the external source wrapper object in the retrieveAndGenerate function.
|
246
|
+
*/
|
247
|
+
sources: ExternalSources;
|
248
|
+
}
|
116
249
|
export type FailureReasonString = string;
|
117
250
|
export interface FailureTrace {
|
118
251
|
/**
|
@@ -144,6 +277,54 @@ declare namespace BedrockAgentRuntime {
|
|
144
277
|
text?: FinalResponseString;
|
145
278
|
}
|
146
279
|
export type FinalResponseString = string;
|
280
|
+
export type Function = string;
|
281
|
+
export interface FunctionInvocationInput {
|
282
|
+
/**
|
283
|
+
* The action group that the function belongs to.
|
284
|
+
*/
|
285
|
+
actionGroup: String;
|
286
|
+
/**
|
287
|
+
* The name of the function.
|
288
|
+
*/
|
289
|
+
function?: String;
|
290
|
+
/**
|
291
|
+
* A list of parameters of the function.
|
292
|
+
*/
|
293
|
+
parameters?: FunctionParameters;
|
294
|
+
}
|
295
|
+
export interface FunctionParameter {
|
296
|
+
/**
|
297
|
+
* The name of the parameter.
|
298
|
+
*/
|
299
|
+
name?: String;
|
300
|
+
/**
|
301
|
+
* The data type of the parameter.
|
302
|
+
*/
|
303
|
+
type?: String;
|
304
|
+
/**
|
305
|
+
* The value of the parameter.
|
306
|
+
*/
|
307
|
+
value?: String;
|
308
|
+
}
|
309
|
+
export type FunctionParameters = FunctionParameter[];
|
310
|
+
export interface FunctionResult {
|
311
|
+
/**
|
312
|
+
* The action group that the function belongs to.
|
313
|
+
*/
|
314
|
+
actionGroup: String;
|
315
|
+
/**
|
316
|
+
* The name of the function that was called.
|
317
|
+
*/
|
318
|
+
function?: String;
|
319
|
+
/**
|
320
|
+
* The response from the function call using the parameters. The response may be returned directly or from the Lambda function.
|
321
|
+
*/
|
322
|
+
responseBody?: ResponseBody;
|
323
|
+
/**
|
324
|
+
* 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
|
325
|
+
*/
|
326
|
+
responseState?: ResponseState;
|
327
|
+
}
|
147
328
|
export interface GeneratedResponsePart {
|
148
329
|
/**
|
149
330
|
* Contains metadata about a textual part of the generated response that is accompanied by a citation.
|
@@ -156,6 +337,7 @@ declare namespace BedrockAgentRuntime {
|
|
156
337
|
*/
|
157
338
|
promptTemplate?: PromptTemplate;
|
158
339
|
}
|
340
|
+
export type Identifier = string;
|
159
341
|
export interface InferenceConfiguration {
|
160
342
|
/**
|
161
343
|
* The maximum number of tokens allowed in the generated response.
|
@@ -179,6 +361,7 @@ declare namespace BedrockAgentRuntime {
|
|
179
361
|
topP?: TopP;
|
180
362
|
}
|
181
363
|
export type InputText = string;
|
364
|
+
export type Integer = number;
|
182
365
|
export interface InternalServerException {
|
183
366
|
message?: NonBlankString;
|
184
367
|
}
|
@@ -200,6 +383,27 @@ declare namespace BedrockAgentRuntime {
|
|
200
383
|
*/
|
201
384
|
traceId?: TraceId;
|
202
385
|
}
|
386
|
+
export interface InvocationInputMember {
|
387
|
+
/**
|
388
|
+
* Contains information about the API operation that the agent predicts should be called.
|
389
|
+
*/
|
390
|
+
apiInvocationInput?: ApiInvocationInput;
|
391
|
+
/**
|
392
|
+
* Contains information about the function that the agent predicts should be called.
|
393
|
+
*/
|
394
|
+
functionInvocationInput?: FunctionInvocationInput;
|
395
|
+
}
|
396
|
+
export type InvocationInputs = InvocationInputMember[];
|
397
|
+
export interface InvocationResultMember {
|
398
|
+
/**
|
399
|
+
* The result from the API response from the action group invocation.
|
400
|
+
*/
|
401
|
+
apiResult?: ApiResult;
|
402
|
+
/**
|
403
|
+
* The result from the function from the action group invocation.
|
404
|
+
*/
|
405
|
+
functionResult?: FunctionResult;
|
406
|
+
}
|
203
407
|
export type InvocationType = "ACTION_GROUP"|"KNOWLEDGE_BASE"|"FINISH"|string;
|
204
408
|
export interface InvokeAgentRequest {
|
205
409
|
/**
|
@@ -221,7 +425,7 @@ declare namespace BedrockAgentRuntime {
|
|
221
425
|
/**
|
222
426
|
* The prompt text to send the agent.
|
223
427
|
*/
|
224
|
-
inputText
|
428
|
+
inputText?: InputText;
|
225
429
|
/**
|
226
430
|
* The unique identifier of the session. Use the same value across requests to continue the same conversation.
|
227
431
|
*/
|
@@ -423,6 +627,7 @@ declare namespace BedrockAgentRuntime {
|
|
423
627
|
*/
|
424
628
|
value?: String;
|
425
629
|
}
|
630
|
+
export type ParameterList = Parameter[];
|
426
631
|
export type Parameters = Parameter[];
|
427
632
|
export type PartBody = Buffer|Uint8Array|Blob|string;
|
428
633
|
export interface PayloadPart {
|
@@ -500,6 +705,12 @@ declare namespace BedrockAgentRuntime {
|
|
500
705
|
}
|
501
706
|
export type PromptText = string;
|
502
707
|
export type PromptType = "PRE_PROCESSING"|"ORCHESTRATION"|"KNOWLEDGE_BASE_RESPONSE_GENERATION"|"POST_PROCESSING"|string;
|
708
|
+
export interface PropertyParameters {
|
709
|
+
/**
|
710
|
+
* A list of parameters in the request body.
|
711
|
+
*/
|
712
|
+
properties?: ParameterList;
|
713
|
+
}
|
503
714
|
export interface Rationale {
|
504
715
|
/**
|
505
716
|
* The reasoning or thought process of the agent, based on the input.
|
@@ -530,7 +741,9 @@ declare namespace BedrockAgentRuntime {
|
|
530
741
|
export interface ResourceNotFoundException {
|
531
742
|
message?: NonBlankString;
|
532
743
|
}
|
533
|
-
export type
|
744
|
+
export type ResponseBody = {[key: string]: ContentBody};
|
745
|
+
export type ResponseState = "FAILURE"|"REPROMPT"|string;
|
746
|
+
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
747
|
export interface RetrievalFilter {
|
535
748
|
/**
|
536
749
|
* Knowledge base data sources whose metadata attributes fulfill all the filter conditions inside this list are returned.
|
@@ -606,6 +819,10 @@ declare namespace BedrockAgentRuntime {
|
|
606
819
|
uri?: String;
|
607
820
|
}
|
608
821
|
export interface RetrieveAndGenerateConfiguration {
|
822
|
+
/**
|
823
|
+
* The configuration used with the external source wrapper object in the retrieveAndGenerate function.
|
824
|
+
*/
|
825
|
+
externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration;
|
609
826
|
/**
|
610
827
|
* Contains details about the resource being queried.
|
611
828
|
*/
|
@@ -666,7 +883,7 @@ declare namespace BedrockAgentRuntime {
|
|
666
883
|
*/
|
667
884
|
kmsKeyArn: KmsKeyArn;
|
668
885
|
}
|
669
|
-
export type RetrieveAndGenerateType = "KNOWLEDGE_BASE"|string;
|
886
|
+
export type RetrieveAndGenerateType = "KNOWLEDGE_BASE"|"EXTERNAL_SOURCES"|string;
|
670
887
|
export interface RetrieveRequest {
|
671
888
|
/**
|
672
889
|
* The unique identifier of the knowledge base to query.
|
@@ -710,6 +927,24 @@ declare namespace BedrockAgentRuntime {
|
|
710
927
|
metadata?: RetrievalResultMetadata;
|
711
928
|
}
|
712
929
|
export type RetrievedReferences = RetrievedReference[];
|
930
|
+
export type ReturnControlInvocationResults = InvocationResultMember[];
|
931
|
+
export interface ReturnControlPayload {
|
932
|
+
/**
|
933
|
+
* The identifier of the action group invocation.
|
934
|
+
*/
|
935
|
+
invocationId?: String;
|
936
|
+
/**
|
937
|
+
* 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.
|
938
|
+
*/
|
939
|
+
invocationInputs?: InvocationInputs;
|
940
|
+
}
|
941
|
+
export interface S3ObjectDoc {
|
942
|
+
/**
|
943
|
+
* The file location of the S3 wrapper object.
|
944
|
+
*/
|
945
|
+
uri: S3Uri;
|
946
|
+
}
|
947
|
+
export type S3Uri = string;
|
713
948
|
export type SearchType = "HYBRID"|"SEMANTIC"|string;
|
714
949
|
export interface ServiceQuotaExceededException {
|
715
950
|
message?: NonBlankString;
|
@@ -717,10 +952,18 @@ declare namespace BedrockAgentRuntime {
|
|
717
952
|
export type SessionAttributesMap = {[key: string]: String};
|
718
953
|
export type SessionId = string;
|
719
954
|
export interface SessionState {
|
955
|
+
/**
|
956
|
+
* The identifier of the invocation.
|
957
|
+
*/
|
958
|
+
invocationId?: String;
|
720
959
|
/**
|
721
960
|
* 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
961
|
*/
|
723
962
|
promptSessionAttributes?: PromptSessionAttributesMap;
|
963
|
+
/**
|
964
|
+
* Contains information about the results from the action group invocation.
|
965
|
+
*/
|
966
|
+
returnControlInvocationResults?: ReturnControlInvocationResults;
|
724
967
|
/**
|
725
968
|
* Contains attributes that persist across a session and the values of those attributes.
|
726
969
|
*/
|
@@ -787,6 +1030,10 @@ declare namespace BedrockAgentRuntime {
|
|
787
1030
|
* The unique identifier of the agent.
|
788
1031
|
*/
|
789
1032
|
agentId?: AgentId;
|
1033
|
+
/**
|
1034
|
+
* The version of the agent.
|
1035
|
+
*/
|
1036
|
+
agentVersion?: AgentVersion;
|
790
1037
|
/**
|
791
1038
|
* The unique identifier of the session with the agent.
|
792
1039
|
*/
|