✓ PASS

tanstack-ai 1.4.0

tools.parallel-calls-stream · openai-chat

Back to results · Scenario

Requirements

IdLevelStatusEvidence
calls-reportedMUSTSATISFIEDtool_calls[0] id="call_MFkqX3JVUVFFqlvt9y4xbc9L", name="get_weather", args={"city": "São Paulo"}, parsed=true; truth id="call_MFkqX3JVUVFFqlvt9y4xbc9L", name="get_weather", args={"city": "São Paulo"}, parsed=true; tool_calls[1] id="call_4VWEeIK4DzOndQbCBnHA4YSy", name="get_weather", args={"city": "Zürich"}, parsed=true; truth id="call_4VWEeIK4DzOndQbCBnHA4YSy", name="get_weather", args={"city": "Zürich"}, parsed=true

What the provider sent

Finish
tool_calls
Raw finish
tool_calls
Text
null
Tool calls
[
  {
    "arguments": {
      "city": "São Paulo"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"São Paulo\"}",
    "id": "call_MFkqX3JVUVFFqlvt9y4xbc9L",
    "name": "get_weather"
  },
  {
    "arguments": {
      "city": "Zürich"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"Zürich\"}",
    "id": "call_4VWEeIK4DzOndQbCBnHA4YSy",
    "name": "get_weather"
  }
]
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-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":null},"finish_reason":null}],"obfuscation":"cooKSOZ9B4"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"id":"call_MFkqX3JVUVFFqlvt9y4xbc9L","type":"function","function":{"name":"get_weather","arguments":""}}]},"finish_reason":null}],"obfuscation":"FeUKaff3n"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"{\"ci"}}]},"finish_reason":null}],"obfuscation":""}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"ty\": "}}]},"finish_reason":null}],"obfuscation":"BgjwVci3ZUaO3u7"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"São P"}}]},"finish_reason":null}],"obfuscation":"95wYCkwPlQVc0Q"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"aulo"}}]},"finish_reason":null}],"obfuscation":"1"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"function":{"arguments":"\"}"}}]},"finish_reason":null}],"obfuscation":"g7"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"id":"call_4VWEeIK4DzOndQbCBnHA4YSy","type":"function","function":{"name":"get_weather","arguments":""}}]},"finish_reason":null}],"obfuscation":"6YrL8Fchm"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"{\"ci"}}]},"finish_reason":null}],"obfuscation":""}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"ty\": "}}]},"finish_reason":null}],"obfuscation":"XIB3rpI1NnUkSyN"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"\"Züric"}}]},"finish_reason":null}],"obfuscation":"xnO8Xlmqom9NxG"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"tool_calls":[{"index":1,"function":{"arguments":"h\"}"}}]},"finish_reason":null}],"obfuscation":"7"}


data: {"id":"chatcmpl-EXmWUIVkhF062Qjo0JkNsasrVFuUv","object":"chat.completion.chunk","created":1791720054,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"tool_calls"}],"obfuscation":"LYZ"}


data: [DONE]

What the library reported

Outcome
returned
Finish
{
  "raw": null,
  "source": "RUN_FINISHED.metadata.tanstack.finishReason",
  "surface": "primary",
  "value": "tool_calls"
}
Text
Value
null
Surface
absent
Tool calls
[
  {
    "arguments": {
      "city": "São Paulo"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"São Paulo\"}",
    "id": "call_MFkqX3JVUVFFqlvt9y4xbc9L",
    "name": "get_weather"
  },
  {
    "arguments": {
      "city": "Zürich"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"Zürich\"}",
    "id": "call_4VWEeIK4DzOndQbCBnHA4YSy",
    "name": "get_weather"
  }
]
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
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 199.35189799999995,
  "error": null,
  "finish": {
    "raw": null,
    "source": "RUN_FINISHED.metadata.tanstack.finishReason",
    "surface": "primary",
    "value": "tool_calls"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "chat",
    "language": "javascript",
    "name": "tanstack-ai",
    "version": "1.4.0"
  },
  "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": {
        "city": "São Paulo"
      },
      "arguments_parsed_ok": true,
      "arguments_raw": "{\"city\": \"São Paulo\"}",
      "id": "call_MFkqX3JVUVFFqlvt9y4xbc9L",
      "name": "get_weather"
    },
    {
      "arguments": {
        "city": "Zürich"
      },
      "arguments_parsed_ok": true,
      "arguments_raw": "{\"city\": \"Zürich\"}",
      "id": "call_4VWEeIK4DzOndQbCBnHA4YSy",
      "name": "get_weather"
    }
  ],
  "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/tools.parallel-calls-stream

ProvenanceValue
Recorded at2026-10-11T12:00:53Z
Requested modelgpt-6-luna
Returned modelgpt-6-luna
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38137650119

Reproduce

wiretruth serve openai-chat/tools.parallel-calls-stream

Plain-library snippet from the shim manifest.

createOpenaiChatCompletions(model, apiKey, { baseURL: WIRETRUTH_BASE_URL_OPENAI_CHAT }); POST /v1/chat/completions. https://tanstack.com/ai/latest/docs/adapters/openai#chat-completions-api

Upstream

No matching upstream report.

History

VersionGrade
1.4.0✓ PASS
1.0.0✓ PASS
0.71.0✓ PASS