@aws-sdk/client-bedrock-agent-runtime 3.825.0 → 3.828.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 +6 -4
- package/dist-es/models/models_0.js +0 -3
- package/dist-es/models/models_1.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/GetExecutionFlowSnapshotCommand.d.ts +1 -1
- package/dist-types/commands/GetFlowExecutionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +4 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +4 -0
- package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +1 -1
- package/dist-types/commands/ListFlowExecutionsCommand.d.ts +1 -1
- package/dist-types/commands/StartFlowExecutionCommand.d.ts +1 -1
- package/dist-types/commands/StopFlowExecutionCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +62 -61
- package/dist-types/models/models_1.d.ts +26 -1
- package/dist-types/ts3.4/models/models_0.d.ts +4 -6
- package/dist-types/ts3.4/models/models_1.d.ts +9 -1
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -2158,9 +2158,6 @@ var CitationEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2158
2158
|
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item))
|
|
2159
2159
|
}
|
|
2160
2160
|
}), "CitationEventFilterSensitiveLog");
|
|
2161
|
-
var RetrieveAndGenerateOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2162
|
-
...obj
|
|
2163
|
-
}), "RetrieveAndGenerateOutputEventFilterSensitiveLog");
|
|
2164
2161
|
|
|
2165
2162
|
// src/models/models_1.ts
|
|
2166
2163
|
|
|
@@ -2239,6 +2236,9 @@ var RetrievalFilter;
|
|
|
2239
2236
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2240
2237
|
}, "visit");
|
|
2241
2238
|
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
2239
|
+
var RetrieveAndGenerateOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2240
|
+
...obj
|
|
2241
|
+
}), "RetrieveAndGenerateOutputEventFilterSensitiveLog");
|
|
2242
2242
|
var RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2243
2243
|
if (obj.output !== void 0) return { output: import_smithy_client.SENSITIVE_STRING };
|
|
2244
2244
|
if (obj.citation !== void 0) return { citation: CitationEventFilterSensitiveLog(obj.citation) };
|
|
@@ -2610,6 +2610,7 @@ var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2610
2610
|
endSession: [],
|
|
2611
2611
|
inputText: [],
|
|
2612
2612
|
memoryId: [],
|
|
2613
|
+
promptCreationConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "promptCreationConfigurations"),
|
|
2613
2614
|
sessionState: /* @__PURE__ */ __name((_) => se_SessionState(_, context), "sessionState"),
|
|
2614
2615
|
streamingConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamingConfigurations")
|
|
2615
2616
|
})
|
|
@@ -2665,6 +2666,7 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2665
2666
|
instruction: [],
|
|
2666
2667
|
knowledgeBases: /* @__PURE__ */ __name((_) => se_KnowledgeBases(_, context), "knowledgeBases"),
|
|
2667
2668
|
orchestrationType: [],
|
|
2669
|
+
promptCreationConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "promptCreationConfigurations"),
|
|
2668
2670
|
promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration"),
|
|
2669
2671
|
streamingConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamingConfigurations")
|
|
2670
2672
|
})
|
|
@@ -6370,7 +6372,6 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
6370
6372
|
RetrieveAndGenerateOutputFilterSensitiveLog,
|
|
6371
6373
|
RetrieveAndGenerateResponseFilterSensitiveLog,
|
|
6372
6374
|
CitationEventFilterSensitiveLog,
|
|
6373
|
-
RetrieveAndGenerateOutputEventFilterSensitiveLog,
|
|
6374
6375
|
RetrieveAndGenerateStreamResponseOutput,
|
|
6375
6376
|
SessionStatus,
|
|
6376
6377
|
ImageFormat,
|
|
@@ -6378,6 +6379,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
6378
6379
|
BedrockSessionContentBlock,
|
|
6379
6380
|
InvocationStepPayload,
|
|
6380
6381
|
RetrievalFilter,
|
|
6382
|
+
RetrieveAndGenerateOutputEventFilterSensitiveLog,
|
|
6381
6383
|
RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog,
|
|
6382
6384
|
RetrieveAndGenerateStreamResponseFilterSensitiveLog,
|
|
6383
6385
|
KnowledgeBaseQueryFilterSensitiveLog,
|
|
@@ -1740,6 +1740,3 @@ export const CitationEventFilterSensitiveLog = (obj) => ({
|
|
|
1740
1740
|
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
1741
1741
|
}),
|
|
1742
1742
|
});
|
|
1743
|
-
export const RetrieveAndGenerateOutputEventFilterSensitiveLog = (obj) => ({
|
|
1744
|
-
...obj,
|
|
1745
|
-
});
|
|
@@ -101,6 +101,9 @@ export var RetrievalFilter;
|
|
|
101
101
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
102
102
|
};
|
|
103
103
|
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
104
|
+
export const RetrieveAndGenerateOutputEventFilterSensitiveLog = (obj) => ({
|
|
105
|
+
...obj,
|
|
106
|
+
});
|
|
104
107
|
export const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = (obj) => {
|
|
105
108
|
if (obj.output !== undefined)
|
|
106
109
|
return { output: SENSITIVE_STRING };
|
|
@@ -159,6 +159,7 @@ export const se_InvokeAgentCommand = async (input, context) => {
|
|
|
159
159
|
endSession: [],
|
|
160
160
|
inputText: [],
|
|
161
161
|
memoryId: [],
|
|
162
|
+
promptCreationConfigurations: (_) => _json(_),
|
|
162
163
|
sessionState: (_) => se_SessionState(_, context),
|
|
163
164
|
streamingConfigurations: (_) => _json(_),
|
|
164
165
|
}));
|
|
@@ -210,6 +211,7 @@ export const se_InvokeInlineAgentCommand = async (input, context) => {
|
|
|
210
211
|
instruction: [],
|
|
211
212
|
knowledgeBases: (_) => se_KnowledgeBases(_, context),
|
|
212
213
|
orchestrationType: [],
|
|
214
|
+
promptCreationConfigurations: (_) => _json(_),
|
|
213
215
|
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
214
216
|
streamingConfigurations: (_) => _json(_),
|
|
215
217
|
}));
|
|
@@ -27,7 +27,7 @@ declare const GetExecutionFlowSnapshotCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves the flow definition snapshot used for
|
|
30
|
+
* <p>Retrieves the flow definition snapshot used for a flow execution. The snapshot represents the flow metadata and definition as it existed at the time the execution was started. Note that even if the flow is edited after an execution starts, the snapshot connected to the execution remains unchanged.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetFlowExecutionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves details about a specific
|
|
30
|
+
* <p>Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -235,6 +235,10 @@ declare const InvokeAgentCommand_base: {
|
|
|
235
235
|
* streamFinalResponse: true || false,
|
|
236
236
|
* applyGuardrailInterval: Number("int"),
|
|
237
237
|
* },
|
|
238
|
+
* promptCreationConfigurations: { // PromptCreationConfigurations
|
|
239
|
+
* previousConversationTurnsToInclude: Number("int"),
|
|
240
|
+
* excludePreviousThinkingSteps: true || false,
|
|
241
|
+
* },
|
|
238
242
|
* sourceArn: "STRING_VALUE",
|
|
239
243
|
* };
|
|
240
244
|
* const command = new InvokeAgentCommand(input);
|
|
@@ -223,6 +223,10 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
223
223
|
* streamFinalResponse: true || false,
|
|
224
224
|
* applyGuardrailInterval: Number("int"),
|
|
225
225
|
* },
|
|
226
|
+
* promptCreationConfigurations: { // PromptCreationConfigurations
|
|
227
|
+
* previousConversationTurnsToInclude: Number("int"),
|
|
228
|
+
* excludePreviousThinkingSteps: true || false,
|
|
229
|
+
* },
|
|
226
230
|
* inlineSessionState: { // InlineSessionState
|
|
227
231
|
* sessionAttributes: { // SessionAttributesMap
|
|
228
232
|
* "<keys>": "STRING_VALUE",
|
|
@@ -27,7 +27,7 @@ declare const ListFlowExecutionEventsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists events that occurred during
|
|
30
|
+
* <p>Lists events that occurred during a flow execution. Events provide detailed information about the execution progress, including node inputs and outputs, flow inputs and outputs, condition results, and failure events.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const ListFlowExecutionsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists all
|
|
30
|
+
* <p>Lists all executions of a flow. Results can be paginated and include summary information about each execution, such as status, start and end times, and the execution's Amazon Resource Name (ARN).</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const StartFlowExecutionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Starts an
|
|
30
|
+
* <p>Starts an execution of an Amazon Bedrock flow. Unlike flows that run until completion or time out after five minutes, flow executions let you run flows asynchronously for longer durations. Flow executions also yield control so that your application can perform other tasks.</p> <p>This operation returns an Amazon Resource Name (ARN) that you can use to track and manage your flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const StopFlowExecutionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Stops an Amazon Bedrock flow's
|
|
30
|
+
* <p>Stops an Amazon Bedrock flow's execution. This operation prevents further processing of the flow and changes the execution status to <code>Aborted</code>.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -1023,12 +1023,12 @@ export interface GetExecutionFlowSnapshotRequest {
|
|
|
1023
1023
|
*/
|
|
1024
1024
|
flowIdentifier: string | undefined;
|
|
1025
1025
|
/**
|
|
1026
|
-
* <p>The unique identifier of the flow alias used for the
|
|
1026
|
+
* <p>The unique identifier of the flow alias used for the flow execution.</p>
|
|
1027
1027
|
* @public
|
|
1028
1028
|
*/
|
|
1029
1029
|
flowAliasIdentifier: string | undefined;
|
|
1030
1030
|
/**
|
|
1031
|
-
* <p>The unique identifier of the
|
|
1031
|
+
* <p>The unique identifier of the flow execution.</p>
|
|
1032
1032
|
* @public
|
|
1033
1033
|
*/
|
|
1034
1034
|
executionIdentifier: string | undefined;
|
|
@@ -1043,22 +1043,22 @@ export interface GetExecutionFlowSnapshotResponse {
|
|
|
1043
1043
|
*/
|
|
1044
1044
|
flowIdentifier: string | undefined;
|
|
1045
1045
|
/**
|
|
1046
|
-
* <p>The unique identifier of the flow alias used for the
|
|
1046
|
+
* <p>The unique identifier of the flow alias used for the flow execution.</p>
|
|
1047
1047
|
* @public
|
|
1048
1048
|
*/
|
|
1049
1049
|
flowAliasIdentifier: string | undefined;
|
|
1050
1050
|
/**
|
|
1051
|
-
* <p>The version of the flow used for the
|
|
1051
|
+
* <p>The version of the flow used for the flow execution.</p>
|
|
1052
1052
|
* @public
|
|
1053
1053
|
*/
|
|
1054
1054
|
flowVersion: string | undefined;
|
|
1055
1055
|
/**
|
|
1056
|
-
* <p>The Amazon Resource Name (ARN) of the IAM service role that's used by the
|
|
1056
|
+
* <p>The Amazon Resource Name (ARN) of the IAM service role that's used by the flow execution.</p>
|
|
1057
1057
|
* @public
|
|
1058
1058
|
*/
|
|
1059
1059
|
executionRoleArn: string | undefined;
|
|
1060
1060
|
/**
|
|
1061
|
-
* <p>The flow definition used for the
|
|
1061
|
+
* <p>The flow definition used for the flow execution, including the nodes, connections, and configuration at the time when the execution started.</p> <p>The definition returns as a string that follows the structure of a <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_FlowDefinition.html">FlowDefinition</a> object.</p>
|
|
1062
1062
|
* @public
|
|
1063
1063
|
*/
|
|
1064
1064
|
definition: string | undefined;
|
|
@@ -1136,7 +1136,7 @@ export interface GetFlowExecutionRequest {
|
|
|
1136
1136
|
*/
|
|
1137
1137
|
flowAliasIdentifier: string | undefined;
|
|
1138
1138
|
/**
|
|
1139
|
-
* <p>The unique identifier of the
|
|
1139
|
+
* <p>The unique identifier of the flow execution to retrieve.</p>
|
|
1140
1140
|
* @public
|
|
1141
1141
|
*/
|
|
1142
1142
|
executionIdentifier: string | undefined;
|
|
@@ -1153,7 +1153,7 @@ export declare const FlowExecutionErrorType: {
|
|
|
1153
1153
|
*/
|
|
1154
1154
|
export type FlowExecutionErrorType = (typeof FlowExecutionErrorType)[keyof typeof FlowExecutionErrorType];
|
|
1155
1155
|
/**
|
|
1156
|
-
* <p>Contains information about an error that occurred during an
|
|
1156
|
+
* <p>Contains information about an error that occurred during an flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1157
1157
|
* @public
|
|
1158
1158
|
*/
|
|
1159
1159
|
export interface FlowExecutionError {
|
|
@@ -1193,27 +1193,27 @@ export type FlowExecutionStatus = (typeof FlowExecutionStatus)[keyof typeof Flow
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
export interface GetFlowExecutionResponse {
|
|
1195
1195
|
/**
|
|
1196
|
-
* <p>The Amazon Resource Name (ARN) that uniquely identifies the
|
|
1196
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the flow execution.</p>
|
|
1197
1197
|
* @public
|
|
1198
1198
|
*/
|
|
1199
1199
|
executionArn: string | undefined;
|
|
1200
1200
|
/**
|
|
1201
|
-
* <p>The current status of the
|
|
1201
|
+
* <p>The current status of the flow execution.</p> <p>Flow executions time out after 24 hours.</p>
|
|
1202
1202
|
* @public
|
|
1203
1203
|
*/
|
|
1204
1204
|
status: FlowExecutionStatus | undefined;
|
|
1205
1205
|
/**
|
|
1206
|
-
* <p>The timestamp when the
|
|
1206
|
+
* <p>The timestamp when the flow execution started.</p>
|
|
1207
1207
|
* @public
|
|
1208
1208
|
*/
|
|
1209
1209
|
startedAt: Date | undefined;
|
|
1210
1210
|
/**
|
|
1211
|
-
* <p>The timestamp when the
|
|
1211
|
+
* <p>The timestamp when the flow execution ended. This field is only populated when the execution has completed, failed, timed out, or been aborted.</p>
|
|
1212
1212
|
* @public
|
|
1213
1213
|
*/
|
|
1214
1214
|
endedAt?: Date | undefined;
|
|
1215
1215
|
/**
|
|
1216
|
-
* <p>A list of errors that occurred during the
|
|
1216
|
+
* <p>A list of errors that occurred during the flow execution. Each error includes an error code, message, and the node where the error occurred, if applicable.</p>
|
|
1217
1217
|
* @public
|
|
1218
1218
|
*/
|
|
1219
1219
|
errors?: FlowExecutionError[] | undefined;
|
|
@@ -1260,7 +1260,7 @@ export interface ListFlowExecutionEventsRequest {
|
|
|
1260
1260
|
*/
|
|
1261
1261
|
flowAliasIdentifier: string | undefined;
|
|
1262
1262
|
/**
|
|
1263
|
-
* <p>The unique identifier of the
|
|
1263
|
+
* <p>The unique identifier of the flow execution.</p>
|
|
1264
1264
|
* @public
|
|
1265
1265
|
*/
|
|
1266
1266
|
executionIdentifier: string | undefined;
|
|
@@ -1281,7 +1281,7 @@ export interface ListFlowExecutionEventsRequest {
|
|
|
1281
1281
|
eventType: FlowExecutionEventType | undefined;
|
|
1282
1282
|
}
|
|
1283
1283
|
/**
|
|
1284
|
-
* <p>Represents a condition that was satisfied during a condition node evaluation in a flow
|
|
1284
|
+
* <p>Represents a condition that was satisfied during a condition node evaluation in a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1285
1285
|
* @public
|
|
1286
1286
|
*/
|
|
1287
1287
|
export interface SatisfiedCondition {
|
|
@@ -1292,7 +1292,7 @@ export interface SatisfiedCondition {
|
|
|
1292
1292
|
conditionName: string | undefined;
|
|
1293
1293
|
}
|
|
1294
1294
|
/**
|
|
1295
|
-
* <p>Contains information about a condition evaluation result during
|
|
1295
|
+
* <p>Contains information about a condition evaluation result during a flow execution. This event is generated when a condition node in the flow evaluates its conditions.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1296
1296
|
* @public
|
|
1297
1297
|
*/
|
|
1298
1298
|
export interface ConditionResultEvent {
|
|
@@ -1326,7 +1326,7 @@ export declare const FlowErrorCode: {
|
|
|
1326
1326
|
*/
|
|
1327
1327
|
export type FlowErrorCode = (typeof FlowErrorCode)[keyof typeof FlowErrorCode];
|
|
1328
1328
|
/**
|
|
1329
|
-
* <p>Contains information about a failure that occurred at the flow level during
|
|
1329
|
+
* <p>Contains information about a failure that occurred at the flow level during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1330
1330
|
* @public
|
|
1331
1331
|
*/
|
|
1332
1332
|
export interface FlowFailureEvent {
|
|
@@ -1347,7 +1347,7 @@ export interface FlowFailureEvent {
|
|
|
1347
1347
|
errorMessage: string | undefined;
|
|
1348
1348
|
}
|
|
1349
1349
|
/**
|
|
1350
|
-
* <p>Contains the content of an
|
|
1350
|
+
* <p>Contains the content of an flow execution input or output field.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1351
1351
|
* @public
|
|
1352
1352
|
*/
|
|
1353
1353
|
export type FlowExecutionContent = FlowExecutionContent.DocumentMember | FlowExecutionContent.$UnknownMember;
|
|
@@ -1377,7 +1377,7 @@ export declare namespace FlowExecutionContent {
|
|
|
1377
1377
|
const visit: <T>(value: FlowExecutionContent, visitor: Visitor<T>) => T;
|
|
1378
1378
|
}
|
|
1379
1379
|
/**
|
|
1380
|
-
* <p>Represents an input field provided to a flow during
|
|
1380
|
+
* <p>Represents an input field provided to a flow during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1381
1381
|
* @public
|
|
1382
1382
|
*/
|
|
1383
1383
|
export interface FlowInputField {
|
|
@@ -1393,7 +1393,7 @@ export interface FlowInputField {
|
|
|
1393
1393
|
content: FlowExecutionContent | undefined;
|
|
1394
1394
|
}
|
|
1395
1395
|
/**
|
|
1396
|
-
* <p>Contains information about the inputs provided to the flow at the start of
|
|
1396
|
+
* <p>Contains information about the inputs provided to the flow at the start of a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1397
1397
|
* @public
|
|
1398
1398
|
*/
|
|
1399
1399
|
export interface FlowExecutionInputEvent {
|
|
@@ -1414,7 +1414,7 @@ export interface FlowExecutionInputEvent {
|
|
|
1414
1414
|
fields: FlowInputField[] | undefined;
|
|
1415
1415
|
}
|
|
1416
1416
|
/**
|
|
1417
|
-
* <p>Represents an output field produced by a flow during
|
|
1417
|
+
* <p>Represents an output field produced by a flow during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1418
1418
|
* @public
|
|
1419
1419
|
*/
|
|
1420
1420
|
export interface FlowOutputField {
|
|
@@ -1430,7 +1430,7 @@ export interface FlowOutputField {
|
|
|
1430
1430
|
content: FlowExecutionContent | undefined;
|
|
1431
1431
|
}
|
|
1432
1432
|
/**
|
|
1433
|
-
* <p>Contains information about the outputs produced by the flow during
|
|
1433
|
+
* <p>Contains information about the outputs produced by the flow during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1434
1434
|
* @public
|
|
1435
1435
|
*/
|
|
1436
1436
|
export interface FlowExecutionOutputEvent {
|
|
@@ -1465,7 +1465,7 @@ export declare const NodeErrorCode: {
|
|
|
1465
1465
|
*/
|
|
1466
1466
|
export type NodeErrorCode = (typeof NodeErrorCode)[keyof typeof NodeErrorCode];
|
|
1467
1467
|
/**
|
|
1468
|
-
* <p>Contains information about a failure that occurred at a specific node during a flow
|
|
1468
|
+
* <p>Contains information about a failure that occurred at a specific node during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1469
1469
|
* @public
|
|
1470
1470
|
*/
|
|
1471
1471
|
export interface NodeFailureEvent {
|
|
@@ -1491,7 +1491,7 @@ export interface NodeFailureEvent {
|
|
|
1491
1491
|
errorMessage: string | undefined;
|
|
1492
1492
|
}
|
|
1493
1493
|
/**
|
|
1494
|
-
* <p>Contains the content of a flow node's input or output field for
|
|
1494
|
+
* <p>Contains the content of a flow node's input or output field for a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1495
1495
|
* @public
|
|
1496
1496
|
*/
|
|
1497
1497
|
export type NodeExecutionContent = NodeExecutionContent.DocumentMember | NodeExecutionContent.$UnknownMember;
|
|
@@ -1521,7 +1521,7 @@ export declare namespace NodeExecutionContent {
|
|
|
1521
1521
|
const visit: <T>(value: NodeExecutionContent, visitor: Visitor<T>) => T;
|
|
1522
1522
|
}
|
|
1523
1523
|
/**
|
|
1524
|
-
* <p>Represents an input field provided to a node during a flow
|
|
1524
|
+
* <p>Represents an input field provided to a node during a flow execution.</p>
|
|
1525
1525
|
* @public
|
|
1526
1526
|
*/
|
|
1527
1527
|
export interface NodeInputField {
|
|
@@ -1537,7 +1537,7 @@ export interface NodeInputField {
|
|
|
1537
1537
|
content: NodeExecutionContent | undefined;
|
|
1538
1538
|
}
|
|
1539
1539
|
/**
|
|
1540
|
-
* <p>Contains information about the inputs provided to a specific node during a flow
|
|
1540
|
+
* <p>Contains information about the inputs provided to a specific node during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1541
1541
|
* @public
|
|
1542
1542
|
*/
|
|
1543
1543
|
export interface NodeInputEvent {
|
|
@@ -1558,7 +1558,7 @@ export interface NodeInputEvent {
|
|
|
1558
1558
|
fields: NodeInputField[] | undefined;
|
|
1559
1559
|
}
|
|
1560
1560
|
/**
|
|
1561
|
-
* <p>Represents an output field produced by a node during a flow
|
|
1561
|
+
* <p>Represents an output field produced by a node during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1562
1562
|
* @public
|
|
1563
1563
|
*/
|
|
1564
1564
|
export interface NodeOutputField {
|
|
@@ -1574,7 +1574,7 @@ export interface NodeOutputField {
|
|
|
1574
1574
|
content: NodeExecutionContent | undefined;
|
|
1575
1575
|
}
|
|
1576
1576
|
/**
|
|
1577
|
-
* <p>Contains information about the outputs produced by a specific node during a flow
|
|
1577
|
+
* <p>Contains information about the outputs produced by a specific node during a flow execution.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1578
1578
|
* @public
|
|
1579
1579
|
*/
|
|
1580
1580
|
export interface NodeOutputEvent {
|
|
@@ -1595,7 +1595,7 @@ export interface NodeOutputEvent {
|
|
|
1595
1595
|
fields: NodeOutputField[] | undefined;
|
|
1596
1596
|
}
|
|
1597
1597
|
/**
|
|
1598
|
-
* <p>Represents an event that occurred during an
|
|
1598
|
+
* <p>Represents an event that occurred during an flow execution. This is a union type that can contain one of several event types, such as node input and output events; flow input and output events; condition node result events, or failure events.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1599
1599
|
* @public
|
|
1600
1600
|
*/
|
|
1601
1601
|
export type FlowExecutionEvent = FlowExecutionEvent.ConditionResultEventMember | FlowExecutionEvent.FlowFailureEventMember | FlowExecutionEvent.FlowInputEventMember | FlowExecutionEvent.FlowOutputEventMember | FlowExecutionEvent.NodeFailureEventMember | FlowExecutionEvent.NodeInputEventMember | FlowExecutionEvent.NodeOutputEventMember | FlowExecutionEvent.$UnknownMember;
|
|
@@ -1660,7 +1660,7 @@ export declare namespace FlowExecutionEvent {
|
|
|
1660
1660
|
$unknown?: never;
|
|
1661
1661
|
}
|
|
1662
1662
|
/**
|
|
1663
|
-
* <p>Contains information about a condition evaluation result during the
|
|
1663
|
+
* <p>Contains information about a condition evaluation result during the flow execution. This event is generated when a condition node in the flow evaluates its conditions.</p>
|
|
1664
1664
|
* @public
|
|
1665
1665
|
*/
|
|
1666
1666
|
interface ConditionResultEventMember {
|
|
@@ -1731,7 +1731,7 @@ export declare namespace FlowExecutionEvent {
|
|
|
1731
1731
|
*/
|
|
1732
1732
|
export interface ListFlowExecutionEventsResponse {
|
|
1733
1733
|
/**
|
|
1734
|
-
* <p>A list of events that occurred during the
|
|
1734
|
+
* <p>A list of events that occurred during the flow execution. Events can include node inputs and outputs, flow inputs and outputs, condition results, and failure events.</p>
|
|
1735
1735
|
* @public
|
|
1736
1736
|
*/
|
|
1737
1737
|
flowExecutionEvents: FlowExecutionEvent[] | undefined;
|
|
@@ -1756,7 +1756,7 @@ export interface ListFlowExecutionsRequest {
|
|
|
1756
1756
|
*/
|
|
1757
1757
|
flowAliasIdentifier?: string | undefined;
|
|
1758
1758
|
/**
|
|
1759
|
-
* <p>The maximum number of
|
|
1759
|
+
* <p>The maximum number of flow executions to return in a single response. If more executions exist than the specified <code>maxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p>
|
|
1760
1760
|
* @public
|
|
1761
1761
|
*/
|
|
1762
1762
|
maxResults?: number | undefined;
|
|
@@ -1767,12 +1767,12 @@ export interface ListFlowExecutionsRequest {
|
|
|
1767
1767
|
nextToken?: string | undefined;
|
|
1768
1768
|
}
|
|
1769
1769
|
/**
|
|
1770
|
-
* <p>Contains summary information about a flow
|
|
1770
|
+
* <p>Contains summary information about a flow execution, including its status, timestamps, and identifiers.</p> <note> <p>Flow executions is in preview release for Amazon Bedrock and is subject to change.</p> </note>
|
|
1771
1771
|
* @public
|
|
1772
1772
|
*/
|
|
1773
1773
|
export interface FlowExecutionSummary {
|
|
1774
1774
|
/**
|
|
1775
|
-
* <p>The Amazon Resource Name (ARN) that uniquely identifies the
|
|
1775
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the flow execution.</p>
|
|
1776
1776
|
* @public
|
|
1777
1777
|
*/
|
|
1778
1778
|
executionArn: string | undefined;
|
|
@@ -1792,17 +1792,17 @@ export interface FlowExecutionSummary {
|
|
|
1792
1792
|
*/
|
|
1793
1793
|
flowVersion: string | undefined;
|
|
1794
1794
|
/**
|
|
1795
|
-
* <p>The current status of the
|
|
1795
|
+
* <p>The current status of the flow execution.</p> <p>Flow executions time out after 24 hours.</p>
|
|
1796
1796
|
* @public
|
|
1797
1797
|
*/
|
|
1798
1798
|
status: FlowExecutionStatus | undefined;
|
|
1799
1799
|
/**
|
|
1800
|
-
* <p>The timestamp when the
|
|
1800
|
+
* <p>The timestamp when the flow execution was created.</p>
|
|
1801
1801
|
* @public
|
|
1802
1802
|
*/
|
|
1803
1803
|
createdAt: Date | undefined;
|
|
1804
1804
|
/**
|
|
1805
|
-
* <p>The timestamp when the
|
|
1805
|
+
* <p>The timestamp when the flow execution ended. This field is only populated when the execution has completed, failed, timed out, or been aborted.</p>
|
|
1806
1806
|
* @public
|
|
1807
1807
|
*/
|
|
1808
1808
|
endedAt?: Date | undefined;
|
|
@@ -1812,7 +1812,7 @@ export interface FlowExecutionSummary {
|
|
|
1812
1812
|
*/
|
|
1813
1813
|
export interface ListFlowExecutionsResponse {
|
|
1814
1814
|
/**
|
|
1815
|
-
* <p>A list of
|
|
1815
|
+
* <p>A list of flow execution summaries. Each summary includes the execution ARN, flow identifier, flow alias identifier, flow version, status, and timestamps.</p>
|
|
1816
1816
|
* @public
|
|
1817
1817
|
*/
|
|
1818
1818
|
flowExecutionSummaries: FlowExecutionSummary[] | undefined;
|
|
@@ -1980,22 +1980,22 @@ export interface StartFlowExecutionRequest {
|
|
|
1980
1980
|
*/
|
|
1981
1981
|
flowIdentifier: string | undefined;
|
|
1982
1982
|
/**
|
|
1983
|
-
* <p>The unique identifier of the flow alias to use for the
|
|
1983
|
+
* <p>The unique identifier of the flow alias to use for the flow execution.</p>
|
|
1984
1984
|
* @public
|
|
1985
1985
|
*/
|
|
1986
1986
|
flowAliasIdentifier: string | undefined;
|
|
1987
1987
|
/**
|
|
1988
|
-
* <p>The unique name for the
|
|
1988
|
+
* <p>The unique name for the flow execution. If you don't provide one, a system-generated name is used.</p>
|
|
1989
1989
|
* @public
|
|
1990
1990
|
*/
|
|
1991
1991
|
flowExecutionName?: string | undefined;
|
|
1992
1992
|
/**
|
|
1993
|
-
* <p>The input data required for the
|
|
1993
|
+
* <p>The input data required for the flow execution. This must match the input schema defined in the flow.</p>
|
|
1994
1994
|
* @public
|
|
1995
1995
|
*/
|
|
1996
1996
|
inputs: FlowInput[] | undefined;
|
|
1997
1997
|
/**
|
|
1998
|
-
* <p>The performance settings for the foundation model used in the
|
|
1998
|
+
* <p>The performance settings for the foundation model used in the flow execution.</p>
|
|
1999
1999
|
* @public
|
|
2000
2000
|
*/
|
|
2001
2001
|
modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
|
|
@@ -2005,7 +2005,7 @@ export interface StartFlowExecutionRequest {
|
|
|
2005
2005
|
*/
|
|
2006
2006
|
export interface StartFlowExecutionResponse {
|
|
2007
2007
|
/**
|
|
2008
|
-
* <p>The Amazon Resource Name (ARN) that uniquely identifies the
|
|
2008
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the flow execution.</p>
|
|
2009
2009
|
* @public
|
|
2010
2010
|
*/
|
|
2011
2011
|
executionArn?: string | undefined;
|
|
@@ -2025,7 +2025,7 @@ export interface StopFlowExecutionRequest {
|
|
|
2025
2025
|
*/
|
|
2026
2026
|
flowAliasIdentifier: string | undefined;
|
|
2027
2027
|
/**
|
|
2028
|
-
* <p>The unique identifier of the
|
|
2028
|
+
* <p>The unique identifier of the flow execution to stop.</p>
|
|
2029
2029
|
* @public
|
|
2030
2030
|
*/
|
|
2031
2031
|
executionIdentifier: string | undefined;
|
|
@@ -2035,12 +2035,12 @@ export interface StopFlowExecutionRequest {
|
|
|
2035
2035
|
*/
|
|
2036
2036
|
export interface StopFlowExecutionResponse {
|
|
2037
2037
|
/**
|
|
2038
|
-
* <p>The Amazon Resource Name (ARN) that uniquely identifies the
|
|
2038
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the flow execution that was stopped.</p>
|
|
2039
2039
|
* @public
|
|
2040
2040
|
*/
|
|
2041
2041
|
executionArn?: string | undefined;
|
|
2042
2042
|
/**
|
|
2043
|
-
* <p>The updated status of the
|
|
2043
|
+
* <p>The updated status of the flow execution after the stop request. This will typically be ABORTED if the execution was successfully stopped.</p>
|
|
2044
2044
|
* @public
|
|
2045
2045
|
*/
|
|
2046
2046
|
status: FlowExecutionStatus | undefined;
|
|
@@ -2978,6 +2978,22 @@ export interface BedrockModelConfigurations {
|
|
|
2978
2978
|
*/
|
|
2979
2979
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2980
2980
|
}
|
|
2981
|
+
/**
|
|
2982
|
+
* <p>Specifies parameters that control how the service populates the agent prompt for an <code>InvokeAgent</code> or <code>InvokeInlineAgent</code> request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.</p>
|
|
2983
|
+
* @public
|
|
2984
|
+
*/
|
|
2985
|
+
export interface PromptCreationConfigurations {
|
|
2986
|
+
/**
|
|
2987
|
+
* <p>The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session.</p>
|
|
2988
|
+
* @public
|
|
2989
|
+
*/
|
|
2990
|
+
previousConversationTurnsToInclude?: number | undefined;
|
|
2991
|
+
/**
|
|
2992
|
+
* <p>If <code>true</code>, the service removes any content between <code><thinking></code> tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value is <code>false</code>.</p>
|
|
2993
|
+
* @public
|
|
2994
|
+
*/
|
|
2995
|
+
excludePreviousThinkingSteps?: boolean | undefined;
|
|
2996
|
+
}
|
|
2981
2997
|
/**
|
|
2982
2998
|
* <p>A content block.</p>
|
|
2983
2999
|
* @public
|
|
@@ -7240,17 +7256,6 @@ export interface GuardrailEvent {
|
|
|
7240
7256
|
*/
|
|
7241
7257
|
action?: GuadrailAction | undefined;
|
|
7242
7258
|
}
|
|
7243
|
-
/**
|
|
7244
|
-
* <p>A retrieve and generate output event.</p>
|
|
7245
|
-
* @public
|
|
7246
|
-
*/
|
|
7247
|
-
export interface RetrieveAndGenerateOutputEvent {
|
|
7248
|
-
/**
|
|
7249
|
-
* <p>A text response.</p>
|
|
7250
|
-
* @public
|
|
7251
|
-
*/
|
|
7252
|
-
text: string | undefined;
|
|
7253
|
-
}
|
|
7254
7259
|
/**
|
|
7255
7260
|
* @internal
|
|
7256
7261
|
*/
|
|
@@ -7883,7 +7888,3 @@ export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (obj: Retrie
|
|
|
7883
7888
|
* @internal
|
|
7884
7889
|
*/
|
|
7885
7890
|
export declare const CitationEventFilterSensitiveLog: (obj: CitationEvent) => any;
|
|
7886
|
-
/**
|
|
7887
|
-
* @internal
|
|
7888
|
-
*/
|
|
7889
|
-
export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (obj: RetrieveAndGenerateOutputEvent) => any;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import { AccessDeniedException, AgentActionGroup, AgentCollaboration, BadGatewayException, BedrockModelConfigurations, CitationEvent, CollaboratorConfiguration, ConflictException, ConversationHistory, CustomOrchestration, DependencyFailedException, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuadrailAction, GuardrailConfiguration, GuardrailConfigurationWithArn, GuardrailEvent, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InternalServerException, InvocationResultMember, OrchestrationConfiguration, OrchestrationType, PromptOverrideConfiguration, ResourceNotFoundException, RetrievalResultContent, RetrievalResultLocation, RetrieveAndGenerateInput,
|
|
2
|
+
import { AccessDeniedException, AgentActionGroup, AgentCollaboration, BadGatewayException, BedrockModelConfigurations, CitationEvent, CollaboratorConfiguration, ConflictException, ConversationHistory, CustomOrchestration, DependencyFailedException, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuadrailAction, GuardrailConfiguration, GuardrailConfigurationWithArn, GuardrailEvent, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InternalServerException, InvocationResultMember, OrchestrationConfiguration, OrchestrationType, PromptCreationConfigurations, PromptOverrideConfiguration, ResourceNotFoundException, RetrievalResultContent, RetrievalResultLocation, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrieveAndGenerateType, SearchType, ServiceQuotaExceededException, StreamingConfigurations, ThrottlingException, ValidationException, VectorSearchRerankingConfiguration } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* <p>A retrieve and generate output event.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface RetrieveAndGenerateOutputEvent {
|
|
8
|
+
/**
|
|
9
|
+
* <p>A text response.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
text: string | undefined;
|
|
13
|
+
}
|
|
3
14
|
/**
|
|
4
15
|
* <p>A retrieve and generate stream response output.</p>
|
|
5
16
|
* @public
|
|
@@ -1754,6 +1765,11 @@ export interface InvokeAgentRequest {
|
|
|
1754
1765
|
* @public
|
|
1755
1766
|
*/
|
|
1756
1767
|
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
1768
|
+
/**
|
|
1769
|
+
* <p>Specifies parameters that control how the service populates the agent prompt for an <code>InvokeAgent</code> request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.</p>
|
|
1770
|
+
* @public
|
|
1771
|
+
*/
|
|
1772
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
1757
1773
|
/**
|
|
1758
1774
|
* <p>The ARN of the resource making the request.</p>
|
|
1759
1775
|
* @public
|
|
@@ -1844,6 +1860,11 @@ export interface InvokeInlineAgentRequest {
|
|
|
1844
1860
|
* @public
|
|
1845
1861
|
*/
|
|
1846
1862
|
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
1863
|
+
/**
|
|
1864
|
+
* <p>Specifies parameters that control how the service populates the agent prompt for an <code>InvokeInlineAgent</code> request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.</p>
|
|
1865
|
+
* @public
|
|
1866
|
+
*/
|
|
1867
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
1847
1868
|
/**
|
|
1848
1869
|
* <p> Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>. </p> <note> <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p> </note>
|
|
1849
1870
|
* @public
|
|
@@ -1870,6 +1891,10 @@ export interface InvokeInlineAgentRequest {
|
|
|
1870
1891
|
*/
|
|
1871
1892
|
customOrchestration?: CustomOrchestration | undefined;
|
|
1872
1893
|
}
|
|
1894
|
+
/**
|
|
1895
|
+
* @internal
|
|
1896
|
+
*/
|
|
1897
|
+
export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (obj: RetrieveAndGenerateOutputEvent) => any;
|
|
1873
1898
|
/**
|
|
1874
1899
|
* @internal
|
|
1875
1900
|
*/
|
|
@@ -1281,6 +1281,10 @@ export interface GenerateQueryResponse {
|
|
|
1281
1281
|
export interface BedrockModelConfigurations {
|
|
1282
1282
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
1283
1283
|
}
|
|
1284
|
+
export interface PromptCreationConfigurations {
|
|
1285
|
+
previousConversationTurnsToInclude?: number | undefined;
|
|
1286
|
+
excludePreviousThinkingSteps?: boolean | undefined;
|
|
1287
|
+
}
|
|
1284
1288
|
export type ContentBlock =
|
|
1285
1289
|
| ContentBlock.TextMember
|
|
1286
1290
|
| ContentBlock.$UnknownMember;
|
|
@@ -3229,9 +3233,6 @@ export interface CitationEvent {
|
|
|
3229
3233
|
export interface GuardrailEvent {
|
|
3230
3234
|
action?: GuadrailAction | undefined;
|
|
3231
3235
|
}
|
|
3232
|
-
export interface RetrieveAndGenerateOutputEvent {
|
|
3233
|
-
text: string | undefined;
|
|
3234
|
-
}
|
|
3235
3236
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
3236
3237
|
obj: ActionGroupInvocationInput
|
|
3237
3238
|
) => any;
|
|
@@ -3654,6 +3655,3 @@ export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (
|
|
|
3654
3655
|
export declare const CitationEventFilterSensitiveLog: (
|
|
3655
3656
|
obj: CitationEvent
|
|
3656
3657
|
) => any;
|
|
3657
|
-
export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (
|
|
3658
|
-
obj: RetrieveAndGenerateOutputEvent
|
|
3659
|
-
) => any;
|
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
InvocationResultMember,
|
|
27
27
|
OrchestrationConfiguration,
|
|
28
28
|
OrchestrationType,
|
|
29
|
+
PromptCreationConfigurations,
|
|
29
30
|
PromptOverrideConfiguration,
|
|
30
31
|
ResourceNotFoundException,
|
|
31
32
|
RetrievalResultContent,
|
|
32
33
|
RetrievalResultLocation,
|
|
33
34
|
RetrieveAndGenerateInput,
|
|
34
|
-
RetrieveAndGenerateOutputEvent,
|
|
35
35
|
RetrieveAndGenerateSessionConfiguration,
|
|
36
36
|
RetrieveAndGenerateType,
|
|
37
37
|
SearchType,
|
|
@@ -41,6 +41,9 @@ import {
|
|
|
41
41
|
ValidationException,
|
|
42
42
|
VectorSearchRerankingConfiguration,
|
|
43
43
|
} from "./models_0";
|
|
44
|
+
export interface RetrieveAndGenerateOutputEvent {
|
|
45
|
+
text: string | undefined;
|
|
46
|
+
}
|
|
44
47
|
export type RetrieveAndGenerateStreamResponseOutput =
|
|
45
48
|
| RetrieveAndGenerateStreamResponseOutput.AccessDeniedExceptionMember
|
|
46
49
|
| RetrieveAndGenerateStreamResponseOutput.BadGatewayExceptionMember
|
|
@@ -872,6 +875,7 @@ export interface InvokeAgentRequest {
|
|
|
872
875
|
memoryId?: string | undefined;
|
|
873
876
|
bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
|
|
874
877
|
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
878
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
875
879
|
sourceArn?: string | undefined;
|
|
876
880
|
}
|
|
877
881
|
export interface InvokeInlineAgentRequest {
|
|
@@ -891,12 +895,16 @@ export interface InvokeInlineAgentRequest {
|
|
|
891
895
|
enableTrace?: boolean | undefined;
|
|
892
896
|
inputText?: string | undefined;
|
|
893
897
|
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
898
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
894
899
|
inlineSessionState?: InlineSessionState | undefined;
|
|
895
900
|
collaborators?: Collaborator[] | undefined;
|
|
896
901
|
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
897
902
|
orchestrationType?: OrchestrationType | undefined;
|
|
898
903
|
customOrchestration?: CustomOrchestration | undefined;
|
|
899
904
|
}
|
|
905
|
+
export declare const RetrieveAndGenerateOutputEventFilterSensitiveLog: (
|
|
906
|
+
obj: RetrieveAndGenerateOutputEvent
|
|
907
|
+
) => any;
|
|
900
908
|
export declare const RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog: (
|
|
901
909
|
obj: RetrieveAndGenerateStreamResponseOutput
|
|
902
910
|
) => any;
|
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.828.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,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.826.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.828.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.821.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.821.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.821.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.828.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.821.0",
|
|
30
30
|
"@aws-sdk/types": "3.821.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.828.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.821.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.828.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.4",
|
|
35
|
-
"@smithy/core": "^3.5.
|
|
35
|
+
"@smithy/core": "^3.5.3",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.0.4",
|
|
37
37
|
"@smithy/eventstream-serde-config-resolver": "^4.1.2",
|
|
38
38
|
"@smithy/eventstream-serde-node": "^4.0.4",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"@smithy/hash-node": "^4.0.4",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.0.4",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.0.4",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
44
|
-
"@smithy/middleware-retry": "^4.1.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.1.11",
|
|
44
|
+
"@smithy/middleware-retry": "^4.1.12",
|
|
45
45
|
"@smithy/middleware-serde": "^4.0.8",
|
|
46
46
|
"@smithy/middleware-stack": "^4.0.4",
|
|
47
47
|
"@smithy/node-config-provider": "^4.1.3",
|
|
48
48
|
"@smithy/node-http-handler": "^4.0.6",
|
|
49
49
|
"@smithy/protocol-http": "^5.1.2",
|
|
50
|
-
"@smithy/smithy-client": "^4.4.
|
|
50
|
+
"@smithy/smithy-client": "^4.4.3",
|
|
51
51
|
"@smithy/types": "^4.3.1",
|
|
52
52
|
"@smithy/url-parser": "^4.0.4",
|
|
53
53
|
"@smithy/util-base64": "^4.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.0.19",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.0.19",
|
|
58
58
|
"@smithy/util-endpoints": "^3.0.6",
|
|
59
59
|
"@smithy/util-middleware": "^4.0.4",
|
|
60
60
|
"@smithy/util-retry": "^4.0.5",
|