✓ PASS
vercel-ai 7.0.153
usage.reasoning-tokens · gemini
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| total-reconciles | MUST | SATISFIED | usage.total=520 (primary); truth.usage.total=520 |
| reasoning-reported | SHOULD | SATISFIED | usage.reasoning=388 (primary); truth.usage.reasoning=388 |
What the provider sent
- Finish
- stop
- Raw finish
- STOP
- Text
- There are **11** pots containing three seedlings. **Check:** * 11 pots with 3 seedlings: $11 \times 3 = 33$ seedlings * 7 pots with 2 seedlings: $7 \times 2 = 14$ seedlings * Total pots: $11 + 7 = 18$ * Total seedlings: $33 + 14 = 47$
- Tool calls
[]
- Usage
{ "alternatives": { "output": { "candidates_only": 94 } }, "cached_input": null, "input": 38, "output": 482, "raw": { "candidatesTokenCount": 94, "promptTokenCount": 38, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 38 } ], "serviceTier": "standard", "thoughtsTokenCount": 388, "totalTokenCount": 520 }, "reasoning": 388, "total": 520 }- Stream completed
null
- Error
null
Wire excerpt
status: 200
content-type: application/json; charset=UTF-8
body (json):
{
"candidates": [
{
"content": {
"parts": [
{
"text": "There are **11** pots containing three seedlings.\n\n**Check:**\n* 11 pots with 3 seedlings: $11 \\times 3 = 33$ seedlings\n* 7 pots with 2 seedlings: $7 \\times 2 = 14$ seedlings\n* Total pots: $11 + 7 = 18$\n* Total seedlings: $33 + 14 = 47$",
"thoughtSignature": "ErQICrEIAWkUfROzqHINc+6GqZic3chQbPkCTEtZFq2MxjgJAdg4cIMVKvYdN/iXWSnd2IQCu7fNEl27x6+hFs7V2qvNNlalzHXTh3Em3OtquaLydVpqgDDnnWiSnYiYj6nS4sDi/5Ubbvr3O2323JD9qfqNZV0R3McF06ga/SPCeA7d0H8Vd0I4lywrbwvDWGhJdjVxPc4vQGO2ugF0QFVQdhdmdOOo9qJVsNlA0+KcN1VswRzLY80rOqrr4lIFVpEnObG7s+NnrOWN76XueI9IqMg7qoM/kqUlv4V/LscRSGPeYJOBngD5Dd+00n+K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s+GBIixqT2FJjLrHdEkO7CL+PqPs1EO9OsZdxG6lXjYG2A="
}
],
"role": "model"
},
"finishReason": "STOP",
"index": 0
}
],
"usageMetadata": {
"promptTokenCount": 38,
"candidatesTokenCount": 94,
"totalTokenCount": 520,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 38
}
],
"thoughtsTokenCount": 388,
"serviceTier": "standard"
},
"modelVersion": "gemini-3.8-flash",
"responseId": "6QTOaqCSENz0jrEP_IzRiAs"
}What the library reported
- Outcome
- returned
- Finish
{ "raw": "STOP", "source": "result.finishReason", "surface": "primary", "value": "stop" }- Text
- Value
- There are **11** pots containing three seedlings. **Check:** * 11 pots with 3 seedlings: $11 \times 3 = 33$ seedlings * 7 pots with 2 seedlings: $7 \times 2 = 14$ seedlings * Total pots: $11 + 7 = 18$ * Total seedlings: $33 + 14 = 47$
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": 0, "input": 38, "output": 482, "reasoning": 388, "surface": { "cached_input": "primary", "input": "primary", "output": "primary", "reasoning": "primary", "total": "primary" }, "total": 520 }- Stream
{ "chunks_seen": null, "completed": null, "used": false }- Error
null
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 108.52438799999999,
"error": null,
"finish": {
"raw": "STOP",
"source": "result.finishReason",
"surface": "primary",
"value": "stop"
},
"format": "wiretruth.observation/v1",
"library": {
"api": "generateText",
"language": "javascript",
"name": "vercel-ai",
"version": "7.0.153"
},
"notes": [],
"outcome": "returned",
"stream": {
"chunks_seen": null,
"completed": null,
"used": false
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "primary",
"value": "There are **11** pots containing three seedlings.\n\n**Check:**\n* 11 pots with 3 seedlings: $11 \\times 3 = 33$ seedlings\n* 7 pots with 2 seedlings: $7 \\times 2 = 14$ seedlings\n* Total pots: $11 + 7 = 18$\n* Total seedlings: $33 + 14 = 47$"
},
"tool_calls": [],
"unsupported_reason": null,
"usage": {
"cached_input": 0,
"input": 38,
"output": 482,
"reasoning": 388,
"surface": {
"cached_input": "primary",
"input": "primary",
"output": "primary",
"reasoning": "primary",
"total": "primary"
},
"total": 520
}
}Fixture
recorded gemini/usage.reasoning-tokens
| Provenance | Value |
|---|---|
| Recorded at | 2026-10-13T10:16:09Z |
| Requested model | gemini-3.8-flash |
| Returned model | gemini-3.8-flash |
| CI run | https://github.com/kartsan03/wiretruth/actions/runs/38381937993 |
Reproduce
wiretruth serve gemini/usage.reasoning-tokensPlain-library snippet from the shim manifest.
createGoogleGenerativeAI({ baseURL: WIRETRUTH_BASE_URL_GEMINI + '/v1beta', apiKey })(model)Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 7.0.153 | ✓ PASS |
| 7.0.146 | ✓ PASS |
| 7.0.142 | ✓ PASS |