✓ PASS
vercel-ai 7.0.153
truncation.tool-call-args-stream · openai-chat
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| no-complete-partial-call | MUST | SATISFIED | outcome=returned; error signalled |
| cause-is-truncation | MUST | SATISFIED | finish.value="length" (primary: fullStream.finish.finishReason); truth.finish="length"; error.category="validation"; structured.returned_as_success=false |
What the provider sent
- Finish
- length
- Raw finish
- length
- Text
null
- Tool calls
[ { "arguments": null, "arguments_parsed_ok": false, "arguments_raw": "{\"title\":\"Weekend Pottery Workshop\",\"", "id": "call_DkXNh5JdHW4s54IKfPr4dP1U", "name": "create_event" } ]- Usage
{ "alternatives": {}, "cached_input": null, "input": null, "output": null, "raw": null, "reasoning": null, "total": null }- Stream completed
true
- Error
null
Wire excerpt
status: 200
content-type: text/event-stream; charset=utf-8
body (sse):
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null,"tool_calls":[{"index":0,"id":"call_DkXNh5JdHW4s54IKfPr4dP1U","type":"function","function":{"name":"create_event","arguments":""}}],"refusal":null},"finish_reason":null}],"obfuscation":"AoLyAol"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\""}}]},"finish_reason":null}],"obfuscation":"q3"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"title"}}]},"finish_reason":null}],"obfuscation":""}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\":\""}}]},"finish_reason":null}],"obfuscation":""}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"Weekend"}}]},"finish_reason":null}],"obfuscation":"MHeTX929pznvFG"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Pot"}}]},"finish_reason":null}],"obfuscation":"X"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"tery"}}]},"finish_reason":null}],"obfuscation":"v"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":" Workshop"}}]},"finish_reason":null}],"obfuscation":"eBxdZFJ0AQaC"}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\",\""}}]},"finish_reason":null}],"obfuscation":""}
data: {"id":"chatcmpl-EXmWbuEH1m1F3czcaV6FIXqLd54H7","object":"chat.completion.chunk","created":1791720061,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"length"}],"obfuscation":"ppOIfIY"}
data: [DONE]
What the library reported
- Outcome
- returned
- Finish
{ "raw": "length", "source": "fullStream.finish.finishReason", "surface": "primary", "value": "length" }- Text
- Value
null
- Surface
- absent
- Tool calls
[ { "arguments": null, "arguments_parsed_ok": false, "arguments_raw": "{\"title\":\"Weekend Pottery Workshop\",\"", "id": "call_DkXNh5JdHW4s54IKfPr4dP1U", "name": "create_event" } ]- 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": 16, "completed": true, "used": true }- Error
- Type
- AI_InvalidToolInputError
- Message
- Invalid input for tool create_event: AI_JSONParseError: JSON parsing failed: Text: {"title":"Weekend Pottery Workshop",". Error message: SyntaxError: Unterminated string in JSON at position 37 (line 1 column 38)
- Category
- validation
- Retry after
null
- Stack top
- ai/dist/index.js:4223
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 152.964325,
"error": {
"category": "validation",
"message": "Invalid input for tool create_event: AI_JSONParseError: JSON parsing failed: Text: {\"title\":\"Weekend Pottery Workshop\",\".\nError message: SyntaxError: Unterminated string in JSON at position 37 (line 1 column 38)",
"retry_after": null,
"stack_top": "ai/dist/index.js:4223",
"type": "AI_InvalidToolInputError"
},
"finish": {
"raw": "length",
"source": "fullStream.finish.finishReason",
"surface": "primary",
"value": "length"
},
"format": "wiretruth.observation/v1",
"library": {
"api": "streamText",
"language": "javascript",
"name": "vercel-ai",
"version": "7.0.153"
},
"notes": [],
"outcome": "returned",
"stream": {
"chunks_seen": 16,
"completed": true,
"used": true
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "absent",
"value": null
},
"tool_calls": [
{
"arguments": null,
"arguments_parsed_ok": false,
"arguments_raw": "{\"title\":\"Weekend Pottery Workshop\",\"",
"id": "call_DkXNh5JdHW4s54IKfPr4dP1U",
"name": "create_event"
}
],
"unsupported_reason": null,
"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
recorded openai-chat/truncation.tool-call-args-stream
| Provenance | Value |
|---|---|
| Recorded at | 2026-10-11T12:01:01Z |
| Requested model | gpt-6-luna |
| Returned model | gpt-6-luna |
| CI run | https://github.com/kartsan03/wiretruth/actions/runs/38137650119 |
Reproduce
wiretruth serve openai-chat/truncation.tool-call-args-streamPlain-library snippet from the shim manifest.
createOpenAI({ baseURL: WIRETRUTH_BASE_URL_OPENAI_CHAT, apiKey }).chat(model)Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 7.0.153 | ✓ PASS |
| 7.0.146 | ✓ PASS |
| 7.0.142 | ✓ PASS |