{
  "test_name": "Local legacy-Completions to Responses parser fixtures",
  "executed_at_utc": "2026-10-29T22:25:24.502228+00:00",
  "fixture_origin": "Handwritten synthetic format examples; not live API responses",
  "network_requests": 0,
  "api_calls": 0,
  "spend_usd": 0,
  "result": "Format handling assertions passed; complete API migration untested",
  "legacy_parser": "Passed legacy fixture; failed all three Responses fixtures as expected",
  "typed_parser": "Handled all three Responses fixture states as expected",
  "partial_result": "Tools-only fixture still needs application tool execution and continuation",
  "limitations": [
    "Does not establish model availability, account access, latency, cost or output quality.",
    "No real provider export, import, model migration, tool execution or data recovery was tested.",
    "No streaming, refusals, errors, multimodal content or SDK helpers were exercised.",
    "Illustrative parser accepts the fixture shapes only; do not treat it as a complete client."
  ],
  "cases": [
    {
      "fixture": "legacy_completion",
      "input": {
        "choices": [
          {
            "text": "Fixture answer."
          }
        ]
      },
      "legacy_parser": {
        "result": "Fixture answer.",
        "error": null
      },
      "typed_parser": null
    },
    {
      "fixture": "responses_reasoning_then_text",
      "input": {
        "status": "completed",
        "output": [
          {
            "type": "reasoning",
            "summary": []
          },
          {
            "type": "message",
            "content": [
              {
                "type": "output_text",
                "text": "Fixture answer."
              }
            ]
          }
        ]
      },
      "legacy_parser": {
        "result": null,
        "error": "KeyError"
      },
      "typed_parser": {
        "text": "Fixture answer.",
        "state": "completed"
      }
    },
    {
      "fixture": "responses_incomplete",
      "input": {
        "status": "incomplete",
        "incomplete_details": {
          "reason": "max_output_tokens"
        },
        "output": [
          {
            "type": "message",
            "content": [
              {
                "type": "output_text",
                "text": "Partial fixture"
              }
            ]
          }
        ]
      },
      "legacy_parser": {
        "result": null,
        "error": "KeyError"
      },
      "typed_parser": {
        "text": "Partial fixture",
        "state": "incomplete"
      }
    },
    {
      "fixture": "responses_tools_only",
      "input": {
        "status": "completed",
        "output": [
          {
            "type": "function_call",
            "call_id": "fixture_call",
            "name": "lookup_fixture",
            "arguments": "{\"id\":\"example\"}"
          }
        ]
      },
      "legacy_parser": {
        "result": null,
        "error": "KeyError"
      },
      "typed_parser": {
        "text": "",
        "state": "tool_handling_required"
      }
    }
  ],
  "documentation": "https://developers.openai.com/api/docs/guides/migrate-to-responses"
}
