– UNSUPPORTED
tanstack-ai 1.4.0
truncation.structured-output · anthropic
Requirements
| Id | Level | Status | Evidence |
|---|
Notes
- On these models chat({ outputSchema }) requests a streamed response, even without tools, so it never sends the non-streamed request this fixture replays. (https://tanstack.com/ai/latest/docs/api/ai#usage-examples)
What the provider sent
- Finish
- length
- Raw finish
- max_tokens
- Text
- {"islands":[{"name":"Κρήτη","sea":
- Tool calls
[]
- Usage
{ "alternatives": {}, "cached_input": null, "input": 25, "output": 24, "raw": { "input_tokens": 25, "output_tokens": 24, "output_tokens_details": { "thinking_tokens": 4 } }, "reasoning": 4, "total": 49 }- Stream completed
null
- Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
"id": "msg_01Aq9w938a90dw8q",
"type": "message",
"role": "assistant",
"content": [
{
"type": "thinking",
"thinking": "",
"signature": "EqQBCgIYAhIM1gbcDa9GJwZA2b3hGgxBdjrkzLoky3dl1pkiMOYds..."
},
{
"type": "text",
"text": "{\"islands\":[{\"name\":\"Κρήτη\",\"sea\":"
}
],
"model": "claude-sonnet-5-5",
"stop_reason": "max_tokens",
"stop_sequence": null,
"stop_details": null,
"usage": {
"input_tokens": 25,
"output_tokens": 24,
"output_tokens_details": {
"thinking_tokens": 4
}
}
}What the library reported
- Outcome
- unsupported
- Finish
{ "raw": null, "source": null, "surface": "absent", "value": null }- Text
- Value
null
- Surface
- absent
- Tool calls
[]
- Usage
{ "cached_input": null, "input": null, "output": null, "reasoning": null, "surface": { "cached_input": "absent", "input": "absent", "output": "absent", "reasoning": "absent", "total": "absent" }, "total": null }- Stream
{ "chunks_seen": null, "completed": null, "used": false }- Error
null
- Unsupported reason
- On these models chat({ outputSchema }) requests a streamed response, even without tools, so it never sends the non-streamed request this fixture replays. https://tanstack.com/ai/latest/docs/api/ai#usage-examples
Full observation JSON
{
"elapsed_ms": 0.8936219999999366,
"error": null,
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "chat",
"language": "javascript",
"name": "tanstack-ai",
"version": "1.4.0"
},
"notes": [],
"outcome": "unsupported",
"stream": {
"chunks_seen": null,
"completed": null,
"used": false
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "absent",
"value": null
},
"tool_calls": [],
"unsupported_reason": "On these models chat({ outputSchema }) requests a streamed response, even without tools, so it never sends the non-streamed request this fixture replays. https://tanstack.com/ai/latest/docs/api/ai#usage-examples",
"usage": {
"cached_input": null,
"input": null,
"output": null,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "absent",
"output": "absent",
"reasoning": "absent",
"total": "absent"
},
"total": null
}
}Fixture
documented anthropic/truncation.structured-output
| Provenance | Value |
|---|---|
| Source | https://platform.claude.com/docs/en/build-with-claude/structured-outputs#invalid-outputs |
| Notes | Documented shapes, not a recording. Message envelope and stop fields follow handling-stop-reasons; content blocks follow thinking/streaming and handle-tool-calls. Model changed to claude-sonnet-5-5; IDs and scenario text are filled in. Token counts are illustrative, filled in to include thinking within the requested output limit, not measured. The native request uses output_config.format. ASSUMED partial Greek JSON prefix and thinking block at max_tokens; the docs describe incomplete structured output but do not print this exact envelope. The output_tokens_details.thinking_tokens breakdown follows thinking-steering.md (https://platform.claude.com/docs/en/build-with-claude/thinking-steering-and-cost#pricing); the thinking count of 4 is filled in, not measured. |
Reproduce
wiretruth serve anthropic/truncation.structured-outputPlain-library snippet from the shim manifest.
createAnthropicChat(model, apiKey, { baseURL: WIRETRUTH_BASE_URL_ANTHROPIC }); its fetch client appends /v1/messages?beta=true.Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.4.0 | – UNSUPPORTED |
| 1.0.0 | – UNSUPPORTED |
| 0.71.0 | – UNSUPPORTED |