@aws-sdk/client-bedrock-agent-runtime 3.764.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 +207 -8
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +185 -5
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +48 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +56 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +121 -44
- package/dist-types/models/models_1.d.ts +58 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +35 -10
- package/dist-types/ts3.4/models/models_1.d.ts +10 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -142,6 +142,8 @@ __export(src_exports, {
|
|
|
142
142
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
143
143
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
144
144
|
ImageFormat: () => ImageFormat,
|
|
145
|
+
ImageInputFormat: () => ImageInputFormat,
|
|
146
|
+
ImageInputSource: () => ImageInputSource,
|
|
145
147
|
ImageSource: () => ImageSource,
|
|
146
148
|
ImplicitFilterConfigurationFilterSensitiveLog: () => ImplicitFilterConfigurationFilterSensitiveLog,
|
|
147
149
|
InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
|
|
@@ -531,7 +533,10 @@ var ExecutionType = {
|
|
|
531
533
|
};
|
|
532
534
|
var ActionGroupSignature = {
|
|
533
535
|
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
534
|
-
AMAZON_USERINPUT: "AMAZON.UserInput"
|
|
536
|
+
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
537
|
+
ANTHROPIC_BASH: "ANTHROPIC.Bash",
|
|
538
|
+
ANTHROPIC_COMPUTER: "ANTHROPIC.Computer",
|
|
539
|
+
ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor"
|
|
535
540
|
};
|
|
536
541
|
var ActionInvocationType = {
|
|
537
542
|
RESULT: "RESULT",
|
|
@@ -576,13 +581,27 @@ var ConfirmationState = {
|
|
|
576
581
|
CONFIRM: "CONFIRM",
|
|
577
582
|
DENY: "DENY"
|
|
578
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 = {}));
|
|
579
598
|
var ResponseState = {
|
|
580
599
|
FAILURE: "FAILURE",
|
|
581
600
|
REPROMPT: "REPROMPT"
|
|
582
601
|
};
|
|
583
602
|
var InvocationResultMember;
|
|
584
|
-
((
|
|
585
|
-
|
|
603
|
+
((InvocationResultMember3) => {
|
|
604
|
+
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
586
605
|
if (value.apiResult !== void 0)
|
|
587
606
|
return visitor.apiResult(value.apiResult);
|
|
588
607
|
if (value.functionResult !== void 0)
|
|
@@ -1415,7 +1434,13 @@ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1415
1434
|
}), "AgentActionGroupFilterSensitiveLog");
|
|
1416
1435
|
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1417
1436
|
...obj,
|
|
1418
|
-
...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
|
+
}
|
|
1419
1444
|
}), "ApiResultFilterSensitiveLog");
|
|
1420
1445
|
var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1421
1446
|
if (obj.apiResult !== void 0)
|
|
@@ -3952,6 +3977,18 @@ var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) =>
|
|
|
3952
3977
|
var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
|
|
3953
3978
|
return input;
|
|
3954
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");
|
|
3955
3992
|
var se_BedrockRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3956
3993
|
return (0, import_smithy_client.take)(input, {
|
|
3957
3994
|
modelConfiguration: (_) => se_BedrockRerankingModelConfiguration(_, context),
|
|
@@ -4009,6 +4046,12 @@ var se_Collaborators = /* @__PURE__ */ __name((input, context) => {
|
|
|
4009
4046
|
return se_Collaborator(entry, context);
|
|
4010
4047
|
});
|
|
4011
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");
|
|
4012
4055
|
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
4013
4056
|
return (0, import_smithy_client.take)(input, {
|
|
4014
4057
|
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
@@ -4072,6 +4115,16 @@ var se_FlowInputs = /* @__PURE__ */ __name((input, context) => {
|
|
|
4072
4115
|
return se_FlowInput(entry, context);
|
|
4073
4116
|
});
|
|
4074
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");
|
|
4075
4128
|
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4076
4129
|
return (0, import_smithy_client.take)(input, {
|
|
4077
4130
|
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
@@ -4087,6 +4140,23 @@ var se_ImageBlock = /* @__PURE__ */ __name((input, context) => {
|
|
|
4087
4140
|
source: (_) => se_ImageSource(_, context)
|
|
4088
4141
|
});
|
|
4089
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");
|
|
4090
4160
|
var se_ImageSource = /* @__PURE__ */ __name((input, context) => {
|
|
4091
4161
|
return ImageSource.visit(input, {
|
|
4092
4162
|
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
@@ -4114,7 +4184,7 @@ var se_InlineSessionState = /* @__PURE__ */ __name((input, context) => {
|
|
|
4114
4184
|
files: (_) => se_InputFiles(_, context),
|
|
4115
4185
|
invocationId: [],
|
|
4116
4186
|
promptSessionAttributes: import_smithy_client._json,
|
|
4117
|
-
returnControlInvocationResults:
|
|
4187
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
4118
4188
|
sessionAttributes: import_smithy_client._json
|
|
4119
4189
|
});
|
|
4120
4190
|
}, "se_InlineSessionState");
|
|
@@ -4130,6 +4200,13 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
|
4130
4200
|
return se_InputFile(entry, context);
|
|
4131
4201
|
});
|
|
4132
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");
|
|
4133
4210
|
var se_InvocationStepPayload = /* @__PURE__ */ __name((input, context) => {
|
|
4134
4211
|
return InvocationStepPayload.visit(input, {
|
|
4135
4212
|
contentBlocks: (value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }),
|
|
@@ -4238,6 +4315,15 @@ var se_RerankSourcesList = /* @__PURE__ */ __name((input, context) => {
|
|
|
4238
4315
|
return se_RerankSource(entry, context);
|
|
4239
4316
|
});
|
|
4240
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");
|
|
4241
4327
|
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
4242
4328
|
return RetrievalFilter.visit(input, {
|
|
4243
4329
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -4268,6 +4354,11 @@ var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context
|
|
|
4268
4354
|
type: []
|
|
4269
4355
|
});
|
|
4270
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");
|
|
4271
4362
|
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
4272
4363
|
return (0, import_smithy_client.take)(input, {
|
|
4273
4364
|
conversationHistory: import_smithy_client._json,
|
|
@@ -4275,7 +4366,7 @@ var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
|
4275
4366
|
invocationId: [],
|
|
4276
4367
|
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
4277
4368
|
promptSessionAttributes: import_smithy_client._json,
|
|
4278
|
-
returnControlInvocationResults:
|
|
4369
|
+
returnControlInvocationResults: (_) => se_ReturnControlInvocationResults(_, context),
|
|
4279
4370
|
sessionAttributes: import_smithy_client._json
|
|
4280
4371
|
});
|
|
4281
4372
|
}, "se_SessionState");
|
|
@@ -4309,6 +4400,20 @@ var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, conte
|
|
|
4309
4400
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
4310
4401
|
return input;
|
|
4311
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");
|
|
4312
4417
|
var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4313
4418
|
return (0, import_smithy_client.take)(output, {
|
|
4314
4419
|
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
@@ -4316,6 +4421,18 @@ var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, conte
|
|
|
4316
4421
|
output: import_smithy_client._json
|
|
4317
4422
|
});
|
|
4318
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");
|
|
4319
4436
|
var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
4320
4437
|
return (0, import_smithy_client.take)(output, {
|
|
4321
4438
|
citations: (_) => de_Citations(_, context)
|
|
@@ -4357,6 +4474,12 @@ var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
|
4357
4474
|
});
|
|
4358
4475
|
return retVal;
|
|
4359
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");
|
|
4360
4483
|
var de_FilePart = /* @__PURE__ */ __name((output, context) => {
|
|
4361
4484
|
return (0, import_smithy_client.take)(output, {
|
|
4362
4485
|
files: (_) => de_OutputFiles(_, context)
|
|
@@ -4476,12 +4599,42 @@ var de_FlowTraceNodeOutputFields = /* @__PURE__ */ __name((output, context) => {
|
|
|
4476
4599
|
});
|
|
4477
4600
|
return retVal;
|
|
4478
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");
|
|
4479
4612
|
var de_ImageBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4480
4613
|
return (0, import_smithy_client.take)(output, {
|
|
4481
4614
|
format: import_smithy_client.expectString,
|
|
4482
4615
|
source: (_) => de_ImageSource((0, import_core2.awsExpectUnion)(_), context)
|
|
4483
4616
|
});
|
|
4484
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");
|
|
4485
4638
|
var de_ImageSource = /* @__PURE__ */ __name((output, context) => {
|
|
4486
4639
|
if (output.bytes != null) {
|
|
4487
4640
|
return {
|
|
@@ -4521,6 +4674,29 @@ var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
4521
4674
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
4522
4675
|
});
|
|
4523
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");
|
|
4524
4700
|
var de_InvocationStep = /* @__PURE__ */ __name((output, context) => {
|
|
4525
4701
|
return (0, import_smithy_client.take)(output, {
|
|
4526
4702
|
invocationId: import_smithy_client.expectString,
|
|
@@ -4642,7 +4818,7 @@ var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, cont
|
|
|
4642
4818
|
var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4643
4819
|
if (output.invocationInput != null) {
|
|
4644
4820
|
return {
|
|
4645
|
-
invocationInput: (
|
|
4821
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4646
4822
|
};
|
|
4647
4823
|
}
|
|
4648
4824
|
if (output.modelInvocationInput != null) {
|
|
@@ -4763,6 +4939,15 @@ var de_RerankResultsList = /* @__PURE__ */ __name((output, context) => {
|
|
|
4763
4939
|
});
|
|
4764
4940
|
return retVal;
|
|
4765
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");
|
|
4766
4951
|
var de_RetrievalResultMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
4767
4952
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4768
4953
|
if (value === null) {
|
|
@@ -4788,10 +4973,22 @@ var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
|
4788
4973
|
});
|
|
4789
4974
|
return retVal;
|
|
4790
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");
|
|
4791
4988
|
var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4792
4989
|
if (output.invocationInput != null) {
|
|
4793
4990
|
return {
|
|
4794
|
-
invocationInput: (
|
|
4991
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4795
4992
|
};
|
|
4796
4993
|
}
|
|
4797
4994
|
if (output.modelInvocationInput != null) {
|
|
@@ -5418,6 +5615,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5418
5615
|
FunctionSchema,
|
|
5419
5616
|
AgentCollaboration,
|
|
5420
5617
|
ConfirmationState,
|
|
5618
|
+
ImageInputFormat,
|
|
5619
|
+
ImageInputSource,
|
|
5421
5620
|
ResponseState,
|
|
5422
5621
|
InvocationResultMember,
|
|
5423
5622
|
PayloadType,
|
|
@@ -32,6 +32,9 @@ export const ExecutionType = {
|
|
|
32
32
|
export const ActionGroupSignature = {
|
|
33
33
|
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
34
34
|
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
35
|
+
ANTHROPIC_BASH: "ANTHROPIC.Bash",
|
|
36
|
+
ANTHROPIC_COMPUTER: "ANTHROPIC.Computer",
|
|
37
|
+
ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor",
|
|
35
38
|
};
|
|
36
39
|
export const ActionInvocationType = {
|
|
37
40
|
RESULT: "RESULT",
|
|
@@ -76,6 +79,20 @@ export const ConfirmationState = {
|
|
|
76
79
|
CONFIRM: "CONFIRM",
|
|
77
80
|
DENY: "DENY",
|
|
78
81
|
};
|
|
82
|
+
export const ImageInputFormat = {
|
|
83
|
+
GIF: "gif",
|
|
84
|
+
JPEG: "jpeg",
|
|
85
|
+
PNG: "png",
|
|
86
|
+
WEBP: "webp",
|
|
87
|
+
};
|
|
88
|
+
export var ImageInputSource;
|
|
89
|
+
(function (ImageInputSource) {
|
|
90
|
+
ImageInputSource.visit = (value, visitor) => {
|
|
91
|
+
if (value.bytes !== undefined)
|
|
92
|
+
return visitor.bytes(value.bytes);
|
|
93
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
94
|
+
};
|
|
95
|
+
})(ImageInputSource || (ImageInputSource = {}));
|
|
79
96
|
export const ResponseState = {
|
|
80
97
|
FAILURE: "FAILURE",
|
|
81
98
|
REPROMPT: "REPROMPT",
|
|
@@ -850,6 +867,9 @@ export const AgentActionGroupFilterSensitiveLog = (obj) => ({
|
|
|
850
867
|
export const ApiResultFilterSensitiveLog = (obj) => ({
|
|
851
868
|
...obj,
|
|
852
869
|
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
870
|
+
...(obj.responseBody && {
|
|
871
|
+
responseBody: Object.entries(obj.responseBody).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
|
|
872
|
+
}),
|
|
853
873
|
});
|
|
854
874
|
export const InvocationResultMemberFilterSensitiveLog = (obj) => {
|
|
855
875
|
if (obj.apiResult !== undefined)
|