Skip to content

Commit 916dae3

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: Added raw model response and usage metrics to PreProcessing and PostProcessing Trace
1 parent 3a5ccda commit 916dae3

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Agents for Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "Added raw model response and usage metrics to PreProcessing and PostProcessing Trace"
6+
}

services/bedrockagentruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -679,18 +679,18 @@
679679
"members":{
680680
"generationConfiguration":{
681681
"shape":"ExternalSourcesGenerationConfiguration",
682-
"documentation":"<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>"
682+
"documentation":"<p>The prompt used with the external source wrapper object with the <code>retrieveAndGenerate</code> function.</p>"
683683
},
684684
"modelArn":{
685685
"shape":"BedrockModelArn",
686-
"documentation":"<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>"
686+
"documentation":"<p>The model Amazon Resource Name (ARN) for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
687687
},
688688
"sources":{
689689
"shape":"ExternalSources",
690-
"documentation":"<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>"
690+
"documentation":"<p>The document for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
691691
}
692692
},
693-
"documentation":"<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>"
693+
"documentation":"<p>The configurations of the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
694694
},
695695
"FailureReasonString":{
696696
"type":"string",
@@ -2280,10 +2280,12 @@
22802280
"PostProcessingModelInvocationOutput":{
22812281
"type":"structure",
22822282
"members":{
2283+
"metadata":{"shape":"Metadata"},
22832284
"parsedResponse":{
22842285
"shape":"PostProcessingParsedResponse",
22852286
"documentation":"<p>Details about the response from the Lambda parsing of the output of the post-processing step.</p>"
22862287
},
2288+
"rawResponse":{"shape":"RawResponse"},
22872289
"traceId":{
22882290
"shape":"TraceId",
22892291
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -2322,10 +2324,12 @@
23222324
"PreProcessingModelInvocationOutput":{
23232325
"type":"structure",
23242326
"members":{
2327+
"metadata":{"shape":"Metadata"},
23252328
"parsedResponse":{
23262329
"shape":"PreProcessingParsedResponse",
23272330
"documentation":"<p>Details about the response from the Lambda parsing of the output of the pre-processing step.</p>"
23282331
},
2332+
"rawResponse":{"shape":"RawResponse"},
23292333
"traceId":{
23302334
"shape":"TraceId",
23312335
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -2760,15 +2764,15 @@
27602764
"members":{
27612765
"externalSourcesConfiguration":{
27622766
"shape":"ExternalSourcesRetrieveAndGenerateConfiguration",
2763-
"documentation":"<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>"
2767+
"documentation":"<p>The configuration for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>"
27642768
},
27652769
"knowledgeBaseConfiguration":{
27662770
"shape":"KnowledgeBaseRetrieveAndGenerateConfiguration",
2767-
"documentation":"<p>Contains details about the resource being queried.</p>"
2771+
"documentation":"<p>Contains details about the knowledge base for retrieving information and generating responses.</p>"
27682772
},
27692773
"type":{
27702774
"shape":"RetrieveAndGenerateType",
2771-
"documentation":"<p>The type of resource that is queried by the request.</p>"
2775+
"documentation":"<p>The type of resource that contains your data for retrieving information and generating responses.</p> <p>If you choose ot use <code>EXTERNAL_SOURCES</code>, then currently only Claude 3 Sonnet models for knowledge bases are supported.</p>"
27722776
}
27732777
},
27742778
"documentation":"<p>Contains details about the resource being queried.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax\">RetrieveAndGenerate request</a> – in the <code>retrieveAndGenerateConfiguration</code> field</p> </li> </ul>"

0 commit comments

Comments
 (0)