@aws-sdk/client-bedrock-agent-runtime 3.808.0 → 3.810.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 +99 -25
- package/dist-es/models/models_0.js +20 -7
- package/dist-es/protocols/Aws_restJson1.js +67 -10
- package/dist-types/commands/InvokeAgentCommand.d.ts +33 -20
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +33 -20
- package/dist-types/models/models_0.d.ts +104 -35
- package/dist-types/ts3.4/models/models_0.d.ts +25 -9
- package/package.json +12 -12
package/dist-cjs/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
Caller: () => Caller,
|
|
52
52
|
CitationEventFilterSensitiveLog: () => CitationEventFilterSensitiveLog,
|
|
53
53
|
CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
|
|
54
|
+
CodeInterpreterInvocationOutputFilterSensitiveLog: () => CodeInterpreterInvocationOutputFilterSensitiveLog,
|
|
54
55
|
CollaboratorConfigurationFilterSensitiveLog: () => CollaboratorConfigurationFilterSensitiveLog,
|
|
55
56
|
CollaboratorFilterSensitiveLog: () => CollaboratorFilterSensitiveLog,
|
|
56
57
|
ConfirmationState: () => ConfirmationState,
|
|
@@ -1326,9 +1327,17 @@ var ActionGroupInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1326
1327
|
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING },
|
|
1327
1328
|
...obj.function && { function: import_smithy_client.SENSITIVE_STRING }
|
|
1328
1329
|
}), "ActionGroupInvocationInputFilterSensitiveLog");
|
|
1330
|
+
var UsageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1331
|
+
...obj
|
|
1332
|
+
}), "UsageFilterSensitiveLog");
|
|
1333
|
+
var MetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1334
|
+
...obj,
|
|
1335
|
+
...obj.usage && { usage: import_smithy_client.SENSITIVE_STRING }
|
|
1336
|
+
}), "MetadataFilterSensitiveLog");
|
|
1329
1337
|
var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1330
1338
|
...obj,
|
|
1331
|
-
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
1339
|
+
...obj.text && { text: import_smithy_client.SENSITIVE_STRING },
|
|
1340
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1332
1341
|
}), "ActionGroupInvocationOutputFilterSensitiveLog");
|
|
1333
1342
|
var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1334
1343
|
if (obj.s3 !== void 0) return { s3: obj.s3 };
|
|
@@ -1415,7 +1424,8 @@ var AgentCollaboratorOutputPayloadFilterSensitiveLog = /* @__PURE__ */ __name((o
|
|
|
1415
1424
|
}), "AgentCollaboratorOutputPayloadFilterSensitiveLog");
|
|
1416
1425
|
var AgentCollaboratorInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1417
1426
|
...obj,
|
|
1418
|
-
...obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }
|
|
1427
|
+
...obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) },
|
|
1428
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1419
1429
|
}), "AgentCollaboratorInvocationOutputFilterSensitiveLog");
|
|
1420
1430
|
var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1421
1431
|
if (obj.document !== void 0) return { document: obj.document };
|
|
@@ -1632,7 +1642,8 @@ var CustomOrchestrationTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
1632
1642
|
}), "CustomOrchestrationTraceFilterSensitiveLog");
|
|
1633
1643
|
var FailureTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1634
1644
|
...obj,
|
|
1635
|
-
...obj.failureReason && { failureReason: import_smithy_client.SENSITIVE_STRING }
|
|
1645
|
+
...obj.failureReason && { failureReason: import_smithy_client.SENSITIVE_STRING },
|
|
1646
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1636
1647
|
}), "FailureTraceFilterSensitiveLog");
|
|
1637
1648
|
var GuardrailContentFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1638
1649
|
...obj
|
|
@@ -1680,7 +1691,8 @@ var GuardrailAssessmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1680
1691
|
var GuardrailTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1681
1692
|
...obj,
|
|
1682
1693
|
...obj.inputAssessments && { inputAssessments: import_smithy_client.SENSITIVE_STRING },
|
|
1683
|
-
...obj.outputAssessments && { outputAssessments: import_smithy_client.SENSITIVE_STRING }
|
|
1694
|
+
...obj.outputAssessments && { outputAssessments: import_smithy_client.SENSITIVE_STRING },
|
|
1695
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1684
1696
|
}), "GuardrailTraceFilterSensitiveLog");
|
|
1685
1697
|
var KnowledgeBaseLookupInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1686
1698
|
...obj,
|
|
@@ -1705,13 +1717,6 @@ var ModelInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1705
1717
|
...obj,
|
|
1706
1718
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
1707
1719
|
}), "ModelInvocationInputFilterSensitiveLog");
|
|
1708
|
-
var UsageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1709
|
-
...obj
|
|
1710
|
-
}), "UsageFilterSensitiveLog");
|
|
1711
|
-
var MetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1712
|
-
...obj,
|
|
1713
|
-
...obj.usage && { usage: import_smithy_client.SENSITIVE_STRING }
|
|
1714
|
-
}), "MetadataFilterSensitiveLog");
|
|
1715
1720
|
var RawResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1716
1721
|
...obj
|
|
1717
1722
|
}), "RawResponseFilterSensitiveLog");
|
|
@@ -1729,15 +1734,21 @@ var OrchestrationModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __nam
|
|
|
1729
1734
|
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1730
1735
|
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1731
1736
|
}), "OrchestrationModelInvocationOutputFilterSensitiveLog");
|
|
1737
|
+
var CodeInterpreterInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1738
|
+
...obj,
|
|
1739
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1740
|
+
}), "CodeInterpreterInvocationOutputFilterSensitiveLog");
|
|
1732
1741
|
var FinalResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1733
1742
|
...obj,
|
|
1734
|
-
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
1743
|
+
...obj.text && { text: import_smithy_client.SENSITIVE_STRING },
|
|
1744
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1735
1745
|
}), "FinalResponseFilterSensitiveLog");
|
|
1736
1746
|
var KnowledgeBaseLookupOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1737
1747
|
...obj,
|
|
1738
1748
|
...obj.retrievedReferences && {
|
|
1739
1749
|
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item))
|
|
1740
|
-
}
|
|
1750
|
+
},
|
|
1751
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1741
1752
|
}), "KnowledgeBaseLookupOutputFilterSensitiveLog");
|
|
1742
1753
|
var RepromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1743
1754
|
...obj,
|
|
@@ -1757,7 +1768,12 @@ var ObservationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1757
1768
|
knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput)
|
|
1758
1769
|
},
|
|
1759
1770
|
...obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) },
|
|
1760
|
-
...obj.repromptResponse && { repromptResponse: import_smithy_client.SENSITIVE_STRING }
|
|
1771
|
+
...obj.repromptResponse && { repromptResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1772
|
+
...obj.codeInterpreterInvocationOutput && {
|
|
1773
|
+
codeInterpreterInvocationOutput: CodeInterpreterInvocationOutputFilterSensitiveLog(
|
|
1774
|
+
obj.codeInterpreterInvocationOutput
|
|
1775
|
+
)
|
|
1776
|
+
}
|
|
1761
1777
|
}), "ObservationFilterSensitiveLog");
|
|
1762
1778
|
var RationaleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1763
1779
|
...obj,
|
|
@@ -4189,6 +4205,12 @@ var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, conte
|
|
|
4189
4205
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
4190
4206
|
return input;
|
|
4191
4207
|
}, "se_Document");
|
|
4208
|
+
var de_ActionGroupInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4209
|
+
return (0, import_smithy_client.take)(output, {
|
|
4210
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4211
|
+
text: import_smithy_client.expectString
|
|
4212
|
+
});
|
|
4213
|
+
}, "de_ActionGroupInvocationOutput");
|
|
4192
4214
|
var de_AgentCollaboratorInputPayload = /* @__PURE__ */ __name((output, context) => {
|
|
4193
4215
|
return (0, import_smithy_client.take)(output, {
|
|
4194
4216
|
returnControlResults: /* @__PURE__ */ __name((_) => de_ReturnControlResults(_, context), "returnControlResults"),
|
|
@@ -4207,6 +4229,7 @@ var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, conte
|
|
|
4207
4229
|
return (0, import_smithy_client.take)(output, {
|
|
4208
4230
|
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
4209
4231
|
agentCollaboratorName: import_smithy_client.expectString,
|
|
4232
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4210
4233
|
output: import_smithy_client._json
|
|
4211
4234
|
});
|
|
4212
4235
|
}, "de_AgentCollaboratorInvocationOutput");
|
|
@@ -4263,17 +4286,40 @@ var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
|
4263
4286
|
});
|
|
4264
4287
|
return retVal;
|
|
4265
4288
|
}, "de_Citations");
|
|
4289
|
+
var de_CodeInterpreterInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4290
|
+
return (0, import_smithy_client.take)(output, {
|
|
4291
|
+
executionError: import_smithy_client.expectString,
|
|
4292
|
+
executionOutput: import_smithy_client.expectString,
|
|
4293
|
+
executionTimeout: import_smithy_client.expectBoolean,
|
|
4294
|
+
files: import_smithy_client._json,
|
|
4295
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata")
|
|
4296
|
+
});
|
|
4297
|
+
}, "de_CodeInterpreterInvocationOutput");
|
|
4266
4298
|
var de_ContentBody = /* @__PURE__ */ __name((output, context) => {
|
|
4267
4299
|
return (0, import_smithy_client.take)(output, {
|
|
4268
4300
|
body: import_smithy_client.expectString,
|
|
4269
4301
|
images: /* @__PURE__ */ __name((_) => de_ImageInputs(_, context), "images")
|
|
4270
4302
|
});
|
|
4271
4303
|
}, "de_ContentBody");
|
|
4304
|
+
var de_FailureTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4305
|
+
return (0, import_smithy_client.take)(output, {
|
|
4306
|
+
failureCode: import_smithy_client.expectInt32,
|
|
4307
|
+
failureReason: import_smithy_client.expectString,
|
|
4308
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4309
|
+
traceId: import_smithy_client.expectString
|
|
4310
|
+
});
|
|
4311
|
+
}, "de_FailureTrace");
|
|
4272
4312
|
var de_FilePart = /* @__PURE__ */ __name((output, context) => {
|
|
4273
4313
|
return (0, import_smithy_client.take)(output, {
|
|
4274
4314
|
files: /* @__PURE__ */ __name((_) => de_OutputFiles(_, context), "files")
|
|
4275
4315
|
});
|
|
4276
4316
|
}, "de_FilePart");
|
|
4317
|
+
var de_FinalResponse = /* @__PURE__ */ __name((output, context) => {
|
|
4318
|
+
return (0, import_smithy_client.take)(output, {
|
|
4319
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4320
|
+
text: import_smithy_client.expectString
|
|
4321
|
+
});
|
|
4322
|
+
}, "de_FinalResponse");
|
|
4277
4323
|
var de_FlowMultiTurnInputContent = /* @__PURE__ */ __name((output, context) => {
|
|
4278
4324
|
if (output.document != null) {
|
|
4279
4325
|
return {
|
|
@@ -4412,6 +4458,15 @@ var de_FunctionResult = /* @__PURE__ */ __name((output, context) => {
|
|
|
4412
4458
|
responseState: import_smithy_client.expectString
|
|
4413
4459
|
});
|
|
4414
4460
|
}, "de_FunctionResult");
|
|
4461
|
+
var de_GuardrailTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4462
|
+
return (0, import_smithy_client.take)(output, {
|
|
4463
|
+
action: import_smithy_client.expectString,
|
|
4464
|
+
inputAssessments: import_smithy_client._json,
|
|
4465
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4466
|
+
outputAssessments: import_smithy_client._json,
|
|
4467
|
+
traceId: import_smithy_client.expectString
|
|
4468
|
+
});
|
|
4469
|
+
}, "de_GuardrailTrace");
|
|
4415
4470
|
var de_ImageBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4416
4471
|
return (0, import_smithy_client.take)(output, {
|
|
4417
4472
|
format: import_smithy_client.expectString,
|
|
@@ -4549,6 +4604,7 @@ var de_InvocationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
4549
4604
|
}, "de_InvocationSummary");
|
|
4550
4605
|
var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4551
4606
|
return (0, import_smithy_client.take)(output, {
|
|
4607
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4552
4608
|
retrievedReferences: /* @__PURE__ */ __name((_) => de_RetrievedReferences(_, context), "retrievedReferences")
|
|
4553
4609
|
});
|
|
4554
4610
|
}, "de_KnowledgeBaseLookupOutput");
|
|
@@ -4589,6 +4645,16 @@ var de_MemorySessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
4589
4645
|
summaryText: import_smithy_client.expectString
|
|
4590
4646
|
});
|
|
4591
4647
|
}, "de_MemorySessionSummary");
|
|
4648
|
+
var de_Metadata = /* @__PURE__ */ __name((output, context) => {
|
|
4649
|
+
return (0, import_smithy_client.take)(output, {
|
|
4650
|
+
clientRequestId: import_smithy_client.expectString,
|
|
4651
|
+
endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endTime"),
|
|
4652
|
+
operationTotalTimeMs: import_smithy_client.expectLong,
|
|
4653
|
+
startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startTime"),
|
|
4654
|
+
totalTimeMs: import_smithy_client.expectLong,
|
|
4655
|
+
usage: import_smithy_client._json
|
|
4656
|
+
});
|
|
4657
|
+
}, "de_Metadata");
|
|
4592
4658
|
var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4593
4659
|
return (0, import_smithy_client.take)(output, {
|
|
4594
4660
|
foundationModel: import_smithy_client.expectString,
|
|
@@ -4603,10 +4669,10 @@ var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
|
4603
4669
|
}, "de_ModelInvocationInput");
|
|
4604
4670
|
var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
4605
4671
|
return (0, import_smithy_client.take)(output, {
|
|
4606
|
-
actionGroupInvocationOutput:
|
|
4672
|
+
actionGroupInvocationOutput: /* @__PURE__ */ __name((_) => de_ActionGroupInvocationOutput(_, context), "actionGroupInvocationOutput"),
|
|
4607
4673
|
agentCollaboratorInvocationOutput: /* @__PURE__ */ __name((_) => de_AgentCollaboratorInvocationOutput(_, context), "agentCollaboratorInvocationOutput"),
|
|
4608
|
-
codeInterpreterInvocationOutput:
|
|
4609
|
-
finalResponse:
|
|
4674
|
+
codeInterpreterInvocationOutput: /* @__PURE__ */ __name((_) => de_CodeInterpreterInvocationOutput(_, context), "codeInterpreterInvocationOutput"),
|
|
4675
|
+
finalResponse: /* @__PURE__ */ __name((_) => de_FinalResponse(_, context), "finalResponse"),
|
|
4610
4676
|
knowledgeBaseLookupOutput: /* @__PURE__ */ __name((_) => de_KnowledgeBaseLookupOutput(_, context), "knowledgeBaseLookupOutput"),
|
|
4611
4677
|
repromptResponse: import_smithy_client._json,
|
|
4612
4678
|
traceId: import_smithy_client.expectString,
|
|
@@ -4615,7 +4681,7 @@ var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
|
4615
4681
|
}, "de_Observation");
|
|
4616
4682
|
var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4617
4683
|
return (0, import_smithy_client.take)(output, {
|
|
4618
|
-
metadata:
|
|
4684
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4619
4685
|
rawResponse: import_smithy_client._json,
|
|
4620
4686
|
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
4621
4687
|
traceId: import_smithy_client.expectString
|
|
@@ -4670,7 +4736,7 @@ var de_PayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
|
4670
4736
|
}, "de_PayloadPart");
|
|
4671
4737
|
var de_PostProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4672
4738
|
return (0, import_smithy_client.take)(output, {
|
|
4673
|
-
metadata:
|
|
4739
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4674
4740
|
parsedResponse: import_smithy_client._json,
|
|
4675
4741
|
rawResponse: import_smithy_client._json,
|
|
4676
4742
|
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
@@ -4692,7 +4758,7 @@ var de_PostProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4692
4758
|
}, "de_PostProcessingTrace");
|
|
4693
4759
|
var de_PreProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4694
4760
|
return (0, import_smithy_client.take)(output, {
|
|
4695
|
-
metadata:
|
|
4761
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4696
4762
|
parsedResponse: import_smithy_client._json,
|
|
4697
4763
|
rawResponse: import_smithy_client._json,
|
|
4698
4764
|
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
@@ -4791,6 +4857,13 @@ var de_ReturnControlResults = /* @__PURE__ */ __name((output, context) => {
|
|
|
4791
4857
|
returnControlInvocationResults: /* @__PURE__ */ __name((_) => de_ReturnControlInvocationResults(_, context), "returnControlInvocationResults")
|
|
4792
4858
|
});
|
|
4793
4859
|
}, "de_ReturnControlResults");
|
|
4860
|
+
var de_RoutingClassifierModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4861
|
+
return (0, import_smithy_client.take)(output, {
|
|
4862
|
+
metadata: /* @__PURE__ */ __name((_) => de_Metadata(_, context), "metadata"),
|
|
4863
|
+
rawResponse: import_smithy_client._json,
|
|
4864
|
+
traceId: import_smithy_client.expectString
|
|
4865
|
+
});
|
|
4866
|
+
}, "de_RoutingClassifierModelInvocationOutput");
|
|
4794
4867
|
var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4795
4868
|
if (output.invocationInput != null) {
|
|
4796
4869
|
return {
|
|
@@ -4804,7 +4877,7 @@ var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4804
4877
|
}
|
|
4805
4878
|
if (output.modelInvocationOutput != null) {
|
|
4806
4879
|
return {
|
|
4807
|
-
modelInvocationOutput: (
|
|
4880
|
+
modelInvocationOutput: de_RoutingClassifierModelInvocationOutput(output.modelInvocationOutput, context)
|
|
4808
4881
|
};
|
|
4809
4882
|
}
|
|
4810
4883
|
if (output.observation != null) {
|
|
@@ -4837,12 +4910,12 @@ var de_Trace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4837
4910
|
}
|
|
4838
4911
|
if (output.failureTrace != null) {
|
|
4839
4912
|
return {
|
|
4840
|
-
failureTrace: (
|
|
4913
|
+
failureTrace: de_FailureTrace(output.failureTrace, context)
|
|
4841
4914
|
};
|
|
4842
4915
|
}
|
|
4843
4916
|
if (output.guardrailTrace != null) {
|
|
4844
4917
|
return {
|
|
4845
|
-
guardrailTrace: (
|
|
4918
|
+
guardrailTrace: de_GuardrailTrace(output.guardrailTrace, context)
|
|
4846
4919
|
};
|
|
4847
4920
|
}
|
|
4848
4921
|
if (output.orchestrationTrace != null) {
|
|
@@ -5510,6 +5583,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5510
5583
|
BedrockSessionContentBlock,
|
|
5511
5584
|
InvocationStepPayload,
|
|
5512
5585
|
ActionGroupInvocationInputFilterSensitiveLog,
|
|
5586
|
+
UsageFilterSensitiveLog,
|
|
5587
|
+
MetadataFilterSensitiveLog,
|
|
5513
5588
|
ActionGroupInvocationOutputFilterSensitiveLog,
|
|
5514
5589
|
APISchemaFilterSensitiveLog,
|
|
5515
5590
|
FunctionDefinitionFilterSensitiveLog,
|
|
@@ -5589,12 +5664,11 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5589
5664
|
KnowledgeBaseLookupInputFilterSensitiveLog,
|
|
5590
5665
|
InvocationInputFilterSensitiveLog,
|
|
5591
5666
|
ModelInvocationInputFilterSensitiveLog,
|
|
5592
|
-
UsageFilterSensitiveLog,
|
|
5593
|
-
MetadataFilterSensitiveLog,
|
|
5594
5667
|
RawResponseFilterSensitiveLog,
|
|
5595
5668
|
ReasoningTextBlockFilterSensitiveLog,
|
|
5596
5669
|
ReasoningContentBlockFilterSensitiveLog,
|
|
5597
5670
|
OrchestrationModelInvocationOutputFilterSensitiveLog,
|
|
5671
|
+
CodeInterpreterInvocationOutputFilterSensitiveLog,
|
|
5598
5672
|
FinalResponseFilterSensitiveLog,
|
|
5599
5673
|
KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
5600
5674
|
RepromptResponseFilterSensitiveLog,
|
|
@@ -848,9 +848,17 @@ export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
|
|
|
848
848
|
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
849
849
|
...(obj.function && { function: SENSITIVE_STRING }),
|
|
850
850
|
});
|
|
851
|
+
export const UsageFilterSensitiveLog = (obj) => ({
|
|
852
|
+
...obj,
|
|
853
|
+
});
|
|
854
|
+
export const MetadataFilterSensitiveLog = (obj) => ({
|
|
855
|
+
...obj,
|
|
856
|
+
...(obj.usage && { usage: SENSITIVE_STRING }),
|
|
857
|
+
});
|
|
851
858
|
export const ActionGroupInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
852
859
|
...obj,
|
|
853
860
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
861
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
854
862
|
});
|
|
855
863
|
export const APISchemaFilterSensitiveLog = (obj) => {
|
|
856
864
|
if (obj.s3 !== undefined)
|
|
@@ -941,6 +949,7 @@ export const AgentCollaboratorOutputPayloadFilterSensitiveLog = (obj) => ({
|
|
|
941
949
|
export const AgentCollaboratorInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
942
950
|
...obj,
|
|
943
951
|
...(obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }),
|
|
952
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
944
953
|
});
|
|
945
954
|
export const FlowInputContentFilterSensitiveLog = (obj) => {
|
|
946
955
|
if (obj.document !== undefined)
|
|
@@ -1181,6 +1190,7 @@ export const CustomOrchestrationTraceFilterSensitiveLog = (obj) => ({
|
|
|
1181
1190
|
export const FailureTraceFilterSensitiveLog = (obj) => ({
|
|
1182
1191
|
...obj,
|
|
1183
1192
|
...(obj.failureReason && { failureReason: SENSITIVE_STRING }),
|
|
1193
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1184
1194
|
});
|
|
1185
1195
|
export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
|
|
1186
1196
|
...obj,
|
|
@@ -1229,6 +1239,7 @@ export const GuardrailTraceFilterSensitiveLog = (obj) => ({
|
|
|
1229
1239
|
...obj,
|
|
1230
1240
|
...(obj.inputAssessments && { inputAssessments: SENSITIVE_STRING }),
|
|
1231
1241
|
...(obj.outputAssessments && { outputAssessments: SENSITIVE_STRING }),
|
|
1242
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1232
1243
|
});
|
|
1233
1244
|
export const KnowledgeBaseLookupInputFilterSensitiveLog = (obj) => ({
|
|
1234
1245
|
...obj,
|
|
@@ -1251,13 +1262,6 @@ export const ModelInvocationInputFilterSensitiveLog = (obj) => ({
|
|
|
1251
1262
|
...obj,
|
|
1252
1263
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
1253
1264
|
});
|
|
1254
|
-
export const UsageFilterSensitiveLog = (obj) => ({
|
|
1255
|
-
...obj,
|
|
1256
|
-
});
|
|
1257
|
-
export const MetadataFilterSensitiveLog = (obj) => ({
|
|
1258
|
-
...obj,
|
|
1259
|
-
...(obj.usage && { usage: SENSITIVE_STRING }),
|
|
1260
|
-
});
|
|
1261
1265
|
export const RawResponseFilterSensitiveLog = (obj) => ({
|
|
1262
1266
|
...obj,
|
|
1263
1267
|
});
|
|
@@ -1278,15 +1282,21 @@ export const OrchestrationModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
1278
1282
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1279
1283
|
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1280
1284
|
});
|
|
1285
|
+
export const CodeInterpreterInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
1286
|
+
...obj,
|
|
1287
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1288
|
+
});
|
|
1281
1289
|
export const FinalResponseFilterSensitiveLog = (obj) => ({
|
|
1282
1290
|
...obj,
|
|
1283
1291
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
1292
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1284
1293
|
});
|
|
1285
1294
|
export const KnowledgeBaseLookupOutputFilterSensitiveLog = (obj) => ({
|
|
1286
1295
|
...obj,
|
|
1287
1296
|
...(obj.retrievedReferences && {
|
|
1288
1297
|
retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
|
|
1289
1298
|
}),
|
|
1299
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1290
1300
|
});
|
|
1291
1301
|
export const RepromptResponseFilterSensitiveLog = (obj) => ({
|
|
1292
1302
|
...obj,
|
|
@@ -1305,6 +1315,9 @@ export const ObservationFilterSensitiveLog = (obj) => ({
|
|
|
1305
1315
|
}),
|
|
1306
1316
|
...(obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) }),
|
|
1307
1317
|
...(obj.repromptResponse && { repromptResponse: SENSITIVE_STRING }),
|
|
1318
|
+
...(obj.codeInterpreterInvocationOutput && {
|
|
1319
|
+
codeInterpreterInvocationOutput: CodeInterpreterInvocationOutputFilterSensitiveLog(obj.codeInterpreterInvocationOutput),
|
|
1320
|
+
}),
|
|
1308
1321
|
});
|
|
1309
1322
|
export const RationaleFilterSensitiveLog = (obj) => ({
|
|
1310
1323
|
...obj,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { BedrockAgentRuntimeServiceException as __BaseException } from "../models/BedrockAgentRuntimeServiceException";
|
|
5
5
|
import { AccessDeniedException, BadGatewayException, BedrockSessionContentBlock, ConflictException, DependencyFailedException, FlowInputContent, ImageInputSource, ImageSource, InternalServerException, InvocationResultMember, InvocationStepPayload, ModelNotReadyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
import { RetrievalFilter, } from "../models/models_1";
|
|
@@ -1871,6 +1871,12 @@ const se_VectorSearchRerankingConfiguration = (input, context) => {
|
|
|
1871
1871
|
const se_Document = (input, context) => {
|
|
1872
1872
|
return input;
|
|
1873
1873
|
};
|
|
1874
|
+
const de_ActionGroupInvocationOutput = (output, context) => {
|
|
1875
|
+
return take(output, {
|
|
1876
|
+
metadata: (_) => de_Metadata(_, context),
|
|
1877
|
+
text: __expectString,
|
|
1878
|
+
});
|
|
1879
|
+
};
|
|
1874
1880
|
const de_AgentCollaboratorInputPayload = (output, context) => {
|
|
1875
1881
|
return take(output, {
|
|
1876
1882
|
returnControlResults: (_) => de_ReturnControlResults(_, context),
|
|
@@ -1889,6 +1895,7 @@ const de_AgentCollaboratorInvocationOutput = (output, context) => {
|
|
|
1889
1895
|
return take(output, {
|
|
1890
1896
|
agentCollaboratorAliasArn: __expectString,
|
|
1891
1897
|
agentCollaboratorName: __expectString,
|
|
1898
|
+
metadata: (_) => de_Metadata(_, context),
|
|
1892
1899
|
output: _json,
|
|
1893
1900
|
});
|
|
1894
1901
|
};
|
|
@@ -1949,17 +1956,40 @@ const de_Citations = (output, context) => {
|
|
|
1949
1956
|
});
|
|
1950
1957
|
return retVal;
|
|
1951
1958
|
};
|
|
1959
|
+
const de_CodeInterpreterInvocationOutput = (output, context) => {
|
|
1960
|
+
return take(output, {
|
|
1961
|
+
executionError: __expectString,
|
|
1962
|
+
executionOutput: __expectString,
|
|
1963
|
+
executionTimeout: __expectBoolean,
|
|
1964
|
+
files: _json,
|
|
1965
|
+
metadata: (_) => de_Metadata(_, context),
|
|
1966
|
+
});
|
|
1967
|
+
};
|
|
1952
1968
|
const de_ContentBody = (output, context) => {
|
|
1953
1969
|
return take(output, {
|
|
1954
1970
|
body: __expectString,
|
|
1955
1971
|
images: (_) => de_ImageInputs(_, context),
|
|
1956
1972
|
});
|
|
1957
1973
|
};
|
|
1974
|
+
const de_FailureTrace = (output, context) => {
|
|
1975
|
+
return take(output, {
|
|
1976
|
+
failureCode: __expectInt32,
|
|
1977
|
+
failureReason: __expectString,
|
|
1978
|
+
metadata: (_) => de_Metadata(_, context),
|
|
1979
|
+
traceId: __expectString,
|
|
1980
|
+
});
|
|
1981
|
+
};
|
|
1958
1982
|
const de_FilePart = (output, context) => {
|
|
1959
1983
|
return take(output, {
|
|
1960
1984
|
files: (_) => de_OutputFiles(_, context),
|
|
1961
1985
|
});
|
|
1962
1986
|
};
|
|
1987
|
+
const de_FinalResponse = (output, context) => {
|
|
1988
|
+
return take(output, {
|
|
1989
|
+
metadata: (_) => de_Metadata(_, context),
|
|
1990
|
+
text: __expectString,
|
|
1991
|
+
});
|
|
1992
|
+
};
|
|
1963
1993
|
const de_FlowMultiTurnInputContent = (output, context) => {
|
|
1964
1994
|
if (output.document != null) {
|
|
1965
1995
|
return {
|
|
@@ -2102,6 +2132,15 @@ const de_FunctionResult = (output, context) => {
|
|
|
2102
2132
|
responseState: __expectString,
|
|
2103
2133
|
});
|
|
2104
2134
|
};
|
|
2135
|
+
const de_GuardrailTrace = (output, context) => {
|
|
2136
|
+
return take(output, {
|
|
2137
|
+
action: __expectString,
|
|
2138
|
+
inputAssessments: _json,
|
|
2139
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2140
|
+
outputAssessments: _json,
|
|
2141
|
+
traceId: __expectString,
|
|
2142
|
+
});
|
|
2143
|
+
};
|
|
2105
2144
|
const de_ImageBlock = (output, context) => {
|
|
2106
2145
|
return take(output, {
|
|
2107
2146
|
format: __expectString,
|
|
@@ -2245,6 +2284,7 @@ const de_InvocationSummary = (output, context) => {
|
|
|
2245
2284
|
};
|
|
2246
2285
|
const de_KnowledgeBaseLookupOutput = (output, context) => {
|
|
2247
2286
|
return take(output, {
|
|
2287
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2248
2288
|
retrievedReferences: (_) => de_RetrievedReferences(_, context),
|
|
2249
2289
|
});
|
|
2250
2290
|
};
|
|
@@ -2289,6 +2329,16 @@ const de_MemorySessionSummary = (output, context) => {
|
|
|
2289
2329
|
summaryText: __expectString,
|
|
2290
2330
|
});
|
|
2291
2331
|
};
|
|
2332
|
+
const de_Metadata = (output, context) => {
|
|
2333
|
+
return take(output, {
|
|
2334
|
+
clientRequestId: __expectString,
|
|
2335
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2336
|
+
operationTotalTimeMs: __expectLong,
|
|
2337
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2338
|
+
totalTimeMs: __expectLong,
|
|
2339
|
+
usage: _json,
|
|
2340
|
+
});
|
|
2341
|
+
};
|
|
2292
2342
|
const de_ModelInvocationInput = (output, context) => {
|
|
2293
2343
|
return take(output, {
|
|
2294
2344
|
foundationModel: __expectString,
|
|
@@ -2303,10 +2353,10 @@ const de_ModelInvocationInput = (output, context) => {
|
|
|
2303
2353
|
};
|
|
2304
2354
|
const de_Observation = (output, context) => {
|
|
2305
2355
|
return take(output, {
|
|
2306
|
-
actionGroupInvocationOutput:
|
|
2356
|
+
actionGroupInvocationOutput: (_) => de_ActionGroupInvocationOutput(_, context),
|
|
2307
2357
|
agentCollaboratorInvocationOutput: (_) => de_AgentCollaboratorInvocationOutput(_, context),
|
|
2308
|
-
codeInterpreterInvocationOutput:
|
|
2309
|
-
finalResponse:
|
|
2358
|
+
codeInterpreterInvocationOutput: (_) => de_CodeInterpreterInvocationOutput(_, context),
|
|
2359
|
+
finalResponse: (_) => de_FinalResponse(_, context),
|
|
2310
2360
|
knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
|
|
2311
2361
|
repromptResponse: _json,
|
|
2312
2362
|
traceId: __expectString,
|
|
@@ -2315,7 +2365,7 @@ const de_Observation = (output, context) => {
|
|
|
2315
2365
|
};
|
|
2316
2366
|
const de_OrchestrationModelInvocationOutput = (output, context) => {
|
|
2317
2367
|
return take(output, {
|
|
2318
|
-
metadata:
|
|
2368
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2319
2369
|
rawResponse: _json,
|
|
2320
2370
|
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
2321
2371
|
traceId: __expectString,
|
|
@@ -2372,7 +2422,7 @@ const de_PayloadPart = (output, context) => {
|
|
|
2372
2422
|
};
|
|
2373
2423
|
const de_PostProcessingModelInvocationOutput = (output, context) => {
|
|
2374
2424
|
return take(output, {
|
|
2375
|
-
metadata:
|
|
2425
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2376
2426
|
parsedResponse: _json,
|
|
2377
2427
|
rawResponse: _json,
|
|
2378
2428
|
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
@@ -2394,7 +2444,7 @@ const de_PostProcessingTrace = (output, context) => {
|
|
|
2394
2444
|
};
|
|
2395
2445
|
const de_PreProcessingModelInvocationOutput = (output, context) => {
|
|
2396
2446
|
return take(output, {
|
|
2397
|
-
metadata:
|
|
2447
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2398
2448
|
parsedResponse: _json,
|
|
2399
2449
|
rawResponse: _json,
|
|
2400
2450
|
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
@@ -2499,6 +2549,13 @@ const de_ReturnControlResults = (output, context) => {
|
|
|
2499
2549
|
returnControlInvocationResults: (_) => de_ReturnControlInvocationResults(_, context),
|
|
2500
2550
|
});
|
|
2501
2551
|
};
|
|
2552
|
+
const de_RoutingClassifierModelInvocationOutput = (output, context) => {
|
|
2553
|
+
return take(output, {
|
|
2554
|
+
metadata: (_) => de_Metadata(_, context),
|
|
2555
|
+
rawResponse: _json,
|
|
2556
|
+
traceId: __expectString,
|
|
2557
|
+
});
|
|
2558
|
+
};
|
|
2502
2559
|
const de_RoutingClassifierTrace = (output, context) => {
|
|
2503
2560
|
if (output.invocationInput != null) {
|
|
2504
2561
|
return {
|
|
@@ -2512,7 +2569,7 @@ const de_RoutingClassifierTrace = (output, context) => {
|
|
|
2512
2569
|
}
|
|
2513
2570
|
if (output.modelInvocationOutput != null) {
|
|
2514
2571
|
return {
|
|
2515
|
-
modelInvocationOutput:
|
|
2572
|
+
modelInvocationOutput: de_RoutingClassifierModelInvocationOutput(output.modelInvocationOutput, context),
|
|
2516
2573
|
};
|
|
2517
2574
|
}
|
|
2518
2575
|
if (output.observation != null) {
|
|
@@ -2547,12 +2604,12 @@ const de_Trace = (output, context) => {
|
|
|
2547
2604
|
}
|
|
2548
2605
|
if (output.failureTrace != null) {
|
|
2549
2606
|
return {
|
|
2550
|
-
failureTrace:
|
|
2607
|
+
failureTrace: de_FailureTrace(output.failureTrace, context),
|
|
2551
2608
|
};
|
|
2552
2609
|
}
|
|
2553
2610
|
if (output.guardrailTrace != null) {
|
|
2554
2611
|
return {
|
|
2555
|
-
guardrailTrace:
|
|
2612
|
+
guardrailTrace: de_GuardrailTrace(output.guardrailTrace, context),
|
|
2556
2613
|
};
|
|
2557
2614
|
}
|
|
2558
2615
|
if (output.orchestrationTrace != null) {
|
|
@@ -419,6 +419,17 @@ declare const InvokeAgentCommand_base: {
|
|
|
419
419
|
* // },
|
|
420
420
|
* // },
|
|
421
421
|
* // ],
|
|
422
|
+
* // metadata: { // Metadata
|
|
423
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
424
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
425
|
+
* // totalTimeMs: Number("long"),
|
|
426
|
+
* // operationTotalTimeMs: Number("long"),
|
|
427
|
+
* // clientRequestId: "STRING_VALUE",
|
|
428
|
+
* // usage: { // Usage
|
|
429
|
+
* // inputTokens: Number("int"),
|
|
430
|
+
* // outputTokens: Number("int"),
|
|
431
|
+
* // },
|
|
432
|
+
* // },
|
|
422
433
|
* // },
|
|
423
434
|
* // preProcessingTrace: { // PreProcessingTrace Union: only one key present
|
|
424
435
|
* // modelInvocationInput: { // ModelInvocationInput
|
|
@@ -448,8 +459,13 @@ declare const InvokeAgentCommand_base: {
|
|
|
448
459
|
* // rawResponse: { // RawResponse
|
|
449
460
|
* // content: "STRING_VALUE",
|
|
450
461
|
* // },
|
|
451
|
-
* // metadata: {
|
|
452
|
-
* //
|
|
462
|
+
* // metadata: {
|
|
463
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
464
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
465
|
+
* // totalTimeMs: Number("long"),
|
|
466
|
+
* // operationTotalTimeMs: Number("long"),
|
|
467
|
+
* // clientRequestId: "STRING_VALUE",
|
|
468
|
+
* // usage: {
|
|
453
469
|
* // inputTokens: Number("int"),
|
|
454
470
|
* // outputTokens: Number("int"),
|
|
455
471
|
* // },
|
|
@@ -570,6 +586,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
570
586
|
* // type: "ACTION_GROUP" || "AGENT_COLLABORATOR" || "KNOWLEDGE_BASE" || "FINISH" || "ASK_USER" || "REPROMPT",
|
|
571
587
|
* // actionGroupInvocationOutput: { // ActionGroupInvocationOutput
|
|
572
588
|
* // text: "STRING_VALUE",
|
|
589
|
+
* // metadata: "<Metadata>",
|
|
573
590
|
* // },
|
|
574
591
|
* // agentCollaboratorInvocationOutput: { // AgentCollaboratorInvocationOutput
|
|
575
592
|
* // agentCollaboratorName: "STRING_VALUE",
|
|
@@ -623,6 +640,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
623
640
|
* // invocationId: "STRING_VALUE",
|
|
624
641
|
* // },
|
|
625
642
|
* // },
|
|
643
|
+
* // metadata: "<Metadata>",
|
|
626
644
|
* // },
|
|
627
645
|
* // knowledgeBaseLookupOutput: { // KnowledgeBaseLookupOutput
|
|
628
646
|
* // retrievedReferences: [
|
|
@@ -671,9 +689,11 @@ declare const InvokeAgentCommand_base: {
|
|
|
671
689
|
* // },
|
|
672
690
|
* // },
|
|
673
691
|
* // ],
|
|
692
|
+
* // metadata: "<Metadata>",
|
|
674
693
|
* // },
|
|
675
694
|
* // finalResponse: { // FinalResponse
|
|
676
695
|
* // text: "STRING_VALUE",
|
|
696
|
+
* // metadata: "<Metadata>",
|
|
677
697
|
* // },
|
|
678
698
|
* // repromptResponse: { // RepromptResponse
|
|
679
699
|
* // text: "STRING_VALUE",
|
|
@@ -686,6 +706,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
686
706
|
* // "STRING_VALUE",
|
|
687
707
|
* // ],
|
|
688
708
|
* // executionTimeout: true || false,
|
|
709
|
+
* // metadata: "<Metadata>",
|
|
689
710
|
* // },
|
|
690
711
|
* // },
|
|
691
712
|
* // modelInvocationInput: {
|
|
@@ -711,12 +732,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
711
732
|
* // rawResponse: {
|
|
712
733
|
* // content: "STRING_VALUE",
|
|
713
734
|
* // },
|
|
714
|
-
* // metadata:
|
|
715
|
-
* // usage: {
|
|
716
|
-
* // inputTokens: Number("int"),
|
|
717
|
-
* // outputTokens: Number("int"),
|
|
718
|
-
* // },
|
|
719
|
-
* // },
|
|
735
|
+
* // metadata: "<Metadata>",
|
|
720
736
|
* // reasoningContent: {// Union: only one key present
|
|
721
737
|
* // reasoningText: {
|
|
722
738
|
* // text: "STRING_VALUE", // required
|
|
@@ -753,12 +769,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
753
769
|
* // rawResponse: {
|
|
754
770
|
* // content: "STRING_VALUE",
|
|
755
771
|
* // },
|
|
756
|
-
* // metadata:
|
|
757
|
-
* // usage: {
|
|
758
|
-
* // inputTokens: Number("int"),
|
|
759
|
-
* // outputTokens: Number("int"),
|
|
760
|
-
* // },
|
|
761
|
-
* // },
|
|
772
|
+
* // metadata: "<Metadata>",
|
|
762
773
|
* // reasoningContent: {// Union: only one key present
|
|
763
774
|
* // reasoningText: {
|
|
764
775
|
* // text: "STRING_VALUE", // required
|
|
@@ -863,6 +874,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
863
874
|
* // type: "ACTION_GROUP" || "AGENT_COLLABORATOR" || "KNOWLEDGE_BASE" || "FINISH" || "ASK_USER" || "REPROMPT",
|
|
864
875
|
* // actionGroupInvocationOutput: {
|
|
865
876
|
* // text: "STRING_VALUE",
|
|
877
|
+
* // metadata: "<Metadata>",
|
|
866
878
|
* // },
|
|
867
879
|
* // agentCollaboratorInvocationOutput: {
|
|
868
880
|
* // agentCollaboratorName: "STRING_VALUE",
|
|
@@ -916,6 +928,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
916
928
|
* // invocationId: "STRING_VALUE",
|
|
917
929
|
* // },
|
|
918
930
|
* // },
|
|
931
|
+
* // metadata: "<Metadata>",
|
|
919
932
|
* // },
|
|
920
933
|
* // knowledgeBaseLookupOutput: {
|
|
921
934
|
* // retrievedReferences: [
|
|
@@ -964,9 +977,11 @@ declare const InvokeAgentCommand_base: {
|
|
|
964
977
|
* // },
|
|
965
978
|
* // },
|
|
966
979
|
* // ],
|
|
980
|
+
* // metadata: "<Metadata>",
|
|
967
981
|
* // },
|
|
968
982
|
* // finalResponse: {
|
|
969
983
|
* // text: "STRING_VALUE",
|
|
984
|
+
* // metadata: "<Metadata>",
|
|
970
985
|
* // },
|
|
971
986
|
* // repromptResponse: {
|
|
972
987
|
* // text: "STRING_VALUE",
|
|
@@ -979,6 +994,7 @@ declare const InvokeAgentCommand_base: {
|
|
|
979
994
|
* // "STRING_VALUE",
|
|
980
995
|
* // ],
|
|
981
996
|
* // executionTimeout: true || false,
|
|
997
|
+
* // metadata: "<Metadata>",
|
|
982
998
|
* // },
|
|
983
999
|
* // },
|
|
984
1000
|
* // modelInvocationInput: {
|
|
@@ -1004,17 +1020,14 @@ declare const InvokeAgentCommand_base: {
|
|
|
1004
1020
|
* // rawResponse: {
|
|
1005
1021
|
* // content: "STRING_VALUE",
|
|
1006
1022
|
* // },
|
|
1007
|
-
* // metadata:
|
|
1008
|
-
* // usage: {
|
|
1009
|
-
* // inputTokens: Number("int"),
|
|
1010
|
-
* // outputTokens: Number("int"),
|
|
1011
|
-
* // },
|
|
1012
|
-
* // },
|
|
1023
|
+
* // metadata: "<Metadata>",
|
|
1013
1024
|
* // },
|
|
1014
1025
|
* // },
|
|
1015
1026
|
* // failureTrace: { // FailureTrace
|
|
1016
1027
|
* // traceId: "STRING_VALUE",
|
|
1017
1028
|
* // failureReason: "STRING_VALUE",
|
|
1029
|
+
* // failureCode: Number("int"),
|
|
1030
|
+
* // metadata: "<Metadata>",
|
|
1018
1031
|
* // },
|
|
1019
1032
|
* // customOrchestrationTrace: { // CustomOrchestrationTrace
|
|
1020
1033
|
* // traceId: "STRING_VALUE",
|
|
@@ -632,6 +632,17 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
632
632
|
* // },
|
|
633
633
|
* // },
|
|
634
634
|
* // ],
|
|
635
|
+
* // metadata: { // Metadata
|
|
636
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
637
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
638
|
+
* // totalTimeMs: Number("long"),
|
|
639
|
+
* // operationTotalTimeMs: Number("long"),
|
|
640
|
+
* // clientRequestId: "STRING_VALUE",
|
|
641
|
+
* // usage: { // Usage
|
|
642
|
+
* // inputTokens: Number("int"),
|
|
643
|
+
* // outputTokens: Number("int"),
|
|
644
|
+
* // },
|
|
645
|
+
* // },
|
|
635
646
|
* // },
|
|
636
647
|
* // preProcessingTrace: { // PreProcessingTrace Union: only one key present
|
|
637
648
|
* // modelInvocationInput: { // ModelInvocationInput
|
|
@@ -661,8 +672,13 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
661
672
|
* // rawResponse: { // RawResponse
|
|
662
673
|
* // content: "STRING_VALUE",
|
|
663
674
|
* // },
|
|
664
|
-
* // metadata: {
|
|
665
|
-
* //
|
|
675
|
+
* // metadata: {
|
|
676
|
+
* // startTime: new Date("TIMESTAMP"),
|
|
677
|
+
* // endTime: new Date("TIMESTAMP"),
|
|
678
|
+
* // totalTimeMs: Number("long"),
|
|
679
|
+
* // operationTotalTimeMs: Number("long"),
|
|
680
|
+
* // clientRequestId: "STRING_VALUE",
|
|
681
|
+
* // usage: {
|
|
666
682
|
* // inputTokens: Number("int"),
|
|
667
683
|
* // outputTokens: Number("int"),
|
|
668
684
|
* // },
|
|
@@ -783,6 +799,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
783
799
|
* // type: "ACTION_GROUP" || "AGENT_COLLABORATOR" || "KNOWLEDGE_BASE" || "FINISH" || "ASK_USER" || "REPROMPT",
|
|
784
800
|
* // actionGroupInvocationOutput: { // ActionGroupInvocationOutput
|
|
785
801
|
* // text: "STRING_VALUE",
|
|
802
|
+
* // metadata: "<Metadata>",
|
|
786
803
|
* // },
|
|
787
804
|
* // agentCollaboratorInvocationOutput: { // AgentCollaboratorInvocationOutput
|
|
788
805
|
* // agentCollaboratorName: "STRING_VALUE",
|
|
@@ -836,6 +853,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
836
853
|
* // invocationId: "STRING_VALUE",
|
|
837
854
|
* // },
|
|
838
855
|
* // },
|
|
856
|
+
* // metadata: "<Metadata>",
|
|
839
857
|
* // },
|
|
840
858
|
* // knowledgeBaseLookupOutput: { // KnowledgeBaseLookupOutput
|
|
841
859
|
* // retrievedReferences: [
|
|
@@ -884,9 +902,11 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
884
902
|
* // },
|
|
885
903
|
* // },
|
|
886
904
|
* // ],
|
|
905
|
+
* // metadata: "<Metadata>",
|
|
887
906
|
* // },
|
|
888
907
|
* // finalResponse: { // FinalResponse
|
|
889
908
|
* // text: "STRING_VALUE",
|
|
909
|
+
* // metadata: "<Metadata>",
|
|
890
910
|
* // },
|
|
891
911
|
* // repromptResponse: { // RepromptResponse
|
|
892
912
|
* // text: "STRING_VALUE",
|
|
@@ -899,6 +919,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
899
919
|
* // "STRING_VALUE",
|
|
900
920
|
* // ],
|
|
901
921
|
* // executionTimeout: true || false,
|
|
922
|
+
* // metadata: "<Metadata>",
|
|
902
923
|
* // },
|
|
903
924
|
* // },
|
|
904
925
|
* // modelInvocationInput: {
|
|
@@ -924,12 +945,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
924
945
|
* // rawResponse: {
|
|
925
946
|
* // content: "STRING_VALUE",
|
|
926
947
|
* // },
|
|
927
|
-
* // metadata:
|
|
928
|
-
* // usage: {
|
|
929
|
-
* // inputTokens: Number("int"),
|
|
930
|
-
* // outputTokens: Number("int"),
|
|
931
|
-
* // },
|
|
932
|
-
* // },
|
|
948
|
+
* // metadata: "<Metadata>",
|
|
933
949
|
* // reasoningContent: {// Union: only one key present
|
|
934
950
|
* // reasoningText: {
|
|
935
951
|
* // text: "STRING_VALUE", // required
|
|
@@ -966,12 +982,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
966
982
|
* // rawResponse: {
|
|
967
983
|
* // content: "STRING_VALUE",
|
|
968
984
|
* // },
|
|
969
|
-
* // metadata:
|
|
970
|
-
* // usage: {
|
|
971
|
-
* // inputTokens: Number("int"),
|
|
972
|
-
* // outputTokens: Number("int"),
|
|
973
|
-
* // },
|
|
974
|
-
* // },
|
|
985
|
+
* // metadata: "<Metadata>",
|
|
975
986
|
* // reasoningContent: {// Union: only one key present
|
|
976
987
|
* // reasoningText: {
|
|
977
988
|
* // text: "STRING_VALUE", // required
|
|
@@ -1076,6 +1087,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1076
1087
|
* // type: "ACTION_GROUP" || "AGENT_COLLABORATOR" || "KNOWLEDGE_BASE" || "FINISH" || "ASK_USER" || "REPROMPT",
|
|
1077
1088
|
* // actionGroupInvocationOutput: {
|
|
1078
1089
|
* // text: "STRING_VALUE",
|
|
1090
|
+
* // metadata: "<Metadata>",
|
|
1079
1091
|
* // },
|
|
1080
1092
|
* // agentCollaboratorInvocationOutput: {
|
|
1081
1093
|
* // agentCollaboratorName: "STRING_VALUE",
|
|
@@ -1129,6 +1141,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1129
1141
|
* // invocationId: "STRING_VALUE",
|
|
1130
1142
|
* // },
|
|
1131
1143
|
* // },
|
|
1144
|
+
* // metadata: "<Metadata>",
|
|
1132
1145
|
* // },
|
|
1133
1146
|
* // knowledgeBaseLookupOutput: {
|
|
1134
1147
|
* // retrievedReferences: [
|
|
@@ -1177,9 +1190,11 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1177
1190
|
* // },
|
|
1178
1191
|
* // },
|
|
1179
1192
|
* // ],
|
|
1193
|
+
* // metadata: "<Metadata>",
|
|
1180
1194
|
* // },
|
|
1181
1195
|
* // finalResponse: {
|
|
1182
1196
|
* // text: "STRING_VALUE",
|
|
1197
|
+
* // metadata: "<Metadata>",
|
|
1183
1198
|
* // },
|
|
1184
1199
|
* // repromptResponse: {
|
|
1185
1200
|
* // text: "STRING_VALUE",
|
|
@@ -1192,6 +1207,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1192
1207
|
* // "STRING_VALUE",
|
|
1193
1208
|
* // ],
|
|
1194
1209
|
* // executionTimeout: true || false,
|
|
1210
|
+
* // metadata: "<Metadata>",
|
|
1195
1211
|
* // },
|
|
1196
1212
|
* // },
|
|
1197
1213
|
* // modelInvocationInput: {
|
|
@@ -1217,17 +1233,14 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
1217
1233
|
* // rawResponse: {
|
|
1218
1234
|
* // content: "STRING_VALUE",
|
|
1219
1235
|
* // },
|
|
1220
|
-
* // metadata:
|
|
1221
|
-
* // usage: {
|
|
1222
|
-
* // inputTokens: Number("int"),
|
|
1223
|
-
* // outputTokens: Number("int"),
|
|
1224
|
-
* // },
|
|
1225
|
-
* // },
|
|
1236
|
+
* // metadata: "<Metadata>",
|
|
1226
1237
|
* // },
|
|
1227
1238
|
* // },
|
|
1228
1239
|
* // failureTrace: { // FailureTrace
|
|
1229
1240
|
* // traceId: "STRING_VALUE",
|
|
1230
1241
|
* // failureReason: "STRING_VALUE",
|
|
1242
|
+
* // failureCode: Number("int"),
|
|
1243
|
+
* // metadata: "<Metadata>",
|
|
1231
1244
|
* // },
|
|
1232
1245
|
* // customOrchestrationTrace: { // CustomOrchestrationTrace
|
|
1233
1246
|
* // traceId: "STRING_VALUE",
|
|
@@ -156,6 +156,58 @@ export interface ActionGroupInvocationInput {
|
|
|
156
156
|
*/
|
|
157
157
|
invocationId?: string | undefined;
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* <p>Contains information of the usage of the foundation model.</p>
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
export interface Usage {
|
|
164
|
+
/**
|
|
165
|
+
* <p>Contains information about the input tokens from the foundation model usage.</p>
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
inputTokens?: number | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* <p>Contains information about the output tokens from the foundation model usage.</p>
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
outputTokens?: number | undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* <p>Provides information about the execution process for different types of invocations, such as model invocation, knowledge base invocation, agent collaborator invocation, guardrail invocation, and code interpreter Invocation.</p>
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export interface Metadata {
|
|
180
|
+
/**
|
|
181
|
+
* <p>In the final response, <code>startTime</code> is the start time of the agent invocation operation.</p>
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
startTime?: Date | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* <p>In the final response, <code>endTime</code> is the end time time of the agent invocation operation.</p>
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
endTime?: Date | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* <p> The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.</p>
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
totalTimeMs?: number | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* <p>The total time it took for the agent to complete execution. This field is only set for the final response.</p>
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
operationTotalTimeMs?: number | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* <p>A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.</p>
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
clientRequestId?: string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* <p>Specific to model invocation and contains details about the usage of a foundation model.</p>
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
usage?: Usage | undefined;
|
|
210
|
+
}
|
|
159
211
|
/**
|
|
160
212
|
* <p>Contains the JSON-formatted string returned by the API invoked by the action group.</p>
|
|
161
213
|
* @public
|
|
@@ -166,6 +218,11 @@ export interface ActionGroupInvocationOutput {
|
|
|
166
218
|
* @public
|
|
167
219
|
*/
|
|
168
220
|
text?: string | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* <p>Contains information about the action group output.</p>
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
metadata?: Metadata | undefined;
|
|
169
226
|
}
|
|
170
227
|
/**
|
|
171
228
|
* @public
|
|
@@ -950,6 +1007,11 @@ export interface AgentCollaboratorInvocationOutput {
|
|
|
950
1007
|
* @public
|
|
951
1008
|
*/
|
|
952
1009
|
output?: AgentCollaboratorOutputPayload | undefined;
|
|
1010
|
+
/**
|
|
1011
|
+
* <p>Contains information about the output from the agent collaborator.</p>
|
|
1012
|
+
* @public
|
|
1013
|
+
*/
|
|
1014
|
+
metadata?: Metadata | undefined;
|
|
953
1015
|
}
|
|
954
1016
|
/**
|
|
955
1017
|
* <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
|
|
@@ -2943,6 +3005,16 @@ export interface FailureTrace {
|
|
|
2943
3005
|
* @public
|
|
2944
3006
|
*/
|
|
2945
3007
|
failureReason?: string | undefined;
|
|
3008
|
+
/**
|
|
3009
|
+
* <p>The failure code for the trace.</p>
|
|
3010
|
+
* @public
|
|
3011
|
+
*/
|
|
3012
|
+
failureCode?: number | undefined;
|
|
3013
|
+
/**
|
|
3014
|
+
* <p>Information about the failure that occurred.</p>
|
|
3015
|
+
* @public
|
|
3016
|
+
*/
|
|
3017
|
+
metadata?: Metadata | undefined;
|
|
2946
3018
|
}
|
|
2947
3019
|
/**
|
|
2948
3020
|
* @public
|
|
@@ -3325,6 +3397,11 @@ export interface GuardrailTrace {
|
|
|
3325
3397
|
* @public
|
|
3326
3398
|
*/
|
|
3327
3399
|
outputAssessments?: GuardrailAssessment[] | undefined;
|
|
3400
|
+
/**
|
|
3401
|
+
* <p>Contains information about the Guardrail output.</p>
|
|
3402
|
+
* @public
|
|
3403
|
+
*/
|
|
3404
|
+
metadata?: Metadata | undefined;
|
|
3328
3405
|
}
|
|
3329
3406
|
/**
|
|
3330
3407
|
* <p>Contains information about the code interpreter being invoked.</p>
|
|
@@ -3513,33 +3590,6 @@ export interface ModelInvocationInput {
|
|
|
3513
3590
|
*/
|
|
3514
3591
|
foundationModel?: string | undefined;
|
|
3515
3592
|
}
|
|
3516
|
-
/**
|
|
3517
|
-
* <p>Contains information of the usage of the foundation model.</p>
|
|
3518
|
-
* @public
|
|
3519
|
-
*/
|
|
3520
|
-
export interface Usage {
|
|
3521
|
-
/**
|
|
3522
|
-
* <p>Contains information about the input tokens from the foundation model usage.</p>
|
|
3523
|
-
* @public
|
|
3524
|
-
*/
|
|
3525
|
-
inputTokens?: number | undefined;
|
|
3526
|
-
/**
|
|
3527
|
-
* <p>Contains information about the output tokens from the foundation model usage.</p>
|
|
3528
|
-
* @public
|
|
3529
|
-
*/
|
|
3530
|
-
outputTokens?: number | undefined;
|
|
3531
|
-
}
|
|
3532
|
-
/**
|
|
3533
|
-
* <p>Provides details of the foundation model.</p>
|
|
3534
|
-
* @public
|
|
3535
|
-
*/
|
|
3536
|
-
export interface Metadata {
|
|
3537
|
-
/**
|
|
3538
|
-
* <p>Contains details of the foundation model usage.</p>
|
|
3539
|
-
* @public
|
|
3540
|
-
*/
|
|
3541
|
-
usage?: Usage | undefined;
|
|
3542
|
-
}
|
|
3543
3593
|
/**
|
|
3544
3594
|
* <p>Contains the raw output from the foundation model.</p>
|
|
3545
3595
|
* @public
|
|
@@ -3660,6 +3710,11 @@ export interface CodeInterpreterInvocationOutput {
|
|
|
3660
3710
|
* @public
|
|
3661
3711
|
*/
|
|
3662
3712
|
executionTimeout?: boolean | undefined;
|
|
3713
|
+
/**
|
|
3714
|
+
* <p>Contains information about the output from the code interpreter.</p>
|
|
3715
|
+
* @public
|
|
3716
|
+
*/
|
|
3717
|
+
metadata?: Metadata | undefined;
|
|
3663
3718
|
}
|
|
3664
3719
|
/**
|
|
3665
3720
|
* <p>Contains details about the response to the user.</p>
|
|
@@ -3671,6 +3726,11 @@ export interface FinalResponse {
|
|
|
3671
3726
|
* @public
|
|
3672
3727
|
*/
|
|
3673
3728
|
text?: string | undefined;
|
|
3729
|
+
/**
|
|
3730
|
+
* <p>Contains information about the invoke agent operation.</p>
|
|
3731
|
+
* @public
|
|
3732
|
+
*/
|
|
3733
|
+
metadata?: Metadata | undefined;
|
|
3674
3734
|
}
|
|
3675
3735
|
/**
|
|
3676
3736
|
* <p>Contains details about the results from looking up the knowledge base.</p>
|
|
@@ -3682,6 +3742,11 @@ export interface KnowledgeBaseLookupOutput {
|
|
|
3682
3742
|
* @public
|
|
3683
3743
|
*/
|
|
3684
3744
|
retrievedReferences?: RetrievedReference[] | undefined;
|
|
3745
|
+
/**
|
|
3746
|
+
* <p>Contains information about the knowledge base output.</p>
|
|
3747
|
+
* @public
|
|
3748
|
+
*/
|
|
3749
|
+
metadata?: Metadata | undefined;
|
|
3685
3750
|
}
|
|
3686
3751
|
/**
|
|
3687
3752
|
* @public
|
|
@@ -7289,6 +7354,14 @@ export interface ListSessionsRequest {
|
|
|
7289
7354
|
* @internal
|
|
7290
7355
|
*/
|
|
7291
7356
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (obj: ActionGroupInvocationInput) => any;
|
|
7357
|
+
/**
|
|
7358
|
+
* @internal
|
|
7359
|
+
*/
|
|
7360
|
+
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
7361
|
+
/**
|
|
7362
|
+
* @internal
|
|
7363
|
+
*/
|
|
7364
|
+
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
7292
7365
|
/**
|
|
7293
7366
|
* @internal
|
|
7294
7367
|
*/
|
|
@@ -7605,14 +7678,6 @@ export declare const InvocationInputFilterSensitiveLog: (obj: InvocationInput) =
|
|
|
7605
7678
|
* @internal
|
|
7606
7679
|
*/
|
|
7607
7680
|
export declare const ModelInvocationInputFilterSensitiveLog: (obj: ModelInvocationInput) => any;
|
|
7608
|
-
/**
|
|
7609
|
-
* @internal
|
|
7610
|
-
*/
|
|
7611
|
-
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
7612
|
-
/**
|
|
7613
|
-
* @internal
|
|
7614
|
-
*/
|
|
7615
|
-
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
7616
7681
|
/**
|
|
7617
7682
|
* @internal
|
|
7618
7683
|
*/
|
|
@@ -7629,6 +7694,10 @@ export declare const ReasoningContentBlockFilterSensitiveLog: (obj: ReasoningCon
|
|
|
7629
7694
|
* @internal
|
|
7630
7695
|
*/
|
|
7631
7696
|
export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (obj: OrchestrationModelInvocationOutput) => any;
|
|
7697
|
+
/**
|
|
7698
|
+
* @internal
|
|
7699
|
+
*/
|
|
7700
|
+
export declare const CodeInterpreterInvocationOutputFilterSensitiveLog: (obj: CodeInterpreterInvocationOutput) => any;
|
|
7632
7701
|
/**
|
|
7633
7702
|
* @internal
|
|
7634
7703
|
*/
|
|
@@ -63,8 +63,21 @@ export interface ActionGroupInvocationInput {
|
|
|
63
63
|
executionType?: ExecutionType | undefined;
|
|
64
64
|
invocationId?: string | undefined;
|
|
65
65
|
}
|
|
66
|
+
export interface Usage {
|
|
67
|
+
inputTokens?: number | undefined;
|
|
68
|
+
outputTokens?: number | undefined;
|
|
69
|
+
}
|
|
70
|
+
export interface Metadata {
|
|
71
|
+
startTime?: Date | undefined;
|
|
72
|
+
endTime?: Date | undefined;
|
|
73
|
+
totalTimeMs?: number | undefined;
|
|
74
|
+
operationTotalTimeMs?: number | undefined;
|
|
75
|
+
clientRequestId?: string | undefined;
|
|
76
|
+
usage?: Usage | undefined;
|
|
77
|
+
}
|
|
66
78
|
export interface ActionGroupInvocationOutput {
|
|
67
79
|
text?: string | undefined;
|
|
80
|
+
metadata?: Metadata | undefined;
|
|
68
81
|
}
|
|
69
82
|
export declare const ActionGroupSignature: {
|
|
70
83
|
readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
|
|
@@ -355,6 +368,7 @@ export interface AgentCollaboratorInvocationOutput {
|
|
|
355
368
|
agentCollaboratorName?: string | undefined;
|
|
356
369
|
agentCollaboratorAliasArn?: string | undefined;
|
|
357
370
|
output?: AgentCollaboratorOutputPayload | undefined;
|
|
371
|
+
metadata?: Metadata | undefined;
|
|
358
372
|
}
|
|
359
373
|
export declare class BadGatewayException extends __BaseException {
|
|
360
374
|
readonly name: "BadGatewayException";
|
|
@@ -1256,6 +1270,8 @@ export interface CustomOrchestrationTrace {
|
|
|
1256
1270
|
export interface FailureTrace {
|
|
1257
1271
|
traceId?: string | undefined;
|
|
1258
1272
|
failureReason?: string | undefined;
|
|
1273
|
+
failureCode?: number | undefined;
|
|
1274
|
+
metadata?: Metadata | undefined;
|
|
1259
1275
|
}
|
|
1260
1276
|
export declare const GuardrailAction: {
|
|
1261
1277
|
readonly INTERVENED: "INTERVENED";
|
|
@@ -1404,6 +1420,7 @@ export interface GuardrailTrace {
|
|
|
1404
1420
|
traceId?: string | undefined;
|
|
1405
1421
|
inputAssessments?: GuardrailAssessment[] | undefined;
|
|
1406
1422
|
outputAssessments?: GuardrailAssessment[] | undefined;
|
|
1423
|
+
metadata?: Metadata | undefined;
|
|
1407
1424
|
}
|
|
1408
1425
|
export interface CodeInterpreterInvocationInput {
|
|
1409
1426
|
code?: string | undefined;
|
|
@@ -1462,13 +1479,6 @@ export interface ModelInvocationInput {
|
|
|
1462
1479
|
parserMode?: CreationMode | undefined;
|
|
1463
1480
|
foundationModel?: string | undefined;
|
|
1464
1481
|
}
|
|
1465
|
-
export interface Usage {
|
|
1466
|
-
inputTokens?: number | undefined;
|
|
1467
|
-
outputTokens?: number | undefined;
|
|
1468
|
-
}
|
|
1469
|
-
export interface Metadata {
|
|
1470
|
-
usage?: Usage | undefined;
|
|
1471
|
-
}
|
|
1472
1482
|
export interface RawResponse {
|
|
1473
1483
|
content?: string | undefined;
|
|
1474
1484
|
}
|
|
@@ -1514,12 +1524,15 @@ export interface CodeInterpreterInvocationOutput {
|
|
|
1514
1524
|
executionError?: string | undefined;
|
|
1515
1525
|
files?: string[] | undefined;
|
|
1516
1526
|
executionTimeout?: boolean | undefined;
|
|
1527
|
+
metadata?: Metadata | undefined;
|
|
1517
1528
|
}
|
|
1518
1529
|
export interface FinalResponse {
|
|
1519
1530
|
text?: string | undefined;
|
|
1531
|
+
metadata?: Metadata | undefined;
|
|
1520
1532
|
}
|
|
1521
1533
|
export interface KnowledgeBaseLookupOutput {
|
|
1522
1534
|
retrievedReferences?: RetrievedReference[] | undefined;
|
|
1535
|
+
metadata?: Metadata | undefined;
|
|
1523
1536
|
}
|
|
1524
1537
|
export declare const Source: {
|
|
1525
1538
|
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
@@ -3357,6 +3370,8 @@ export interface ListSessionsRequest {
|
|
|
3357
3370
|
export declare const ActionGroupInvocationInputFilterSensitiveLog: (
|
|
3358
3371
|
obj: ActionGroupInvocationInput
|
|
3359
3372
|
) => any;
|
|
3373
|
+
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
3374
|
+
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
3360
3375
|
export declare const ActionGroupInvocationOutputFilterSensitiveLog: (
|
|
3361
3376
|
obj: ActionGroupInvocationOutput
|
|
3362
3377
|
) => any;
|
|
@@ -3566,8 +3581,6 @@ export declare const InvocationInputFilterSensitiveLog: (
|
|
|
3566
3581
|
export declare const ModelInvocationInputFilterSensitiveLog: (
|
|
3567
3582
|
obj: ModelInvocationInput
|
|
3568
3583
|
) => any;
|
|
3569
|
-
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
3570
|
-
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
3571
3584
|
export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
|
|
3572
3585
|
export declare const ReasoningTextBlockFilterSensitiveLog: (
|
|
3573
3586
|
obj: ReasoningTextBlock
|
|
@@ -3578,6 +3591,9 @@ export declare const ReasoningContentBlockFilterSensitiveLog: (
|
|
|
3578
3591
|
export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (
|
|
3579
3592
|
obj: OrchestrationModelInvocationOutput
|
|
3580
3593
|
) => any;
|
|
3594
|
+
export declare const CodeInterpreterInvocationOutputFilterSensitiveLog: (
|
|
3595
|
+
obj: CodeInterpreterInvocationOutput
|
|
3596
|
+
) => any;
|
|
3581
3597
|
export declare const FinalResponseFilterSensitiveLog: (
|
|
3582
3598
|
obj: FinalResponse
|
|
3583
3599
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.810.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.810.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.810.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.804.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.804.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.804.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.810.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.808.0",
|
|
30
30
|
"@aws-sdk/types": "3.804.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.808.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.804.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.810.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.2",
|
|
35
|
-
"@smithy/core": "^3.3.
|
|
35
|
+
"@smithy/core": "^3.3.3",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.0.2",
|
|
37
37
|
"@smithy/eventstream-serde-config-resolver": "^4.1.0",
|
|
38
38
|
"@smithy/eventstream-serde-node": "^4.0.2",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"@smithy/hash-node": "^4.0.2",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.0.2",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.0.2",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
44
|
-
"@smithy/middleware-retry": "^4.1.
|
|
45
|
-
"@smithy/middleware-serde": "^4.0.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.1.6",
|
|
44
|
+
"@smithy/middleware-retry": "^4.1.7",
|
|
45
|
+
"@smithy/middleware-serde": "^4.0.5",
|
|
46
46
|
"@smithy/middleware-stack": "^4.0.2",
|
|
47
47
|
"@smithy/node-config-provider": "^4.1.1",
|
|
48
48
|
"@smithy/node-http-handler": "^4.0.4",
|
|
49
49
|
"@smithy/protocol-http": "^5.1.0",
|
|
50
|
-
"@smithy/smithy-client": "^4.2.
|
|
50
|
+
"@smithy/smithy-client": "^4.2.6",
|
|
51
51
|
"@smithy/types": "^4.2.0",
|
|
52
52
|
"@smithy/url-parser": "^4.0.2",
|
|
53
53
|
"@smithy/util-base64": "^4.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.0.14",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.0.14",
|
|
58
58
|
"@smithy/util-endpoints": "^3.0.4",
|
|
59
59
|
"@smithy/util-middleware": "^4.0.2",
|
|
60
60
|
"@smithy/util-retry": "^4.0.3",
|