@aws-sdk/client-bedrock-agent-runtime 3.1152.0 → 3.1154.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 +22 -5
- package/dist-es/schemas/schemas_0.js +19 -4
- package/dist-types/commands/AgenticRetrieveStreamCommand.d.ts +8 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +38 -37
- package/dist-types/models/models_1.d.ts +42 -1
- package/dist-types/schemas/schemas_0.d.ts +2 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +9 -10
- package/dist-types/ts3.4/models/models_1.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -70,7 +70,7 @@ const commonParams = {
|
|
|
70
70
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
var version = "3.
|
|
73
|
+
var version = "3.1153.0";
|
|
74
74
|
var packageInfo = {
|
|
75
75
|
version: version};
|
|
76
76
|
|
|
@@ -301,6 +301,7 @@ const _APpi = "ApiParameters";
|
|
|
301
301
|
const _AR = "AgenticRetriever";
|
|
302
302
|
const _ARA = "AgenticRetrieveAction";
|
|
303
303
|
const _ARAD = "AgenticRetrieveActionDetails";
|
|
304
|
+
const _ARAI = "AgenticRetrieveAppliedInstruction";
|
|
304
305
|
const _ARAg = "AgenticRetrieveActions";
|
|
305
306
|
const _ARB = "ApiRequestBody";
|
|
306
307
|
const _ARBGC = "AgenticRetrieveBedrockGuardrailConfiguration";
|
|
@@ -316,6 +317,7 @@ const _ARFDED = "AgenticRetrieveFullDocExpansionDetails";
|
|
|
316
317
|
const _ARFg = "AgenticRetrieveFailures";
|
|
317
318
|
const _ARGR = "AgenticRetrieveGeneratedResponse";
|
|
318
319
|
const _ARGW = "AgenticRetrieveGuardrailWarning";
|
|
320
|
+
const _ARIC = "AgenticRetrieveInstructionConfiguration";
|
|
319
321
|
const _ARM = "AgenticRetrieveMessage";
|
|
320
322
|
const _ARMC = "AgenticRetrieveMemoryConfiguration";
|
|
321
323
|
const _ARMCg = "AgenticRetrieveMessageContent";
|
|
@@ -819,6 +821,7 @@ const _aI = "actorId";
|
|
|
819
821
|
const _aII = "apiInvocationInput";
|
|
820
822
|
const _aIT = "actionInvocationType";
|
|
821
823
|
const _aIg = "agentId";
|
|
824
|
+
const _aIp = "appliedInstruction";
|
|
822
825
|
const _aL = "allowList";
|
|
823
826
|
const _aMRF = "additionalModelRequestFields";
|
|
824
827
|
const _aN = "agentName";
|
|
@@ -1154,6 +1157,8 @@ const _rCet = "retrievalConfiguration";
|
|
|
1154
1157
|
const _rCetu = "returnControl";
|
|
1155
1158
|
const _rE = "responseEvent";
|
|
1156
1159
|
const _rI = "resultIndex";
|
|
1160
|
+
const _rIC = "retrievalInstructionConfiguration";
|
|
1161
|
+
const _rII = "retrievalInstructionId";
|
|
1157
1162
|
const _rIe = "requestId";
|
|
1158
1163
|
const _rM = "retrievalMetadata";
|
|
1159
1164
|
const _rMT = "rerankingModelType";
|
|
@@ -1431,6 +1436,11 @@ var AgenticRetrieveActionDetails$ = [3, n0, _ARAD,
|
|
|
1431
1436
|
[_iQ, _sR],
|
|
1432
1437
|
[[() => AgenticRetrieveMessageContent$, 0], () => AgenticRetrieveSourceRetrieverList], 2
|
|
1433
1438
|
];
|
|
1439
|
+
var AgenticRetrieveAppliedInstruction$ = [3, n0, _ARAI,
|
|
1440
|
+
0,
|
|
1441
|
+
[_id, _ve],
|
|
1442
|
+
[0, 0], 1
|
|
1443
|
+
];
|
|
1434
1444
|
var AgenticRetrieveBedrockGuardrailConfiguration$ = [3, n0, _ARBGC,
|
|
1435
1445
|
0,
|
|
1436
1446
|
[_gI, _gV],
|
|
@@ -1481,6 +1491,11 @@ var AgenticRetrieveGuardrailWarning$ = [3, n0, _ARGW,
|
|
|
1481
1491
|
[_id, _ve, _ac, _m],
|
|
1482
1492
|
[0, 0, 0, 0], 3
|
|
1483
1493
|
];
|
|
1494
|
+
var AgenticRetrieveInstructionConfiguration$ = [3, n0, _ARIC,
|
|
1495
|
+
0,
|
|
1496
|
+
[_rII, _ve],
|
|
1497
|
+
[0, 0], 1
|
|
1498
|
+
];
|
|
1484
1499
|
var AgenticRetrieveMemoryConfiguration$ = [3, n0, _ARMC,
|
|
1485
1500
|
0,
|
|
1486
1501
|
[_mI, _sB, _rCe, _pM],
|
|
@@ -1558,8 +1573,8 @@ var AgenticRetrieveSourceRetriever$ = [3, n0, _ARSR,
|
|
|
1558
1573
|
];
|
|
1559
1574
|
var AgenticRetrieveStreamRequest$ = [3, n0, _ARSRg,
|
|
1560
1575
|
0,
|
|
1561
|
-
[_mes, _ret, _aRC, _pC, _nT, _uC, _mCe, _gRe],
|
|
1562
|
-
[[() => AgenticRetrieveMessages, 0], [() => AgenticRetrievers, 0], () => AgenticRetrieveConfiguration$, () => AgenticRetrievePolicyConfiguration$, 0, [() => UserContext$, 0], () => AgenticRetrieveMemoryConfiguration$, 2], 3
|
|
1576
|
+
[_mes, _ret, _aRC, _pC, _nT, _uC, _mCe, _rIC, _gRe],
|
|
1577
|
+
[[() => AgenticRetrieveMessages, 0], [() => AgenticRetrievers, 0], () => AgenticRetrieveConfiguration$, () => AgenticRetrievePolicyConfiguration$, 0, [() => UserContext$, 0], () => AgenticRetrieveMemoryConfiguration$, () => AgenticRetrieveInstructionConfiguration$, 2], 3
|
|
1563
1578
|
];
|
|
1564
1579
|
var AgenticRetrieveStreamResponse$ = [3, n0, _ARSRge,
|
|
1565
1580
|
0,
|
|
@@ -1573,8 +1588,8 @@ var AgenticRetrieveTraceEvent$ = [3, n0, _ARTE,
|
|
|
1573
1588
|
];
|
|
1574
1589
|
var AgenticRetrieveTraceEventAttributes$ = [3, n0, _ARTEA,
|
|
1575
1590
|
0,
|
|
1576
|
-
[_ste, _sta, _m, _act, _w, _fa, _rM, _rR],
|
|
1577
|
-
[0, 0, 0, [() => AgenticRetrieveActions, 0], () => AgenticRetrieveWarnings, () => AgenticRetrieveFailures, () => AgenticRetrieveSourceMetadataList, () => AgenticRetrieveTraceResults], 3
|
|
1591
|
+
[_ste, _sta, _m, _act, _w, _fa, _rM, _rR, _aIp],
|
|
1592
|
+
[0, 0, 0, [() => AgenticRetrieveActions, 0], () => AgenticRetrieveWarnings, () => AgenticRetrieveFailures, () => AgenticRetrieveSourceMetadataList, () => AgenticRetrieveTraceResults, () => AgenticRetrieveAppliedInstruction$], 3
|
|
1578
1593
|
];
|
|
1579
1594
|
var AgenticRetrieveTraceResultItem$ = [3, n0, _ARTRI,
|
|
1580
1595
|
0,
|
|
@@ -4371,6 +4386,7 @@ exports.AgentCollaboratorInvocationOutput$ = AgentCollaboratorInvocationOutput$;
|
|
|
4371
4386
|
exports.AgentCollaboratorOutputPayload$ = AgentCollaboratorOutputPayload$;
|
|
4372
4387
|
exports.AgenticRetrieveAction$ = AgenticRetrieveAction$;
|
|
4373
4388
|
exports.AgenticRetrieveActionDetails$ = AgenticRetrieveActionDetails$;
|
|
4389
|
+
exports.AgenticRetrieveAppliedInstruction$ = AgenticRetrieveAppliedInstruction$;
|
|
4374
4390
|
exports.AgenticRetrieveBedrockGuardrailConfiguration$ = AgenticRetrieveBedrockGuardrailConfiguration$;
|
|
4375
4391
|
exports.AgenticRetrieveBedrockRerankingConfiguration$ = AgenticRetrieveBedrockRerankingConfiguration$;
|
|
4376
4392
|
exports.AgenticRetrieveBedrockRerankingModelConfiguration$ = AgenticRetrieveBedrockRerankingModelConfiguration$;
|
|
@@ -4381,6 +4397,7 @@ exports.AgenticRetrieveFailure$ = AgenticRetrieveFailure$;
|
|
|
4381
4397
|
exports.AgenticRetrieveFullDocExpansionDetails$ = AgenticRetrieveFullDocExpansionDetails$;
|
|
4382
4398
|
exports.AgenticRetrieveGeneratedResponse$ = AgenticRetrieveGeneratedResponse$;
|
|
4383
4399
|
exports.AgenticRetrieveGuardrailWarning$ = AgenticRetrieveGuardrailWarning$;
|
|
4400
|
+
exports.AgenticRetrieveInstructionConfiguration$ = AgenticRetrieveInstructionConfiguration$;
|
|
4384
4401
|
exports.AgenticRetrieveMemoryConfiguration$ = AgenticRetrieveMemoryConfiguration$;
|
|
4385
4402
|
exports.AgenticRetrieveMemoryMetadataFilter$ = AgenticRetrieveMemoryMetadataFilter$;
|
|
4386
4403
|
exports.AgenticRetrieveMemoryMetadataFilterLeft$ = AgenticRetrieveMemoryMetadataFilterLeft$;
|
|
@@ -22,6 +22,7 @@ const _APpi = "ApiParameters";
|
|
|
22
22
|
const _AR = "AgenticRetriever";
|
|
23
23
|
const _ARA = "AgenticRetrieveAction";
|
|
24
24
|
const _ARAD = "AgenticRetrieveActionDetails";
|
|
25
|
+
const _ARAI = "AgenticRetrieveAppliedInstruction";
|
|
25
26
|
const _ARAg = "AgenticRetrieveActions";
|
|
26
27
|
const _ARB = "ApiRequestBody";
|
|
27
28
|
const _ARBGC = "AgenticRetrieveBedrockGuardrailConfiguration";
|
|
@@ -37,6 +38,7 @@ const _ARFDED = "AgenticRetrieveFullDocExpansionDetails";
|
|
|
37
38
|
const _ARFg = "AgenticRetrieveFailures";
|
|
38
39
|
const _ARGR = "AgenticRetrieveGeneratedResponse";
|
|
39
40
|
const _ARGW = "AgenticRetrieveGuardrailWarning";
|
|
41
|
+
const _ARIC = "AgenticRetrieveInstructionConfiguration";
|
|
40
42
|
const _ARM = "AgenticRetrieveMessage";
|
|
41
43
|
const _ARMC = "AgenticRetrieveMemoryConfiguration";
|
|
42
44
|
const _ARMCg = "AgenticRetrieveMessageContent";
|
|
@@ -540,6 +542,7 @@ const _aI = "actorId";
|
|
|
540
542
|
const _aII = "apiInvocationInput";
|
|
541
543
|
const _aIT = "actionInvocationType";
|
|
542
544
|
const _aIg = "agentId";
|
|
545
|
+
const _aIp = "appliedInstruction";
|
|
543
546
|
const _aL = "allowList";
|
|
544
547
|
const _aMRF = "additionalModelRequestFields";
|
|
545
548
|
const _aN = "agentName";
|
|
@@ -875,6 +878,8 @@ const _rCet = "retrievalConfiguration";
|
|
|
875
878
|
const _rCetu = "returnControl";
|
|
876
879
|
const _rE = "responseEvent";
|
|
877
880
|
const _rI = "resultIndex";
|
|
881
|
+
const _rIC = "retrievalInstructionConfiguration";
|
|
882
|
+
const _rII = "retrievalInstructionId";
|
|
878
883
|
const _rIe = "requestId";
|
|
879
884
|
const _rM = "retrievalMetadata";
|
|
880
885
|
const _rMT = "rerankingModelType";
|
|
@@ -1155,6 +1160,11 @@ export var AgenticRetrieveActionDetails$ = [3, n0, _ARAD,
|
|
|
1155
1160
|
[_iQ, _sR],
|
|
1156
1161
|
[[() => AgenticRetrieveMessageContent$, 0], () => AgenticRetrieveSourceRetrieverList], 2
|
|
1157
1162
|
];
|
|
1163
|
+
export var AgenticRetrieveAppliedInstruction$ = [3, n0, _ARAI,
|
|
1164
|
+
0,
|
|
1165
|
+
[_id, _ve],
|
|
1166
|
+
[0, 0], 1
|
|
1167
|
+
];
|
|
1158
1168
|
export var AgenticRetrieveBedrockGuardrailConfiguration$ = [3, n0, _ARBGC,
|
|
1159
1169
|
0,
|
|
1160
1170
|
[_gI, _gV],
|
|
@@ -1205,6 +1215,11 @@ export var AgenticRetrieveGuardrailWarning$ = [3, n0, _ARGW,
|
|
|
1205
1215
|
[_id, _ve, _ac, _m],
|
|
1206
1216
|
[0, 0, 0, 0], 3
|
|
1207
1217
|
];
|
|
1218
|
+
export var AgenticRetrieveInstructionConfiguration$ = [3, n0, _ARIC,
|
|
1219
|
+
0,
|
|
1220
|
+
[_rII, _ve],
|
|
1221
|
+
[0, 0], 1
|
|
1222
|
+
];
|
|
1208
1223
|
export var AgenticRetrieveMemoryConfiguration$ = [3, n0, _ARMC,
|
|
1209
1224
|
0,
|
|
1210
1225
|
[_mI, _sB, _rCe, _pM],
|
|
@@ -1282,8 +1297,8 @@ export var AgenticRetrieveSourceRetriever$ = [3, n0, _ARSR,
|
|
|
1282
1297
|
];
|
|
1283
1298
|
export var AgenticRetrieveStreamRequest$ = [3, n0, _ARSRg,
|
|
1284
1299
|
0,
|
|
1285
|
-
[_mes, _ret, _aRC, _pC, _nT, _uC, _mCe, _gRe],
|
|
1286
|
-
[[() => AgenticRetrieveMessages, 0], [() => AgenticRetrievers, 0], () => AgenticRetrieveConfiguration$, () => AgenticRetrievePolicyConfiguration$, 0, [() => UserContext$, 0], () => AgenticRetrieveMemoryConfiguration$, 2], 3
|
|
1300
|
+
[_mes, _ret, _aRC, _pC, _nT, _uC, _mCe, _rIC, _gRe],
|
|
1301
|
+
[[() => AgenticRetrieveMessages, 0], [() => AgenticRetrievers, 0], () => AgenticRetrieveConfiguration$, () => AgenticRetrievePolicyConfiguration$, 0, [() => UserContext$, 0], () => AgenticRetrieveMemoryConfiguration$, () => AgenticRetrieveInstructionConfiguration$, 2], 3
|
|
1287
1302
|
];
|
|
1288
1303
|
export var AgenticRetrieveStreamResponse$ = [3, n0, _ARSRge,
|
|
1289
1304
|
0,
|
|
@@ -1297,8 +1312,8 @@ export var AgenticRetrieveTraceEvent$ = [3, n0, _ARTE,
|
|
|
1297
1312
|
];
|
|
1298
1313
|
export var AgenticRetrieveTraceEventAttributes$ = [3, n0, _ARTEA,
|
|
1299
1314
|
0,
|
|
1300
|
-
[_ste, _sta, _m, _act, _w, _fa, _rM, _rR],
|
|
1301
|
-
[0, 0, 0, [() => AgenticRetrieveActions, 0], () => AgenticRetrieveWarnings, () => AgenticRetrieveFailures, () => AgenticRetrieveSourceMetadataList, () => AgenticRetrieveTraceResults], 3
|
|
1315
|
+
[_ste, _sta, _m, _act, _w, _fa, _rM, _rR, _aIp],
|
|
1316
|
+
[0, 0, 0, [() => AgenticRetrieveActions, 0], () => AgenticRetrieveWarnings, () => AgenticRetrieveFailures, () => AgenticRetrieveSourceMetadataList, () => AgenticRetrieveTraceResults, () => AgenticRetrieveAppliedInstruction$], 3
|
|
1302
1317
|
];
|
|
1303
1318
|
export var AgenticRetrieveTraceResultItem$ = [3, n0, _ARTRI,
|
|
1304
1319
|
0,
|
|
@@ -178,6 +178,10 @@ declare const AgenticRetrieveStreamCommand_base: {
|
|
|
178
178
|
* ],
|
|
179
179
|
* persistenceMode: "DEFAULT" || "NONE",
|
|
180
180
|
* },
|
|
181
|
+
* retrievalInstructionConfiguration: { // AgenticRetrieveInstructionConfiguration
|
|
182
|
+
* retrievalInstructionId: "STRING_VALUE", // required
|
|
183
|
+
* version: "STRING_VALUE",
|
|
184
|
+
* },
|
|
181
185
|
* generateResponse: true || false,
|
|
182
186
|
* };
|
|
183
187
|
* const command = new AgenticRetrieveStreamCommand(input);
|
|
@@ -287,6 +291,10 @@ declare const AgenticRetrieveStreamCommand_base: {
|
|
|
287
291
|
* // sourceRetriever: "<AgenticRetrieveSourceRetriever>",
|
|
288
292
|
* // },
|
|
289
293
|
* // ],
|
|
294
|
+
* // appliedInstruction: { // AgenticRetrieveAppliedInstruction
|
|
295
|
+
* // id: "STRING_VALUE", // required
|
|
296
|
+
* // version: "STRING_VALUE",
|
|
297
|
+
* // },
|
|
290
298
|
* // },
|
|
291
299
|
* // },
|
|
292
300
|
* // responseEvent: { // AgenticRetrieveResponseEvent
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { RetrieveAndGenerateResponse } from "../models/
|
|
3
|
-
import type { RetrieveAndGenerateRequest } from "../models/models_1";
|
|
2
|
+
import type { RetrieveAndGenerateRequest, RetrieveAndGenerateResponse } from "../models/models_1";
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { ActionGroupSignature, ActionInvocationType, AgenticRetrieveMemoryMetadataFilterOperator, AgenticRetrieveMemoryPersistenceMode, AgenticRetrieveRerankingConfigurationType, AgenticRetrieveRerankingModelType, AgenticRetrieveStatus, AgenticRetrieveStep, AgenticRetrieveType, AttributeType, ConfirmationState, ConversationRole, CreationMode, CustomControlMethod, DocumentAclMemberRelation, DocumentAclMembershipType, DocumentOutputFormat, ExecutionType, ExternalSourceType, FileSourceType, FileUseCase, FlowCompletionReason, FlowControlNodeType, FlowErrorCode, FlowExecutionErrorType, FlowExecutionEventType, FlowExecutionStatus, FlowNodeInputCategory, FlowNodeIODataType, FoundationModelConfigurationType, FoundationModelType, GeneratedQueryType,
|
|
2
|
+
import type { ActionGroupSignature, ActionInvocationType, AgenticRetrieveMemoryMetadataFilterOperator, AgenticRetrieveMemoryPersistenceMode, AgenticRetrieveRerankingConfigurationType, AgenticRetrieveRerankingModelType, AgenticRetrieveStatus, AgenticRetrieveStep, AgenticRetrieveType, AttributeType, ConfirmationState, ConversationRole, CreationMode, CustomControlMethod, DocumentAclMemberRelation, DocumentAclMembershipType, DocumentOutputFormat, ExecutionType, ExternalSourceType, FileSourceType, FileUseCase, FlowCompletionReason, FlowControlNodeType, FlowErrorCode, FlowExecutionErrorType, FlowExecutionEventType, FlowExecutionStatus, FlowNodeInputCategory, FlowNodeIODataType, FoundationModelConfigurationType, FoundationModelType, GeneratedQueryType, GuardrailAction, GuardrailContentFilterConfidence, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailManagedWordType, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailWordPolicyAction, ImageInputFormat, InputQueryType, InvocationType, ManagedSearchRerankingConfigurationType, MemoryType, NodeErrorCode, NodeType, ParameterType, PayloadType, PerformanceConfigLatency, PromptState, PromptType, QueryTransformationMode, QueryTransformationType, RelayConversationHistory, RequireConfirmation, RerankDocumentType, RerankingConfigurationType, RerankingMetadataSelectionMode, RerankQueryContentType, RerankSourceType, ResponseState, RetrievalResultContentColumnType, RetrievalResultContentType, RetrievalResultLocationType, Source, TextToSqlConfigurationType, Type, VectorSearchRerankingConfigurationType } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ModelNotReadyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* <p> Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user. </p>
|
|
@@ -984,6 +984,22 @@ export interface AgenticRetrieveAction {
|
|
|
984
984
|
*/
|
|
985
985
|
memoryRetrieve?: AgenticRetrieveMemoryRetrieveDetails | undefined;
|
|
986
986
|
}
|
|
987
|
+
/**
|
|
988
|
+
* <p>The retrieval instruction, identified by its ID and version, that was applied to the request.</p>
|
|
989
|
+
* @public
|
|
990
|
+
*/
|
|
991
|
+
export interface AgenticRetrieveAppliedInstruction {
|
|
992
|
+
/**
|
|
993
|
+
* <p>The identifier of the retrieval instruction applied.</p>
|
|
994
|
+
* @public
|
|
995
|
+
*/
|
|
996
|
+
id: string | undefined;
|
|
997
|
+
/**
|
|
998
|
+
* <p>The version that was applied: a version number, or DRAFT. The service reports this version whenever it reports appliedInstruction, including DRAFT when the request did not specify a version.</p>
|
|
999
|
+
* @public
|
|
1000
|
+
*/
|
|
1001
|
+
version?: string | undefined;
|
|
1002
|
+
}
|
|
987
1003
|
/**
|
|
988
1004
|
* <p>Configuration for a Bedrock guardrail applied during agentic retrieval.</p>
|
|
989
1005
|
* @public
|
|
@@ -1224,6 +1240,22 @@ export interface AgenticRetrieveGuardrailWarning {
|
|
|
1224
1240
|
*/
|
|
1225
1241
|
message?: string | undefined;
|
|
1226
1242
|
}
|
|
1243
|
+
/**
|
|
1244
|
+
* <p>The retrieval instruction, identified by its ID and optional version, to apply to this request.</p>
|
|
1245
|
+
* @public
|
|
1246
|
+
*/
|
|
1247
|
+
export interface AgenticRetrieveInstructionConfiguration {
|
|
1248
|
+
/**
|
|
1249
|
+
* <p>The identifier of the retrieval instruction. The instruction must exist in the caller's account and its status must be ACTIVE.</p>
|
|
1250
|
+
* @public
|
|
1251
|
+
*/
|
|
1252
|
+
retrievalInstructionId: string | undefined;
|
|
1253
|
+
/**
|
|
1254
|
+
* <p>The version of the retrieval instruction to apply: a version number, or DRAFT for the instruction's current reviewed content. When omitted, DRAFT is used. This default is permanent.</p>
|
|
1255
|
+
* @public
|
|
1256
|
+
*/
|
|
1257
|
+
version?: string | undefined;
|
|
1258
|
+
}
|
|
1227
1259
|
/**
|
|
1228
1260
|
* <p>The left operand of a metadata filter expression. Set exactly one member.</p>
|
|
1229
1261
|
* @public
|
|
@@ -1720,6 +1752,11 @@ export interface AgenticRetrieveTraceEventAttributes {
|
|
|
1720
1752
|
* @public
|
|
1721
1753
|
*/
|
|
1722
1754
|
retrievalResponse?: AgenticRetrieveTraceResultItem[] | undefined;
|
|
1755
|
+
/**
|
|
1756
|
+
* <p>The agent reports the retrieval instruction applied to this request on the first planning step.</p>
|
|
1757
|
+
* @public
|
|
1758
|
+
*/
|
|
1759
|
+
appliedInstruction?: AgenticRetrieveAppliedInstruction | undefined;
|
|
1723
1760
|
}
|
|
1724
1761
|
/**
|
|
1725
1762
|
* <p>A trace event providing visibility into the agentic retrieval process.</p>
|
|
@@ -8228,39 +8265,3 @@ export interface RetrieveAndGenerateSessionConfiguration {
|
|
|
8228
8265
|
*/
|
|
8229
8266
|
kmsKeyArn: string | undefined;
|
|
8230
8267
|
}
|
|
8231
|
-
/**
|
|
8232
|
-
* <p>Contains the response generated from querying the knowledge base.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax">RetrieveAndGenerate response</a> – in the <code>output</code> field</p> </li> </ul>
|
|
8233
|
-
* @public
|
|
8234
|
-
*/
|
|
8235
|
-
export interface RetrieveAndGenerateOutput {
|
|
8236
|
-
/**
|
|
8237
|
-
* <p>The response generated from querying the knowledge base.</p>
|
|
8238
|
-
* @public
|
|
8239
|
-
*/
|
|
8240
|
-
text: string | undefined;
|
|
8241
|
-
}
|
|
8242
|
-
/**
|
|
8243
|
-
* @public
|
|
8244
|
-
*/
|
|
8245
|
-
export interface RetrieveAndGenerateResponse {
|
|
8246
|
-
/**
|
|
8247
|
-
* <p>The unique identifier of the session. When you first make a <code>RetrieveAndGenerate</code> request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the <code>sessionId</code> yourself.</p>
|
|
8248
|
-
* @public
|
|
8249
|
-
*/
|
|
8250
|
-
sessionId: string | undefined;
|
|
8251
|
-
/**
|
|
8252
|
-
* <p>Contains the response generated from querying the knowledge base.</p>
|
|
8253
|
-
* @public
|
|
8254
|
-
*/
|
|
8255
|
-
output: RetrieveAndGenerateOutput | undefined;
|
|
8256
|
-
/**
|
|
8257
|
-
* <p>A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.</p>
|
|
8258
|
-
* @public
|
|
8259
|
-
*/
|
|
8260
|
-
citations?: Citation[] | undefined;
|
|
8261
|
-
/**
|
|
8262
|
-
* <p>Specifies if there is a guardrail intervention in the response.</p>
|
|
8263
|
-
* @public
|
|
8264
|
-
*/
|
|
8265
|
-
guardrailAction?: GuadrailAction | undefined;
|
|
8266
|
-
}
|
|
@@ -1,7 +1,43 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import type { AgentCollaboration, GuadrailAction, ImageFormat, InputImageFormat, KnowledgeBaseQueryType, OrchestrationType, RerankingModelType, RetrieveAndGenerateType, SearchType, SessionStatus } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
|
-
import type { AgentActionGroup, AgenticRetrieveConfiguration, AgenticRetrieveMemoryConfiguration, AgenticRetrieveMessage, AgenticRetrievePolicyConfiguration, BedrockModelConfigurations, Citation, CollaboratorConfiguration, ConversationHistory, CustomOrchestration, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GeneratedResponsePart, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, ManagedSearchRerankingConfiguration, OrchestrationConfiguration, PromptCreationConfigurations, PromptOverrideConfiguration, RetrievalResultContent, RetrievalResultLocation, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrievedReference, StreamingConfigurations, UserContext, VectorSearchRerankingConfiguration } from "./models_0";
|
|
4
|
+
import type { AgentActionGroup, AgenticRetrieveConfiguration, AgenticRetrieveInstructionConfiguration, AgenticRetrieveMemoryConfiguration, AgenticRetrieveMessage, AgenticRetrievePolicyConfiguration, BedrockModelConfigurations, Citation, CollaboratorConfiguration, ConversationHistory, CustomOrchestration, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GeneratedResponsePart, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, ManagedSearchRerankingConfiguration, OrchestrationConfiguration, PromptCreationConfigurations, PromptOverrideConfiguration, RetrievalResultContent, RetrievalResultLocation, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrievedReference, StreamingConfigurations, UserContext, VectorSearchRerankingConfiguration } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* <p>Contains the response generated from querying the knowledge base.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax">RetrieveAndGenerate response</a> – in the <code>output</code> field</p> </li> </ul>
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface RetrieveAndGenerateOutput {
|
|
10
|
+
/**
|
|
11
|
+
* <p>The response generated from querying the knowledge base.</p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
text: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface RetrieveAndGenerateResponse {
|
|
20
|
+
/**
|
|
21
|
+
* <p>The unique identifier of the session. When you first make a <code>RetrieveAndGenerate</code> request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the <code>sessionId</code> yourself.</p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
sessionId: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* <p>Contains the response generated from querying the knowledge base.</p>
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
output: RetrieveAndGenerateOutput | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* <p>A list of segments of the generated response that are based on sources in the knowledge base, alongside information about the sources.</p>
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
citations?: Citation[] | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* <p>Specifies if there is a guardrail intervention in the response.</p>
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
guardrailAction?: GuadrailAction | undefined;
|
|
40
|
+
}
|
|
5
41
|
/**
|
|
6
42
|
* <p>A citation event.</p>
|
|
7
43
|
* @public
|
|
@@ -1631,6 +1667,11 @@ export interface AgenticRetrieveStreamRequest {
|
|
|
1631
1667
|
* @public
|
|
1632
1668
|
*/
|
|
1633
1669
|
memoryConfiguration?: AgenticRetrieveMemoryConfiguration | undefined;
|
|
1670
|
+
/**
|
|
1671
|
+
* <p>A retrieval instruction to apply to this request.</p>
|
|
1672
|
+
* @public
|
|
1673
|
+
*/
|
|
1674
|
+
retrievalInstructionConfiguration?: AgenticRetrieveInstructionConfiguration | undefined;
|
|
1634
1675
|
/**
|
|
1635
1676
|
* <p>Whether to generate a response based on the retrieved results.</p>
|
|
1636
1677
|
* @public
|
|
@@ -26,6 +26,7 @@ export declare var AgentCollaboratorInvocationOutput$: StaticStructureSchema;
|
|
|
26
26
|
export declare var AgentCollaboratorOutputPayload$: StaticStructureSchema;
|
|
27
27
|
export declare var AgenticRetrieveAction$: StaticStructureSchema;
|
|
28
28
|
export declare var AgenticRetrieveActionDetails$: StaticStructureSchema;
|
|
29
|
+
export declare var AgenticRetrieveAppliedInstruction$: StaticStructureSchema;
|
|
29
30
|
export declare var AgenticRetrieveBedrockGuardrailConfiguration$: StaticStructureSchema;
|
|
30
31
|
export declare var AgenticRetrieveBedrockRerankingConfiguration$: StaticStructureSchema;
|
|
31
32
|
export declare var AgenticRetrieveBedrockRerankingModelConfiguration$: StaticStructureSchema;
|
|
@@ -36,6 +37,7 @@ export declare var AgenticRetrieveFailure$: StaticStructureSchema;
|
|
|
36
37
|
export declare var AgenticRetrieveFullDocExpansionDetails$: StaticStructureSchema;
|
|
37
38
|
export declare var AgenticRetrieveGeneratedResponse$: StaticStructureSchema;
|
|
38
39
|
export declare var AgenticRetrieveGuardrailWarning$: StaticStructureSchema;
|
|
40
|
+
export declare var AgenticRetrieveInstructionConfiguration$: StaticStructureSchema;
|
|
39
41
|
export declare var AgenticRetrieveMemoryConfiguration$: StaticStructureSchema;
|
|
40
42
|
export declare var AgenticRetrieveMemoryMetadataFilter$: StaticStructureSchema;
|
|
41
43
|
export declare var AgenticRetrieveMemoryRetrievalConfig$: StaticStructureSchema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { RetrieveAndGenerateResponse } from "../models/
|
|
3
|
-
import { RetrieveAndGenerateRequest } from "../models/models_1";
|
|
2
|
+
import { RetrieveAndGenerateRequest, RetrieveAndGenerateResponse } from "../models/models_1";
|
|
4
3
|
export { __MetadataBearer };
|
|
5
4
|
export interface RetrieveAndGenerateCommandInput extends RetrieveAndGenerateRequest {}
|
|
6
5
|
export interface RetrieveAndGenerateCommandOutput
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
FoundationModelConfigurationType,
|
|
33
33
|
FoundationModelType,
|
|
34
34
|
GeneratedQueryType,
|
|
35
|
-
GuadrailAction,
|
|
36
35
|
GuardrailAction,
|
|
37
36
|
GuardrailContentFilterConfidence,
|
|
38
37
|
GuardrailContentFilterType,
|
|
@@ -389,6 +388,10 @@ export interface AgenticRetrieveAction {
|
|
|
389
388
|
fullDocumentExpansion?: AgenticRetrieveFullDocExpansionDetails | undefined;
|
|
390
389
|
memoryRetrieve?: AgenticRetrieveMemoryRetrieveDetails | undefined;
|
|
391
390
|
}
|
|
391
|
+
export interface AgenticRetrieveAppliedInstruction {
|
|
392
|
+
id: string | undefined;
|
|
393
|
+
version?: string | undefined;
|
|
394
|
+
}
|
|
392
395
|
export interface AgenticRetrieveBedrockGuardrailConfiguration {
|
|
393
396
|
guardrailId: string | undefined;
|
|
394
397
|
guardrailVersion: string | undefined;
|
|
@@ -449,6 +452,10 @@ export interface AgenticRetrieveGuardrailWarning {
|
|
|
449
452
|
action: GuardrailAction | undefined;
|
|
450
453
|
message?: string | undefined;
|
|
451
454
|
}
|
|
455
|
+
export interface AgenticRetrieveInstructionConfiguration {
|
|
456
|
+
retrievalInstructionId: string | undefined;
|
|
457
|
+
version?: string | undefined;
|
|
458
|
+
}
|
|
452
459
|
export type AgenticRetrieveMemoryMetadataFilterLeft =
|
|
453
460
|
| AgenticRetrieveMemoryMetadataFilterLeft.MetadataKeyMember
|
|
454
461
|
| AgenticRetrieveMemoryMetadataFilterLeft.$UnknownMember;
|
|
@@ -633,6 +640,7 @@ export interface AgenticRetrieveTraceEventAttributes {
|
|
|
633
640
|
failures?: AgenticRetrieveFailure[] | undefined;
|
|
634
641
|
retrievalMetadata?: AgenticRetrieveSourceMetadata[] | undefined;
|
|
635
642
|
retrievalResponse?: AgenticRetrieveTraceResultItem[] | undefined;
|
|
643
|
+
appliedInstruction?: AgenticRetrieveAppliedInstruction | undefined;
|
|
636
644
|
}
|
|
637
645
|
export interface AgenticRetrieveTraceEvent {
|
|
638
646
|
id: string | undefined;
|
|
@@ -3488,12 +3496,3 @@ export interface OrchestrationConfiguration {
|
|
|
3488
3496
|
export interface RetrieveAndGenerateSessionConfiguration {
|
|
3489
3497
|
kmsKeyArn: string | undefined;
|
|
3490
3498
|
}
|
|
3491
|
-
export interface RetrieveAndGenerateOutput {
|
|
3492
|
-
text: string | undefined;
|
|
3493
|
-
}
|
|
3494
|
-
export interface RetrieveAndGenerateResponse {
|
|
3495
|
-
sessionId: string | undefined;
|
|
3496
|
-
output: RetrieveAndGenerateOutput | undefined;
|
|
3497
|
-
citations?: Citation[] | undefined;
|
|
3498
|
-
guardrailAction?: GuadrailAction | undefined;
|
|
3499
|
-
}
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
AgentActionGroup,
|
|
27
27
|
AgenticRetrieveConfiguration,
|
|
28
|
+
AgenticRetrieveInstructionConfiguration,
|
|
28
29
|
AgenticRetrieveMemoryConfiguration,
|
|
29
30
|
AgenticRetrieveMessage,
|
|
30
31
|
AgenticRetrievePolicyConfiguration,
|
|
@@ -57,6 +58,15 @@ import {
|
|
|
57
58
|
UserContext,
|
|
58
59
|
VectorSearchRerankingConfiguration,
|
|
59
60
|
} from "./models_0";
|
|
61
|
+
export interface RetrieveAndGenerateOutput {
|
|
62
|
+
text: string | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface RetrieveAndGenerateResponse {
|
|
65
|
+
sessionId: string | undefined;
|
|
66
|
+
output: RetrieveAndGenerateOutput | undefined;
|
|
67
|
+
citations?: Citation[] | undefined;
|
|
68
|
+
guardrailAction?: GuadrailAction | undefined;
|
|
69
|
+
}
|
|
60
70
|
export interface CitationEvent {
|
|
61
71
|
citation?: Citation | undefined;
|
|
62
72
|
generatedResponsePart?: GeneratedResponsePart | undefined;
|
|
@@ -844,6 +854,7 @@ export interface AgenticRetrieveStreamRequest {
|
|
|
844
854
|
nextToken?: string | undefined;
|
|
845
855
|
userContext?: UserContext | undefined;
|
|
846
856
|
memoryConfiguration?: AgenticRetrieveMemoryConfiguration | undefined;
|
|
857
|
+
retrievalInstructionConfiguration?: AgenticRetrieveInstructionConfiguration | undefined;
|
|
847
858
|
generateResponse?: boolean | undefined;
|
|
848
859
|
}
|
|
849
860
|
export interface KnowledgeBaseRetrievalConfiguration {
|
|
@@ -26,6 +26,7 @@ export declare var AgentCollaboratorInvocationOutput$: StaticStructureSchema;
|
|
|
26
26
|
export declare var AgentCollaboratorOutputPayload$: StaticStructureSchema;
|
|
27
27
|
export declare var AgenticRetrieveAction$: StaticStructureSchema;
|
|
28
28
|
export declare var AgenticRetrieveActionDetails$: StaticStructureSchema;
|
|
29
|
+
export declare var AgenticRetrieveAppliedInstruction$: StaticStructureSchema;
|
|
29
30
|
export declare var AgenticRetrieveBedrockGuardrailConfiguration$: StaticStructureSchema;
|
|
30
31
|
export declare var AgenticRetrieveBedrockRerankingConfiguration$: StaticStructureSchema;
|
|
31
32
|
export declare var AgenticRetrieveBedrockRerankingModelConfiguration$: StaticStructureSchema;
|
|
@@ -36,6 +37,7 @@ export declare var AgenticRetrieveFailure$: StaticStructureSchema;
|
|
|
36
37
|
export declare var AgenticRetrieveFullDocExpansionDetails$: StaticStructureSchema;
|
|
37
38
|
export declare var AgenticRetrieveGeneratedResponse$: StaticStructureSchema;
|
|
38
39
|
export declare var AgenticRetrieveGuardrailWarning$: StaticStructureSchema;
|
|
40
|
+
export declare var AgenticRetrieveInstructionConfiguration$: StaticStructureSchema;
|
|
39
41
|
export declare var AgenticRetrieveMemoryConfiguration$: StaticStructureSchema;
|
|
40
42
|
export declare var AgenticRetrieveMemoryMetadataFilter$: StaticStructureSchema;
|
|
41
43
|
export declare var AgenticRetrieveMemoryRetrievalConfig$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1154.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agent-runtime",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.978.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.978.4",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.87",
|
|
51
51
|
"@aws-sdk/types": "^3.974.6",
|
|
52
|
-
"@smithy/core": "^3.
|
|
52
|
+
"@smithy/core": "^3.36.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|
|
54
54
|
"@smithy/node-http-handler": "^4.12.1",
|
|
55
55
|
"@smithy/types": "^4.19.0",
|