Skip to content

Commit 9374b85

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: Changes for enhanced metadata in trace
1 parent d1f7928 commit 9374b85

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
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": "Changes for enhanced metadata in trace"
6+
}

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

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,10 @@
613613
"ActionGroupInvocationOutput":{
614614
"type":"structure",
615615
"members":{
616+
"metadata":{
617+
"shape":"Metadata",
618+
"documentation":"<p>Contains information about the action group output.</p>"
619+
},
616620
"text":{
617621
"shape":"ActionGroupOutputString",
618622
"documentation":"<p>The JSON-formatted string returned by the API invoked by the action group.</p>"
@@ -783,6 +787,10 @@
783787
"shape":"String",
784788
"documentation":"<p>The output's agent collaborator name.</p>"
785789
},
790+
"metadata":{
791+
"shape":"Metadata",
792+
"documentation":"<p>Contains information about the output from the agent collaborator.</p>"
793+
},
786794
"output":{
787795
"shape":"AgentCollaboratorOutputPayload",
788796
"documentation":"<p>The output's output.</p>"
@@ -1215,6 +1223,10 @@
12151223
"files":{
12161224
"shape":"Files",
12171225
"documentation":"<p>Contains output files, if generated by code execution.</p>"
1226+
},
1227+
"metadata":{
1228+
"shape":"Metadata",
1229+
"documentation":"<p>Contains information about the output from the code interpreter.</p>"
12181230
}
12191231
},
12201232
"documentation":"<p>Contains the JSON-formatted string returned by the API invoked by the code interpreter.</p>"
@@ -1735,10 +1747,18 @@
17351747
"FailureTrace":{
17361748
"type":"structure",
17371749
"members":{
1750+
"failureCode":{
1751+
"shape":"Integer",
1752+
"documentation":"<p>The failure code for the trace.</p>"
1753+
},
17381754
"failureReason":{
17391755
"shape":"FailureReasonString",
17401756
"documentation":"<p>The reason the interaction failed.</p>"
17411757
},
1758+
"metadata":{
1759+
"shape":"Metadata",
1760+
"documentation":"<p>Information about the failure that occurred.</p>"
1761+
},
17421762
"traceId":{
17431763
"shape":"TraceId",
17441764
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -1856,6 +1876,10 @@
18561876
"FinalResponse":{
18571877
"type":"structure",
18581878
"members":{
1879+
"metadata":{
1880+
"shape":"Metadata",
1881+
"documentation":"<p>Contains information about the invoke agent operation.</p>"
1882+
},
18591883
"text":{
18601884
"shape":"FinalResponseString",
18611885
"documentation":"<p>The text in the response to the user.</p>"
@@ -3059,6 +3083,10 @@
30593083
"shape":"GuardrailAssessmentList",
30603084
"documentation":"<p>The details of the input assessments used in the Guardrail Trace.</p>"
30613085
},
3086+
"metadata":{
3087+
"shape":"Metadata",
3088+
"documentation":"<p>Contains information about the Guardrail output.</p>"
3089+
},
30623090
"outputAssessments":{
30633091
"shape":"GuardrailAssessmentList",
30643092
"documentation":"<p>The details of the output assessments used in the Guardrail Trace.</p>"
@@ -4035,6 +4063,10 @@
40354063
"KnowledgeBaseLookupOutput":{
40364064
"type":"structure",
40374065
"members":{
4066+
"metadata":{
4067+
"shape":"Metadata",
4068+
"documentation":"<p>Contains information about the knowledge base output.</p>"
4069+
},
40384070
"retrievedReferences":{
40394071
"shape":"RetrievedReferences",
40404072
"documentation":"<p>Contains metadata about the sources cited for the generated response.</p>"
@@ -4304,6 +4336,10 @@
43044336
}
43054337
}
43064338
},
4339+
"Long":{
4340+
"type":"long",
4341+
"box":true
4342+
},
43074343
"MaxResults":{
43084344
"type":"integer",
43094345
"documentation":"<p>Max Results.</p>",
@@ -4399,12 +4435,32 @@
43994435
"Metadata":{
44004436
"type":"structure",
44014437
"members":{
4438+
"clientRequestId":{
4439+
"shape":"String",
4440+
"documentation":"<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>"
4441+
},
4442+
"endTime":{
4443+
"shape":"SyntheticTimestamp_date_time",
4444+
"documentation":"<p>In the final response, <code>endTime</code> is the end time time of the agent invocation operation.</p>"
4445+
},
4446+
"operationTotalTimeMs":{
4447+
"shape":"Long",
4448+
"documentation":"<p>The total time it took for the agent to complete execution. This field is only set for the final response.</p>"
4449+
},
4450+
"startTime":{
4451+
"shape":"SyntheticTimestamp_date_time",
4452+
"documentation":"<p>In the final response, <code>startTime</code> is the start time of the agent invocation operation.</p>"
4453+
},
4454+
"totalTimeMs":{
4455+
"shape":"Long",
4456+
"documentation":"<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>"
4457+
},
44024458
"usage":{
44034459
"shape":"Usage",
4404-
"documentation":"<p>Contains details of the foundation model usage.</p>"
4460+
"documentation":"<p>Specific to model invocation and contains details about the usage of a foundation model.</p>"
44054461
}
44064462
},
4407-
"documentation":"<p>Provides details of the foundation model.</p>",
4463+
"documentation":"<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>",
44084464
"sensitive":true
44094465
},
44104466
"MetadataAttributeSchema":{

0 commit comments

Comments
 (0)