✓ PASS

any-llm 1.40.2

truncation.tool-call-args · openai-responses

Back to results · Scenario

Requirements

IdLevelStatusEvidence
no-complete-partial-callMUSTSATISFIED1 tool calls; no partial args made complete
cause-is-truncationMUSTSATISFIEDfinish.value="length" (primary: incomplete_details.reason); truth.finish="length"; error.category=null; structured.returned_as_success=false

What the provider sent

Finish
length
Raw finish
max_output_tokens
Text
null
Tool calls
[
  {
    "arguments": null,
    "arguments_parsed_ok": false,
    "arguments_raw": "{\"title\":\"Weekend Pottery Workshop\",\"",
    "id": "call_lLsu7YMQmuJzYwIjUOdF8uic",
    "name": "create_event"
  }
]
Usage
{
  "alternatives": {},
  "cached_input": 0,
  "input": 100,
  "output": 20,
  "raw": {
    "input_tokens": 100,
    "input_tokens_details": {
      "cache_write_tokens": 0,
      "cached_tokens": 0
    },
    "output_tokens": 20,
    "output_tokens_details": {
      "reasoning_tokens": 0
    },
    "total_tokens": 120
  },
  "reasoning": 0,
  "total": 120
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
  "id": "resp_04ed45eb9c649570006acbfc064e7087d1bc256e42548bb4ae",
  "object": "response",
  "created_at": 1791753222,
  "status": "incomplete",
  "access_programs": null,
  "background": false,
  "billing": {
    "payer": "developer"
  },
  "completed_at": null,
  "error": null,
  "frequency_penalty": 0.0,
  "incomplete_details": {
    "reason": "max_output_tokens"
  },
  "instructions": null,
  "max_output_tokens": 20,
  "max_tool_calls": null,
  "model": "gpt-6-luna",
  "moderation": null,
  "output": [
    {
      "id": "fc_04ed45eb9c649570006acbfc06e08087d1a25f7b11c8d83e05",
      "type": "function_call",
      "status": "incomplete",
      "arguments": "{\"title\":\"Weekend Pottery Workshop\",\"",
      "call_id": "call_lLsu7YMQmuJzYwIjUOdF8uic",
      "name": "create_event"
    }
  ],
  "parallel_tool_calls": true,
  "presence_penalty": 0.0,
  "previous_response_id": null,
  "prompt_cache_key": null,
  "prompt_cache_retention": "24h",
  "reasoning": {
    "context": "all_turns",
    "effort": "none",
    "mode": "standard",
    "summary": null
  },
  "safety_identifier": null,
  "service_tier": "default",
  "store": true,
  "temperature": 1.0,
  "text": {
    "format": {
      "type": "text"
    },
    "verbosity": "medium"
  },
  "tool_choice": "required",
  "tool_usage": {
    "image_gen": {
      "input_tokens": 0,
      "input_tokens_details": {
        "image_tokens": 0,
        "text_tokens": 0
      },
      "output_tokens": 0,
      "output_tokens_details": {
        "image_tokens": 0,
        "text_tokens": 0
      },
      "total_tokens": 0
    },
    "web_search": {
      "num_requests": 0
    }
  },
  "tools": [
    {
      "type": "function",
      "description": "Create a calendar event.",
      "name": "create_event",
      "output_schema": null,
      "parameters": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "city": {
            "type": "string"
          },
          "attendees": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "title",
          "date",
          "city",
          "attendees"
        ],
        "additionalProperties": false
      },
      "strict": true
    }
  ],
  "top_logprobs": 0,
  "top_p": 0.98,
  "truncation": "disabled",
  "usage": {
    "input_tokens": 100,
    "input_tokens_details": {
      "cache_write_tokens": 0,
      "cached_tokens": 0
    },
    "output_tokens": 20,
    "output_tokens_details": {
      "reasoning_tokens": 0
    },
    "total_tokens": 120
  },
  "user": null,
  "metadata": {}
}

What the library reported

Outcome
returned
Finish
{
  "raw": "max_output_tokens",
  "source": "incomplete_details.reason",
  "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_lLsu7YMQmuJzYwIjUOdF8uic",
    "name": "create_event"
  }
]
Usage
{
  "cached_input": 0,
  "input": 100,
  "output": 20,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 120
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 174.87739212810993,
  "error": null,
  "finish": {
    "raw": "max_output_tokens",
    "source": "incomplete_details.reason",
    "surface": "primary",
    "value": "length"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "any_llm.responses",
    "language": "python",
    "name": "any-llm",
    "version": "1.40.2"
  },
  "notes": [],
  "outcome": "returned",
  "stream": {
    "chunks_seen": null,
    "completed": null,
    "used": false
  },
  "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_lLsu7YMQmuJzYwIjUOdF8uic",
      "name": "create_event"
    }
  ],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 100,
    "output": 20,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 120
  }
}

Fixture

recorded openai-responses/truncation.tool-call-args

ProvenanceValue
Recorded at2026-10-11T21:13:42Z
Requested modelgpt-6-luna
Returned modelgpt-6-luna
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38175457862

Reproduce

wiretruth serve openai-responses/truncation.tool-call-args

Plain-library snippet from the shim manifest.

any_llm.responses(model=model, provider='openai', api_base=WIRETRUTH_BASE_URL_OPENAI_RESPONSES, api_key=WIRETRUTH_API_KEY)

Upstream

No matching upstream report.

History

VersionGrade
1.40.2✓ PASS
1.38.0✓ PASS
1.33.0✓ PASS