Skip to content

Commit b381646

Browse files
Amazon Q Connect: Added reasoning details, statusDescription, and timeToFirstTokenMs fields to the ListSpans response in Amazon Q in Connect to provide visibility into model thinking, error diagnostics, and inference latency metrics.
1 parent e217412 commit b381646

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Q Connect",
4+
"contributor": "",
5+
"description": "Added reasoning details, statusDescription, and timeToFirstTokenMs fields to the ListSpans response in Amazon Q in Connect to provide visibility into model thinking, error diagnostics, and inference latency metrics."
6+
}

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

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10886,6 +10886,10 @@
1088610886
"shape":"SpanStatus",
1088710887
"documentation":"<p>Span completion status</p>"
1088810888
},
10889+
"statusDescription":{
10890+
"shape":"SpanStatusDescriptionString",
10891+
"documentation":"<p>Human-readable error description when status is ERROR or TIMEOUT</p>"
10892+
},
1088910893
"requestId":{
1089010894
"shape":"Uuid",
1089110895
"documentation":"<p>The service request ID that initiated the operation</p>"
@@ -11039,6 +11043,10 @@
1103911043
"promptVersion":{
1104011044
"shape":"Integer",
1104111045
"documentation":"<p>AI prompt version number</p>"
11046+
},
11047+
"timeToFirstTokenMs":{
11048+
"shape":"Integer",
11049+
"documentation":"<p>Time to first token in milliseconds, measured from when Amazon Bedrock was invoked to when the first token was returned</p>"
1104211050
}
1104311051
},
1104411052
"documentation":"<p>Contextual attributes capturing operation details, LLM configuration, usage metrics, and conversation data</p>"
@@ -11116,7 +11124,7 @@
1111611124
},
1111711125
"values":{
1111811126
"shape":"SpanMessageValueList",
11119-
"documentation":"<p>Message content values (text, tool use, tool result)</p>"
11127+
"documentation":"<p>Message content values (text, tool use, tool result, reasoning)</p>"
1112011128
}
1112111129
},
1112211130
"documentation":"<p>A message in the conversation history with participant role and content values</p>"
@@ -11141,9 +11149,10 @@
1114111149
"toolResult":{
1114211150
"shape":"SpanToolResultValue",
1114311151
"documentation":"<p>Tool result message content</p>"
11144-
}
11152+
},
11153+
"reasoning":{"shape":"SpanReasoningValue"}
1114511154
},
11146-
"documentation":"<p>Message content value - can be text, tool invocation, or tool result</p>",
11155+
"documentation":"<p>Message content value - can be text, tool invocation, tool result, or reasoning</p>",
1114711156
"union":true
1114811157
},
1114911158
"SpanMessageValueList":{
@@ -11157,6 +11166,17 @@
1115711166
"max":256,
1115811167
"min":1
1115911168
},
11169+
"SpanReasoningValue":{
11170+
"type":"structure",
11171+
"required":["value"],
11172+
"members":{
11173+
"value":{
11174+
"shape":"NonEmptySensitiveString",
11175+
"documentation":"<p>The reasoning text content</p>"
11176+
}
11177+
},
11178+
"documentation":"<p>Model reasoning and it's internal decision making process</p>"
11179+
},
1116011180
"SpanStatus":{
1116111181
"type":"string",
1116211182
"enum":[
@@ -11165,6 +11185,11 @@
1116511185
"TIMEOUT"
1116611186
]
1116711187
},
11188+
"SpanStatusDescriptionString":{
11189+
"type":"string",
11190+
"max":1024,
11191+
"min":1
11192+
},
1116811193
"SpanTextValue":{
1116911194
"type":"structure",
1117011195
"required":["value"],

0 commit comments

Comments
 (0)