@aws-sdk/client-bedrock-agent-runtime 3.758.0 → 3.765.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 +295 -24
- package/dist-es/models/models_0.js +42 -5
- package/dist-es/models/models_1.js +21 -4
- package/dist-es/protocols/Aws_restJson1.js +213 -5
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +49 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +269 -64
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +244 -106
- package/dist-types/models/models_1.d.ts +256 -66
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +69 -25
- package/dist-types/ts3.4/models/models_1.d.ts +46 -11
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(src_exports, {
|
|
|
30
30
|
ActionGroupSignature: () => ActionGroupSignature,
|
|
31
31
|
ActionInvocationType: () => ActionInvocationType,
|
|
32
32
|
AgentActionGroupFilterSensitiveLog: () => AgentActionGroupFilterSensitiveLog,
|
|
33
|
+
AgentCollaboration: () => AgentCollaboration,
|
|
33
34
|
AgentCollaboratorInputPayloadFilterSensitiveLog: () => AgentCollaboratorInputPayloadFilterSensitiveLog,
|
|
34
35
|
AgentCollaboratorInvocationInputFilterSensitiveLog: () => AgentCollaboratorInvocationInputFilterSensitiveLog,
|
|
35
36
|
AgentCollaboratorInvocationOutputFilterSensitiveLog: () => AgentCollaboratorInvocationOutputFilterSensitiveLog,
|
|
@@ -50,6 +51,8 @@ __export(src_exports, {
|
|
|
50
51
|
Caller: () => Caller,
|
|
51
52
|
CitationEventFilterSensitiveLog: () => CitationEventFilterSensitiveLog,
|
|
52
53
|
CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
|
|
54
|
+
CollaboratorConfigurationFilterSensitiveLog: () => CollaboratorConfigurationFilterSensitiveLog,
|
|
55
|
+
CollaboratorFilterSensitiveLog: () => CollaboratorFilterSensitiveLog,
|
|
53
56
|
ConfirmationState: () => ConfirmationState,
|
|
54
57
|
ConflictException: () => ConflictException,
|
|
55
58
|
ContentBlock: () => ContentBlock,
|
|
@@ -139,6 +142,8 @@ __export(src_exports, {
|
|
|
139
142
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
140
143
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
141
144
|
ImageFormat: () => ImageFormat,
|
|
145
|
+
ImageInputFormat: () => ImageInputFormat,
|
|
146
|
+
ImageInputSource: () => ImageInputSource,
|
|
142
147
|
ImageSource: () => ImageSource,
|
|
143
148
|
ImplicitFilterConfigurationFilterSensitiveLog: () => ImplicitFilterConfigurationFilterSensitiveLog,
|
|
144
149
|
InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
|
|
@@ -234,6 +239,7 @@ __export(src_exports, {
|
|
|
234
239
|
ReasoningContentBlock: () => ReasoningContentBlock,
|
|
235
240
|
ReasoningContentBlockFilterSensitiveLog: () => ReasoningContentBlockFilterSensitiveLog,
|
|
236
241
|
ReasoningTextBlockFilterSensitiveLog: () => ReasoningTextBlockFilterSensitiveLog,
|
|
242
|
+
RelayConversationHistory: () => RelayConversationHistory,
|
|
237
243
|
RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
|
|
238
244
|
RequireConfirmation: () => RequireConfirmation,
|
|
239
245
|
RerankCommand: () => RerankCommand,
|
|
@@ -527,7 +533,10 @@ var ExecutionType = {
|
|
|
527
533
|
};
|
|
528
534
|
var ActionGroupSignature = {
|
|
529
535
|
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
530
|
-
AMAZON_USERINPUT: "AMAZON.UserInput"
|
|
536
|
+
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
537
|
+
ANTHROPIC_BASH: "ANTHROPIC.Bash",
|
|
538
|
+
ANTHROPIC_COMPUTER: "ANTHROPIC.Computer",
|
|
539
|
+
ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor"
|
|
531
540
|
};
|
|
532
541
|
var ActionInvocationType = {
|
|
533
542
|
RESULT: "RESULT",
|
|
@@ -563,17 +572,36 @@ var FunctionSchema;
|
|
|
563
572
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
564
573
|
}, "visit");
|
|
565
574
|
})(FunctionSchema || (FunctionSchema = {}));
|
|
575
|
+
var AgentCollaboration = {
|
|
576
|
+
DISABLED: "DISABLED",
|
|
577
|
+
SUPERVISOR: "SUPERVISOR",
|
|
578
|
+
SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER"
|
|
579
|
+
};
|
|
566
580
|
var ConfirmationState = {
|
|
567
581
|
CONFIRM: "CONFIRM",
|
|
568
582
|
DENY: "DENY"
|
|
569
583
|
};
|
|
584
|
+
var ImageInputFormat = {
|
|
585
|
+
GIF: "gif",
|
|
586
|
+
JPEG: "jpeg",
|
|
587
|
+
PNG: "png",
|
|
588
|
+
WEBP: "webp"
|
|
589
|
+
};
|
|
590
|
+
var ImageInputSource;
|
|
591
|
+
((ImageInputSource2) => {
|
|
592
|
+
ImageInputSource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
593
|
+
if (value.bytes !== void 0)
|
|
594
|
+
return visitor.bytes(value.bytes);
|
|
595
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
596
|
+
}, "visit");
|
|
597
|
+
})(ImageInputSource || (ImageInputSource = {}));
|
|
570
598
|
var ResponseState = {
|
|
571
599
|
FAILURE: "FAILURE",
|
|
572
600
|
REPROMPT: "REPROMPT"
|
|
573
601
|
};
|
|
574
602
|
var InvocationResultMember;
|
|
575
|
-
((
|
|
576
|
-
|
|
603
|
+
((InvocationResultMember3) => {
|
|
604
|
+
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
577
605
|
if (value.apiResult !== void 0)
|
|
578
606
|
return visitor.apiResult(value.apiResult);
|
|
579
607
|
if (value.functionResult !== void 0)
|
|
@@ -1181,6 +1209,10 @@ var ResponseStream;
|
|
|
1181
1209
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1182
1210
|
}, "visit");
|
|
1183
1211
|
})(ResponseStream || (ResponseStream = {}));
|
|
1212
|
+
var RelayConversationHistory = {
|
|
1213
|
+
DISABLED: "DISABLED",
|
|
1214
|
+
TO_COLLABORATOR: "TO_COLLABORATOR"
|
|
1215
|
+
};
|
|
1184
1216
|
var PromptState = {
|
|
1185
1217
|
DISABLED: "DISABLED",
|
|
1186
1218
|
ENABLED: "ENABLED"
|
|
@@ -1402,7 +1434,13 @@ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1402
1434
|
}), "AgentActionGroupFilterSensitiveLog");
|
|
1403
1435
|
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1404
1436
|
...obj,
|
|
1405
|
-
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
1437
|
+
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING },
|
|
1438
|
+
...obj.responseBody && {
|
|
1439
|
+
responseBody: Object.entries(obj.responseBody).reduce(
|
|
1440
|
+
(acc, [key, value]) => (acc[key] = value, acc),
|
|
1441
|
+
{}
|
|
1442
|
+
)
|
|
1443
|
+
}
|
|
1406
1444
|
}), "ApiResultFilterSensitiveLog");
|
|
1407
1445
|
var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1408
1446
|
if (obj.apiResult !== void 0)
|
|
@@ -1963,15 +2001,11 @@ var InvokeAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1963
2001
|
...obj,
|
|
1964
2002
|
...obj.completion && { completion: "STREAMING_CONTENT" }
|
|
1965
2003
|
}), "InvokeAgentResponseFilterSensitiveLog");
|
|
1966
|
-
var
|
|
2004
|
+
var CollaboratorConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1967
2005
|
...obj,
|
|
1968
|
-
...obj.
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
)
|
|
1972
|
-
},
|
|
1973
|
-
...obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }
|
|
1974
|
-
}), "InlineSessionStateFilterSensitiveLog");
|
|
2006
|
+
...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING },
|
|
2007
|
+
...obj.collaboratorInstruction && { collaboratorInstruction: import_smithy_client.SENSITIVE_STRING }
|
|
2008
|
+
}), "CollaboratorConfigurationFilterSensitiveLog");
|
|
1975
2009
|
var PromptConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1976
2010
|
...obj,
|
|
1977
2011
|
...obj.basePromptTemplate && { basePromptTemplate: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1982,6 +2016,18 @@ var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1982
2016
|
promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item))
|
|
1983
2017
|
}
|
|
1984
2018
|
}), "PromptOverrideConfigurationFilterSensitiveLog");
|
|
2019
|
+
var InlineSessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2020
|
+
...obj,
|
|
2021
|
+
...obj.returnControlInvocationResults && {
|
|
2022
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map(
|
|
2023
|
+
(item) => InvocationResultMemberFilterSensitiveLog(item)
|
|
2024
|
+
)
|
|
2025
|
+
},
|
|
2026
|
+
...obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) },
|
|
2027
|
+
...obj.conversationHistory && {
|
|
2028
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory)
|
|
2029
|
+
}
|
|
2030
|
+
}), "InlineSessionStateFilterSensitiveLog");
|
|
1985
2031
|
var InlineAgentPayloadPartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1986
2032
|
...obj,
|
|
1987
2033
|
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -2366,17 +2412,21 @@ var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name(
|
|
|
2366
2412
|
)
|
|
2367
2413
|
}
|
|
2368
2414
|
}), "RetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
2369
|
-
var
|
|
2415
|
+
var CollaboratorFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2370
2416
|
...obj,
|
|
2371
|
-
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING },
|
|
2372
|
-
...obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) },
|
|
2373
2417
|
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
2374
2418
|
...obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) },
|
|
2375
2419
|
...obj.knowledgeBases && {
|
|
2376
2420
|
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item))
|
|
2377
2421
|
},
|
|
2378
|
-
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
2379
|
-
|
|
2422
|
+
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING },
|
|
2423
|
+
...obj.collaboratorConfigurations && {
|
|
2424
|
+
collaboratorConfigurations: obj.collaboratorConfigurations.map(
|
|
2425
|
+
(item) => CollaboratorConfigurationFilterSensitiveLog(item)
|
|
2426
|
+
)
|
|
2427
|
+
},
|
|
2428
|
+
...obj.agentName && { agentName: import_smithy_client.SENSITIVE_STRING }
|
|
2429
|
+
}), "CollaboratorFilterSensitiveLog");
|
|
2380
2430
|
var RetrieveAndGenerateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2381
2431
|
...obj,
|
|
2382
2432
|
...obj.input && { input: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -2417,6 +2467,23 @@ var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2417
2467
|
...obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) },
|
|
2418
2468
|
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING }
|
|
2419
2469
|
}), "InvokeAgentRequestFilterSensitiveLog");
|
|
2470
|
+
var InvokeInlineAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2471
|
+
...obj,
|
|
2472
|
+
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
2473
|
+
...obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) },
|
|
2474
|
+
...obj.knowledgeBases && {
|
|
2475
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item))
|
|
2476
|
+
},
|
|
2477
|
+
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING },
|
|
2478
|
+
...obj.collaboratorConfigurations && {
|
|
2479
|
+
collaboratorConfigurations: obj.collaboratorConfigurations.map(
|
|
2480
|
+
(item) => CollaboratorConfigurationFilterSensitiveLog(item)
|
|
2481
|
+
)
|
|
2482
|
+
},
|
|
2483
|
+
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING },
|
|
2484
|
+
...obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) },
|
|
2485
|
+
...obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }
|
|
2486
|
+
}), "InvokeInlineAgentRequestFilterSensitiveLog");
|
|
2420
2487
|
|
|
2421
2488
|
// src/protocols/Aws_restJson1.ts
|
|
2422
2489
|
var se_CreateInvocationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -2599,7 +2666,10 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2599
2666
|
body = JSON.stringify(
|
|
2600
2667
|
(0, import_smithy_client.take)(input, {
|
|
2601
2668
|
actionGroups: (_) => (0, import_smithy_client._json)(_),
|
|
2669
|
+
agentCollaboration: [],
|
|
2602
2670
|
bedrockModelConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
2671
|
+
collaboratorConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
2672
|
+
collaborators: (_) => se_Collaborators(_, context),
|
|
2603
2673
|
customerEncryptionKeyArn: [],
|
|
2604
2674
|
enableTrace: [],
|
|
2605
2675
|
endSession: [],
|
|
@@ -3907,6 +3977,18 @@ var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) =>
|
|
|
3907
3977
|
var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
|
|
3908
3978
|
return input;
|
|
3909
3979
|
}, "se_AdditionalModelRequestFieldsValue");
|
|
3980
|
+
var se_ApiResult = /* @__PURE__ */ __name((input, context) => {
|
|
3981
|
+
return (0, import_smithy_client.take)(input, {
|
|
3982
|
+
actionGroup: [],
|
|
3983
|
+
agentId: [],
|
|
3984
|
+
apiPath: [],
|
|
3985
|
+
confirmationState: [],
|
|
3986
|
+
httpMethod: [],
|
|
3987
|
+
httpStatusCode: [],
|
|
3988
|
+
responseBody: (_) => se_ResponseBody(_, context),
|
|
3989
|
+
responseState: []
|
|
3990
|
+
});
|
|
3991
|
+
}, "se_ApiResult");
|
|
3910
3992
|
var se_BedrockRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3911
3993
|
return (0, import_smithy_client.take)(input, {
|
|
3912
3994
|
modelConfiguration: (_) => se_BedrockRerankingModelConfiguration(_, context),
|
|
@@ -3944,6 +4026,32 @@ var se_ByteContentFile = /* @__PURE__ */ __name((input, context) => {
|
|
|
3944
4026
|
mediaType: []
|
|
3945
4027
|
});
|
|
3946
4028
|
}, "se_ByteContentFile");
|
|
4029
|
+
var se_Collaborator = /* @__PURE__ */ __name((input, context) => {
|
|
4030
|
+
return (0, import_smithy_client.take)(input, {
|
|
4031
|
+
actionGroups: import_smithy_client._json,
|
|
4032
|
+
agentCollaboration: [],
|
|
4033
|
+
agentName: [],
|
|
4034
|
+
collaboratorConfigurations: import_smithy_client._json,
|
|
4035
|
+
customerEncryptionKeyArn: [],
|
|
4036
|
+
foundationModel: [],
|
|
4037
|
+
guardrailConfiguration: import_smithy_client._json,
|
|
4038
|
+
idleSessionTTLInSeconds: [],
|
|
4039
|
+
instruction: [],
|
|
4040
|
+
knowledgeBases: (_) => se_KnowledgeBases(_, context),
|
|
4041
|
+
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
|
|
4042
|
+
});
|
|
4043
|
+
}, "se_Collaborator");
|
|
4044
|
+
var se_Collaborators = /* @__PURE__ */ __name((input, context) => {
|
|
4045
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
4046
|
+
return se_Collaborator(entry, context);
|
|
4047
|
+
});
|
|
4048
|
+
}, "se_Collaborators");
|
|
4049
|
+
var se_ContentBody = /* @__PURE__ */ __name((input, context) => {
|
|
4050
|
+
return (0, import_smithy_client.take)(input, {
|
|
4051
|
+
body: [],
|
|
4052
|
+
images: (_) => se_ImageInputs(_, context)
|
|
4053
|
+
});
|
|
4054
|
+
}, "se_ContentBody");
|
|
3947
4055
|
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
3948
4056
|
return (0, import_smithy_client.take)(input, {
|
|
3949
4057
|
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
@@ -4007,6 +4115,16 @@ var se_FlowInputs = /* @__PURE__ */ __name((input, context) => {
|
|
|
4007
4115
|
return se_FlowInput(entry, context);
|
|
4008
4116
|
});
|
|
4009
4117
|
}, "se_FlowInputs");
|
|
4118
|
+
var se_FunctionResult = /* @__PURE__ */ __name((input, context) => {
|
|
4119
|
+
return (0, import_smithy_client.take)(input, {
|
|
4120
|
+
actionGroup: [],
|
|
4121
|
+
agentId: [],
|
|
4122
|
+
confirmationState: [],
|
|
4123
|
+
function: [],
|
|
4124
|
+
responseBody: (_) => se_ResponseBody(_, context),
|
|
4125
|
+
responseState: []
|
|
4126
|
+
});
|
|
4127
|
+
}, "se_FunctionResult");
|
|
4010
4128
|
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4011
4129
|
return (0, import_smithy_client.take)(input, {
|
|
4012
4130
|
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
@@ -4022,6 +4140,23 @@ var se_ImageBlock = /* @__PURE__ */ __name((input, context) => {
|
|
|
4022
4140
|
source: (_) => se_ImageSource(_, context)
|
|
4023
4141
|
});
|
|
4024
4142
|
}, "se_ImageBlock");
|
|
4143
|
+
var se_ImageInput = /* @__PURE__ */ __name((input, context) => {
|
|
4144
|
+
return (0, import_smithy_client.take)(input, {
|
|
4145
|
+
format: [],
|
|
4146
|
+
source: (_) => se_ImageInputSource(_, context)
|
|
4147
|
+
});
|
|
4148
|
+
}, "se_ImageInput");
|
|
4149
|
+
var se_ImageInputs = /* @__PURE__ */ __name((input, context) => {
|
|
4150
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
4151
|
+
return se_ImageInput(entry, context);
|
|
4152
|
+
});
|
|
4153
|
+
}, "se_ImageInputs");
|
|
4154
|
+
var se_ImageInputSource = /* @__PURE__ */ __name((input, context) => {
|
|
4155
|
+
return ImageInputSource.visit(input, {
|
|
4156
|
+
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
4157
|
+
_: (name, value) => ({ [name]: value })
|
|
4158
|
+
});
|
|
4159
|
+
}, "se_ImageInputSource");
|
|
4025
4160
|
var se_ImageSource = /* @__PURE__ */ __name((input, context) => {
|
|
4026
4161
|
return ImageSource.visit(input, {
|
|
4027
4162
|
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
@@ -4045,10 +4180,11 @@ var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
4045
4180
|
}, "se_InferenceConfiguration");
|
|
4046
4181
|
var se_InlineSessionState = /* @__PURE__ */ __name((input, context) => {
|
|
4047
4182
|
return (0, import_smithy_client.take)(input, {
|
|
4183
|
+
conversationHistory: import_smithy_client._json,
|
|
4048
4184
|
files: (_) => se_InputFiles(_, context),
|
|
4049
4185
|
invocationId: [],
|
|
4050
4186
|
promptSessionAttributes: import_smithy_client._json,
|
|
4051
|
-
returnControlInvocationResults:
|
|
4187
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
4052
4188
|
sessionAttributes: import_smithy_client._json
|
|
4053
4189
|
});
|
|
4054
4190
|
}, "se_InlineSessionState");
|
|
@@ -4064,6 +4200,13 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
|
4064
4200
|
return se_InputFile(entry, context);
|
|
4065
4201
|
});
|
|
4066
4202
|
}, "se_InputFiles");
|
|
4203
|
+
var se_InvocationResultMember = /* @__PURE__ */ __name((input, context) => {
|
|
4204
|
+
return InvocationResultMember.visit(input, {
|
|
4205
|
+
apiResult: (value) => ({ apiResult: se_ApiResult(value, context) }),
|
|
4206
|
+
functionResult: (value) => ({ functionResult: se_FunctionResult(value, context) }),
|
|
4207
|
+
_: (name, value) => ({ [name]: value })
|
|
4208
|
+
});
|
|
4209
|
+
}, "se_InvocationResultMember");
|
|
4067
4210
|
var se_InvocationStepPayload = /* @__PURE__ */ __name((input, context) => {
|
|
4068
4211
|
return InvocationStepPayload.visit(input, {
|
|
4069
4212
|
contentBlocks: (value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }),
|
|
@@ -4129,6 +4272,7 @@ var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
4129
4272
|
return (0, import_smithy_client.take)(input, {
|
|
4130
4273
|
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
4131
4274
|
basePromptTemplate: [],
|
|
4275
|
+
foundationModel: [],
|
|
4132
4276
|
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
4133
4277
|
parserMode: [],
|
|
4134
4278
|
promptCreationMode: [],
|
|
@@ -4171,6 +4315,15 @@ var se_RerankSourcesList = /* @__PURE__ */ __name((input, context) => {
|
|
|
4171
4315
|
return se_RerankSource(entry, context);
|
|
4172
4316
|
});
|
|
4173
4317
|
}, "se_RerankSourcesList");
|
|
4318
|
+
var se_ResponseBody = /* @__PURE__ */ __name((input, context) => {
|
|
4319
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4320
|
+
if (value === null) {
|
|
4321
|
+
return acc;
|
|
4322
|
+
}
|
|
4323
|
+
acc[key] = se_ContentBody(value, context);
|
|
4324
|
+
return acc;
|
|
4325
|
+
}, {});
|
|
4326
|
+
}, "se_ResponseBody");
|
|
4174
4327
|
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
4175
4328
|
return RetrievalFilter.visit(input, {
|
|
4176
4329
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -4201,6 +4354,11 @@ var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context
|
|
|
4201
4354
|
type: []
|
|
4202
4355
|
});
|
|
4203
4356
|
}, "se_RetrieveAndGenerateConfiguration");
|
|
4357
|
+
var se_ReturnControlInvocationResults = /* @__PURE__ */ __name((input, context) => {
|
|
4358
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
4359
|
+
return se_InvocationResultMember(entry, context);
|
|
4360
|
+
});
|
|
4361
|
+
}, "se_ReturnControlInvocationResults");
|
|
4204
4362
|
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
4205
4363
|
return (0, import_smithy_client.take)(input, {
|
|
4206
4364
|
conversationHistory: import_smithy_client._json,
|
|
@@ -4208,7 +4366,7 @@ var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
|
4208
4366
|
invocationId: [],
|
|
4209
4367
|
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
4210
4368
|
promptSessionAttributes: import_smithy_client._json,
|
|
4211
|
-
returnControlInvocationResults:
|
|
4369
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
4212
4370
|
sessionAttributes: import_smithy_client._json
|
|
4213
4371
|
});
|
|
4214
4372
|
}, "se_SessionState");
|
|
@@ -4242,6 +4400,20 @@ var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, conte
|
|
|
4242
4400
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
4243
4401
|
return input;
|
|
4244
4402
|
}, "se_Document");
|
|
4403
|
+
var de_AgentCollaboratorInputPayload = /* @__PURE__ */ __name((output, context) => {
|
|
4404
|
+
return (0, import_smithy_client.take)(output, {
|
|
4405
|
+
returnControlResults: (_) => de_ReturnControlResults(_, context),
|
|
4406
|
+
text: import_smithy_client.expectString,
|
|
4407
|
+
type: import_smithy_client.expectString
|
|
4408
|
+
});
|
|
4409
|
+
}, "de_AgentCollaboratorInputPayload");
|
|
4410
|
+
var de_AgentCollaboratorInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4411
|
+
return (0, import_smithy_client.take)(output, {
|
|
4412
|
+
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
4413
|
+
agentCollaboratorName: import_smithy_client.expectString,
|
|
4414
|
+
input: (_) => de_AgentCollaboratorInputPayload(_, context)
|
|
4415
|
+
});
|
|
4416
|
+
}, "de_AgentCollaboratorInvocationInput");
|
|
4245
4417
|
var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4246
4418
|
return (0, import_smithy_client.take)(output, {
|
|
4247
4419
|
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
@@ -4249,6 +4421,18 @@ var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, conte
|
|
|
4249
4421
|
output: import_smithy_client._json
|
|
4250
4422
|
});
|
|
4251
4423
|
}, "de_AgentCollaboratorInvocationOutput");
|
|
4424
|
+
var de_ApiResult = /* @__PURE__ */ __name((output, context) => {
|
|
4425
|
+
return (0, import_smithy_client.take)(output, {
|
|
4426
|
+
actionGroup: import_smithy_client.expectString,
|
|
4427
|
+
agentId: import_smithy_client.expectString,
|
|
4428
|
+
apiPath: import_smithy_client.expectString,
|
|
4429
|
+
confirmationState: import_smithy_client.expectString,
|
|
4430
|
+
httpMethod: import_smithy_client.expectString,
|
|
4431
|
+
httpStatusCode: import_smithy_client.expectInt32,
|
|
4432
|
+
responseBody: (_) => de_ResponseBody(_, context),
|
|
4433
|
+
responseState: import_smithy_client.expectString
|
|
4434
|
+
});
|
|
4435
|
+
}, "de_ApiResult");
|
|
4252
4436
|
var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
4253
4437
|
return (0, import_smithy_client.take)(output, {
|
|
4254
4438
|
citations: (_) => de_Citations(_, context)
|
|
@@ -4290,6 +4474,12 @@ var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
|
4290
4474
|
});
|
|
4291
4475
|
return retVal;
|
|
4292
4476
|
}, "de_Citations");
|
|
4477
|
+
var de_ContentBody = /* @__PURE__ */ __name((output, context) => {
|
|
4478
|
+
return (0, import_smithy_client.take)(output, {
|
|
4479
|
+
body: import_smithy_client.expectString,
|
|
4480
|
+
images: (_) => de_ImageInputs(_, context)
|
|
4481
|
+
});
|
|
4482
|
+
}, "de_ContentBody");
|
|
4293
4483
|
var de_FilePart = /* @__PURE__ */ __name((output, context) => {
|
|
4294
4484
|
return (0, import_smithy_client.take)(output, {
|
|
4295
4485
|
files: (_) => de_OutputFiles(_, context)
|
|
@@ -4409,12 +4599,42 @@ var de_FlowTraceNodeOutputFields = /* @__PURE__ */ __name((output, context) => {
|
|
|
4409
4599
|
});
|
|
4410
4600
|
return retVal;
|
|
4411
4601
|
}, "de_FlowTraceNodeOutputFields");
|
|
4602
|
+
var de_FunctionResult = /* @__PURE__ */ __name((output, context) => {
|
|
4603
|
+
return (0, import_smithy_client.take)(output, {
|
|
4604
|
+
actionGroup: import_smithy_client.expectString,
|
|
4605
|
+
agentId: import_smithy_client.expectString,
|
|
4606
|
+
confirmationState: import_smithy_client.expectString,
|
|
4607
|
+
function: import_smithy_client.expectString,
|
|
4608
|
+
responseBody: (_) => de_ResponseBody(_, context),
|
|
4609
|
+
responseState: import_smithy_client.expectString
|
|
4610
|
+
});
|
|
4611
|
+
}, "de_FunctionResult");
|
|
4412
4612
|
var de_ImageBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4413
4613
|
return (0, import_smithy_client.take)(output, {
|
|
4414
4614
|
format: import_smithy_client.expectString,
|
|
4415
4615
|
source: (_) => de_ImageSource((0, import_core2.awsExpectUnion)(_), context)
|
|
4416
4616
|
});
|
|
4417
4617
|
}, "de_ImageBlock");
|
|
4618
|
+
var de_ImageInput = /* @__PURE__ */ __name((output, context) => {
|
|
4619
|
+
return (0, import_smithy_client.take)(output, {
|
|
4620
|
+
format: import_smithy_client.expectString,
|
|
4621
|
+
source: (_) => de_ImageInputSource((0, import_core2.awsExpectUnion)(_), context)
|
|
4622
|
+
});
|
|
4623
|
+
}, "de_ImageInput");
|
|
4624
|
+
var de_ImageInputs = /* @__PURE__ */ __name((output, context) => {
|
|
4625
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4626
|
+
return de_ImageInput(entry, context);
|
|
4627
|
+
});
|
|
4628
|
+
return retVal;
|
|
4629
|
+
}, "de_ImageInputs");
|
|
4630
|
+
var de_ImageInputSource = /* @__PURE__ */ __name((output, context) => {
|
|
4631
|
+
if (output.bytes != null) {
|
|
4632
|
+
return {
|
|
4633
|
+
bytes: context.base64Decoder(output.bytes)
|
|
4634
|
+
};
|
|
4635
|
+
}
|
|
4636
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4637
|
+
}, "de_ImageInputSource");
|
|
4418
4638
|
var de_ImageSource = /* @__PURE__ */ __name((output, context) => {
|
|
4419
4639
|
if (output.bytes != null) {
|
|
4420
4640
|
return {
|
|
@@ -4454,6 +4674,29 @@ var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
4454
4674
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
4455
4675
|
});
|
|
4456
4676
|
}, "de_InlineAgentTracePart");
|
|
4677
|
+
var de_InvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4678
|
+
return (0, import_smithy_client.take)(output, {
|
|
4679
|
+
actionGroupInvocationInput: import_smithy_client._json,
|
|
4680
|
+
agentCollaboratorInvocationInput: (_) => de_AgentCollaboratorInvocationInput(_, context),
|
|
4681
|
+
codeInterpreterInvocationInput: import_smithy_client._json,
|
|
4682
|
+
invocationType: import_smithy_client.expectString,
|
|
4683
|
+
knowledgeBaseLookupInput: import_smithy_client._json,
|
|
4684
|
+
traceId: import_smithy_client.expectString
|
|
4685
|
+
});
|
|
4686
|
+
}, "de_InvocationInput");
|
|
4687
|
+
var de_InvocationResultMember = /* @__PURE__ */ __name((output, context) => {
|
|
4688
|
+
if (output.apiResult != null) {
|
|
4689
|
+
return {
|
|
4690
|
+
apiResult: de_ApiResult(output.apiResult, context)
|
|
4691
|
+
};
|
|
4692
|
+
}
|
|
4693
|
+
if (output.functionResult != null) {
|
|
4694
|
+
return {
|
|
4695
|
+
functionResult: de_FunctionResult(output.functionResult, context)
|
|
4696
|
+
};
|
|
4697
|
+
}
|
|
4698
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4699
|
+
}, "de_InvocationResultMember");
|
|
4457
4700
|
var de_InvocationStep = /* @__PURE__ */ __name((output, context) => {
|
|
4458
4701
|
return (0, import_smithy_client.take)(output, {
|
|
4459
4702
|
invocationId: import_smithy_client.expectString,
|
|
@@ -4575,7 +4818,7 @@ var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, cont
|
|
|
4575
4818
|
var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4576
4819
|
if (output.invocationInput != null) {
|
|
4577
4820
|
return {
|
|
4578
|
-
invocationInput: (
|
|
4821
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4579
4822
|
};
|
|
4580
4823
|
}
|
|
4581
4824
|
if (output.modelInvocationInput != null) {
|
|
@@ -4696,6 +4939,15 @@ var de_RerankResultsList = /* @__PURE__ */ __name((output, context) => {
|
|
|
4696
4939
|
});
|
|
4697
4940
|
return retVal;
|
|
4698
4941
|
}, "de_RerankResultsList");
|
|
4942
|
+
var de_ResponseBody = /* @__PURE__ */ __name((output, context) => {
|
|
4943
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4944
|
+
if (value === null) {
|
|
4945
|
+
return acc;
|
|
4946
|
+
}
|
|
4947
|
+
acc[key] = de_ContentBody(value, context);
|
|
4948
|
+
return acc;
|
|
4949
|
+
}, {});
|
|
4950
|
+
}, "de_ResponseBody");
|
|
4699
4951
|
var de_RetrievalResultMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
4700
4952
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4701
4953
|
if (value === null) {
|
|
@@ -4721,10 +4973,22 @@ var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
|
4721
4973
|
});
|
|
4722
4974
|
return retVal;
|
|
4723
4975
|
}, "de_RetrievedReferences");
|
|
4976
|
+
var de_ReturnControlInvocationResults = /* @__PURE__ */ __name((output, context) => {
|
|
4977
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4978
|
+
return de_InvocationResultMember((0, import_core2.awsExpectUnion)(entry), context);
|
|
4979
|
+
});
|
|
4980
|
+
return retVal;
|
|
4981
|
+
}, "de_ReturnControlInvocationResults");
|
|
4982
|
+
var de_ReturnControlResults = /* @__PURE__ */ __name((output, context) => {
|
|
4983
|
+
return (0, import_smithy_client.take)(output, {
|
|
4984
|
+
invocationId: import_smithy_client.expectString,
|
|
4985
|
+
returnControlInvocationResults: (_) => de_ReturnControlInvocationResults(_, context)
|
|
4986
|
+
});
|
|
4987
|
+
}, "de_ReturnControlResults");
|
|
4724
4988
|
var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4725
4989
|
if (output.invocationInput != null) {
|
|
4726
4990
|
return {
|
|
4727
|
-
invocationInput: (
|
|
4991
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4728
4992
|
};
|
|
4729
4993
|
}
|
|
4730
4994
|
if (output.modelInvocationInput != null) {
|
|
@@ -4804,6 +5068,7 @@ var de_TracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
4804
5068
|
agentVersion: import_smithy_client.expectString,
|
|
4805
5069
|
callerChain: import_smithy_client._json,
|
|
4806
5070
|
collaboratorName: import_smithy_client.expectString,
|
|
5071
|
+
eventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4807
5072
|
sessionId: import_smithy_client.expectString,
|
|
4808
5073
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
4809
5074
|
});
|
|
@@ -5348,7 +5613,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5348
5613
|
ParameterType,
|
|
5349
5614
|
RequireConfirmation,
|
|
5350
5615
|
FunctionSchema,
|
|
5616
|
+
AgentCollaboration,
|
|
5351
5617
|
ConfirmationState,
|
|
5618
|
+
ImageInputFormat,
|
|
5619
|
+
ImageInputSource,
|
|
5352
5620
|
ResponseState,
|
|
5353
5621
|
InvocationResultMember,
|
|
5354
5622
|
PayloadType,
|
|
@@ -5411,6 +5679,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5411
5679
|
RoutingClassifierTrace,
|
|
5412
5680
|
Trace,
|
|
5413
5681
|
ResponseStream,
|
|
5682
|
+
RelayConversationHistory,
|
|
5414
5683
|
PromptState,
|
|
5415
5684
|
InlineAgentResponseStream,
|
|
5416
5685
|
MemoryType,
|
|
@@ -5535,9 +5804,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5535
5804
|
TracePartFilterSensitiveLog,
|
|
5536
5805
|
ResponseStreamFilterSensitiveLog,
|
|
5537
5806
|
InvokeAgentResponseFilterSensitiveLog,
|
|
5538
|
-
|
|
5807
|
+
CollaboratorConfigurationFilterSensitiveLog,
|
|
5539
5808
|
PromptConfigurationFilterSensitiveLog,
|
|
5540
5809
|
PromptOverrideConfigurationFilterSensitiveLog,
|
|
5810
|
+
InlineSessionStateFilterSensitiveLog,
|
|
5541
5811
|
InlineAgentPayloadPartFilterSensitiveLog,
|
|
5542
5812
|
InlineAgentFilePartFilterSensitiveLog,
|
|
5543
5813
|
InlineAgentReturnControlPayloadFilterSensitiveLog,
|
|
@@ -5590,10 +5860,11 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5590
5860
|
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
5591
5861
|
RetrieveRequestFilterSensitiveLog,
|
|
5592
5862
|
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
5593
|
-
|
|
5863
|
+
CollaboratorFilterSensitiveLog,
|
|
5594
5864
|
RetrieveAndGenerateRequestFilterSensitiveLog,
|
|
5595
5865
|
RetrieveAndGenerateStreamRequestFilterSensitiveLog,
|
|
5596
5866
|
SessionStateFilterSensitiveLog,
|
|
5597
|
-
InvokeAgentRequestFilterSensitiveLog
|
|
5867
|
+
InvokeAgentRequestFilterSensitiveLog,
|
|
5868
|
+
InvokeInlineAgentRequestFilterSensitiveLog
|
|
5598
5869
|
});
|
|
5599
5870
|
|