openai-core 0.1.1

Rust SDK for OpenAI-compatible ecosystem
Documentation
{
  "id": "resp_spec_1",
  "object": "response",
  "created_at": 1,
  "model": "gpt-5.4",
  "status": "completed",
  "usage": {
    "input_tokens": 7,
    "input_tokens_details": {
      "cached_tokens": 2
    },
    "output_tokens": 4,
    "output_tokens_details": {
      "reasoning_tokens": 1
    },
    "total_tokens": 11
  },
  "output": [
    {
      "id": "fc_spec_1",
      "type": "function_call",
      "name": "lookup_city",
      "arguments": "{\"city\":\"Shanghai\"}"
    },
    {
      "id": "msg_spec_1",
      "type": "message",
      "role": "assistant",
      "status": "completed",
      "content": [
        {
          "type": "output_text",
          "text": "fixture response",
          "annotations": [
            {
              "type": "url_citation",
              "start_index": 0,
              "end_index": 7,
              "title": "Fixture",
              "url": "https://example.com/fixture"
            }
          ],
          "logprobs": [
            {
              "token": "fixture",
              "bytes": [102, 105, 120, 116, 117, 114, 101],
              "logprob": -0.1,
              "top_logprobs": [
                {
                  "token": "fixture",
                  "bytes": [102, 105, 120, 116, 117, 114, 101],
                  "logprob": -0.1
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}