{
 "_generated_by": "tmp/openai-core/run_examples.py",
 "generated_at": "2026-09-18",
 "examples": [
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/image_input.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.7s",
   "stdout_tail": "OK 13 prompt tokens incl. image"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/legacy_completions.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.6s",
   "stdout_tail": "text_completion gpt-3.5-turbo-instruct:20230824-v2 '\\n\\nOK.' stop {'completion_tokens': 3, 'prompt_tokens': 3, 'total_tokens': 6, 'completion_tokens_details': None, 'prompt_tokens_details': None}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/legacy_completions.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.5s",
   "stdout_tail": "text_completion gpt-3.5-turbo-instruct:20230824-v2 ' I resign.\"\\n\\n\\nI' length {'prompt_tokens': 3, 'completion_tokens': 5, 'total_tokens': 8}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/minimal.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.1s",
   "stdout_tail": "n_tokens': 1, 'prompt_tokens': 11, 'total_tokens': 12, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': None, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None}}\nreasoning model via chat: OK. 0 reasoning tokens"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/minimal.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.7s",
   "stdout_tail": "chat.completion OK stop {'prompt_tokens': 11, 'completion_tokens': 1, 'total_tokens': 12, 'prompt_tokens_details': {'cached_tokens': 0, 'audio_tokens': 0}, 'completion_tokens_details': {'reasoning_tokens': 0, 'audio_tokens': 0, 'accepted_prediction_tokens': 0, 'rejected_prediction_tokens': 0}}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/minimal.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.6s",
   "stdout_tail": "OK stop {\n  prompt_tokens: 11,\n  completion_tokens: 1,\n  total_tokens: 12,\n  prompt_tokens_details: { cached_tokens: 0, audio_tokens: 0 },\n  completion_tokens_details: {\n    reasoning_tokens: 0,\n    audio_tokens: 0,\n    accepted_prediction_tokens: 0,\n    rejected_prediction_tokens: 0\n  }\n}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/stored_retrieve_delete.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 6.7s",
   "stdout_tail": "retrieved: True metadata: {'atlas': 'example'}\nstored request messages: [('chatcmpl-EPehZ5lsxll5Ef7sVRpCa9ZBblWnm-0', 'user', 'Reply with OK.')]\nlist by metadata: ['chatcmpl-EPehZ5lsxll5Ef7sVRpCa9ZBblWnm']\nupdated metadata: {'atlas': 'example', 'reviewed': 'yes'}\nchat.completion.deleted True"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/stored_retrieve_delete.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 2.6s",
   "stdout_tail": "retrieved: true { atlas: 'example' }\nchat.completion.deleted true"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/streaming.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.7s",
   "stdout_tail": "'OK' stop {'completion_tokens': 1, 'prompt_tokens': 11, 'total_tokens': 12, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': None, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None}}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/streaming.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.6s",
   "stdout_tail": ":1789783375,\"model\":\"gpt-4.1-nano-2025-04-14\",\"service_tier\":\"def\ndata: {\"id\":\"chatcmpl-EPehjA2k7QDB1DQIt2ubDWo5ASU3V\",\"object\":\"chat.completion.chunk\",\"created\":1789783375,\"model\":\"gpt-4.1-nano-2025-04-14\",\"service_tier\":\"def\ndata: {\"id\":\"chatcmpl-EPehjA2k7QDB1DQIt2ubDWo5ASU3V\",\"object\":\"chat.completion.chunk\",\"created\":1789783375,\"model\":\"gpt-4.1-nano-2025-04-14\",\"service_tier\":\"def\ndata: [DONE]"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/streaming.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.9s",
   "stdout_tail": "\"OK\" {\n  prompt_tokens: 11,\n  completion_tokens: 1,\n  total_tokens: 12,\n  prompt_tokens_details: { cached_tokens: 0, audio_tokens: 0 },\n  completion_tokens_details: {\n    reasoning_tokens: 0,\n    audio_tokens: 0,\n    accepted_prediction_tokens: 0,\n    rejected_prediction_tokens: 0\n  }\n}"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/structured_output.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.2s",
   "stdout_tail": "{'answer': 'OK.'}\nanswer='OK'"
  },
  {
   "provider": "openai",
   "area": "chat",
   "file": "examples/openai/chat/structured_output.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.5s",
   "stdout_tail": "{ answer: 'OK.' }"
  },
  {
   "provider": "openai",
   "area": "conversations",
   "file": "examples/openai/conversations/lifecycle.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 4.2s",
   "stdout_tail": "conv_6aaded52bcc08195b4731fed21f15f720cbdca3407cc4636 conversation {'atlas': 'example'}\nresponse bound to: conv_6aaded52bcc08195b4731fed21f15f720cbdca3407cc4636 | OK\nitems: [('message', 'user'), ('message', 'user'), ('message', 'assistant')]\nitem: message True\nitem delete returns: conversation\nconversation.deleted True"
  },
  {
   "provider": "openai",
   "area": "conversations",
   "file": "examples/openai/conversations/lifecycle.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 3.8s",
   "stdout_tail": "conversation: conv_6aadeeaf21288193911dc71e97e505a5016fa830b28220ed\n[('message', 'user', 'completed')]\ncompleted {'id': 'conv_6aadeeaf21288193911dc71e97e505a5016fa830b28220ed'}\n[('message', 'user'), ('message', 'user'), ('message', 'assistant')]\n{'atlas': 'example', 'done': 'yes'}\nconversation.deleted True"
  },
  {
   "provider": "openai",
   "area": "conversations",
   "file": "examples/openai/conversations/lifecycle.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 4.1s",
   "stdout_tail": "true OK\n[\n  [ 'message', 'user' ],\n  [ 'message', 'user' ],\n  [ 'message', 'assistant' ]\n]\nconversation.deleted true"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/background.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 9.4s",
   "stdout_tail": "initial status: queued\nfinal: completed 'OK'\ncancelled status: cancelled\nresumed after seq 2: ['response.output_item.added', 'response.content_part.added', 'response.output_text.delta', 'response.output_text.done', 'response.content_part.done', 'response.output_item.done', 'response.completed']"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/background.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 8.4s",
   "stdout_tail": "initial status: queued\npoll 1: in_progress\npoll 2: completed\ncancel right after create: HTTP 200 status=cancelled\ncancel again: HTTP 200 status=cancelled"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/background.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 3.9s",
   "stdout_tail": "initial: queued\nfinal: completed \"OK.\"\ncancel: cancelled | cancel again: cancelled"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/compaction.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 4.9s",
   "stdout_tail": "response.compaction ['message', 'message', 'compaction'] {'input_tokens': 119, 'input_tokens_details': {'cache_write_tokens': 0, 'cached_tokens': 0}, 'output_tokens': 127, 'output_tokens_details': {'reasoning_tokens': 0}, 'total_tokens': 246}\nfollow-up: completed 'OK' input_tokens: 231\ncontext_management accepted: completed ['message']"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/compaction.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.9s",
   "stdout_tail": "response.compaction ['message', 'message', 'compaction'] 119 -> 204 tokens"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/compaction.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 2.2s",
   "stdout_tail": "response.compaction [ 'message', 'message', 'compaction' ] {\n  input_tokens: 119,\n  input_tokens_details: { cache_write_tokens: 0, cached_tokens: 0 },\n  output_tokens: 78,\n  output_tokens_details: { reasoning_tokens: 0 },\n  total_tokens: 197\n}\nfollow-up: completed \"OK\""
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/image_input.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.7s",
   "stdout_tail": "completed OK 15 input tokens"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/image_input.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.1s",
   "stdout_tail": "completed 15 input tokens incl. image"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/image_input.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.5s",
   "stdout_tail": "completed OK 15"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/minimal.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.1s",
   "stdout_tail": "resp_02a8d5b8212a306a006aaded28c72487d2814336e8c8ab68e8 completed\nOK\n{'input_tokens': 10, 'input_tokens_details': {'cache_write_tokens': 0, 'cached_tokens': 0}, 'output_tokens': 5, 'output_tokens_details': {'reasoning_tokens': 0}, 'total_tokens': 15}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/minimal.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.9s",
   "stdout_tail": "HTTP 200\ncompleted ['OK.'] {'input_tokens': 10, 'input_tokens_details': {'cache_write_tokens': 0, 'cached_tokens': 0}, 'output_tokens': 6, 'output_tokens_details': {'reasoning_tokens': 0}, 'total_tokens': 16}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/minimal.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.8s",
   "stdout_tail": "resp_091c6e89f8cd1927006aaded2a7f5087d2ab206f5edfffcd3e completed\nOK\n{\n  input_tokens: 10,\n  input_tokens_details: { cache_write_tokens: 0, cached_tokens: 0 },\n  output_tokens: 5,\n  output_tokens_details: { reasoning_tokens: 0 },\n  total_tokens: 15\n}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/previous_response_id.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 3.8s",
   "stdout_tail": "turn2 previous_response_id: resp_0dff309bfcc10f03006aaded2b627c87d2a46cad82ba9a666e | input_tokens: 26\nrendered context of turn 2: [('message', 'user'), ('message', 'assistant'), ('message', 'user')]\nstateless turn 2: OK"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/previous_response_id.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 2.3s",
   "stdout_tail": "resp_0680ad9f2db8532c006aadeea626fc87d2a5a70682e5f578e1 26 input tokens (prior turn re-billed)\ninput_items: [('message', 'user'), ('message', 'assistant'), ('message', 'user')]"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/previous_response_id.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 2.3s",
   "stdout_tail": "true OK 26\nretrieved status: completed"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/reasoning_summary.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 2.3s",
   "stdout_tail": "detailed'}\nreasoning_tokens: 56 / output_tokens: 63\nreasoning item id: rs_060331383b1389ca016aaded33993c87d285ac9c3204c14fc6 | encrypted_content present: True\nsummary: **Counting letters in a word**\n\nI need to count the letter 'r' in the word \"strawberry.\" Okay, so I break it down: s t r a w b e r r y. I see that 'r' appears in the 3rd, 8th, and 9th positions, so th\nanswer: 3 | phase: final_answer"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/streaming.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.9s",
   "stdout_tail": "OK.\n['response.created', 'response.in_progress', 'response.output_item.added', 'response.content_part.added', 'response.output_text.delta', 'response.output_text.delta', 'response.output_text.done', 'response.content_part.done', 'response.output_item.done', 'response.completed']"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/streaming.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.5s",
   "stdout_tail": "response.created\nresponse.in_progress\nresponse.output_item.added\nresponse.content_part.added\nresponse.output_text.delta\nresponse.output_text.done\nresponse.content_part.done\nresponse.output_item.done\nresponse.completed"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/streaming.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.9s",
   "stdout_tail": "OK\n[\n  'response.created',\n  'response.in_progress',\n  'response.output_item.added',\n  'response.content_part.added',\n  'response.output_text.delta',\n  'response.output_text.done',\n  'response.content_part.done',\n  'response.output_item.done',\n  'response.completed'\n]"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/structured_output.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.3s",
   "stdout_tail": "answer='OK'\n{'name': 'OkReply', 'schema_': {'properties': {'answer': {'title': 'Answer', 'type': 'string'}}, 'required': ['answer'], 'title': 'OkReply', 'type': 'object', 'additionalProperties': False}, 'type': 'json_schema', 'description': None, 'strict': True}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/structured_output.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.0s",
   "stdout_tail": "{\"answer\":\"OK\"}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/structured_output.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.0s",
   "stdout_tail": "{ answer: 'OK' }"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/token_counting.py",
   "language": "python",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.6s",
   "stdout_tail": "response.input_tokens 10\nwith instructions + tool: 44"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/token_counting.sh",
   "language": "bash/curl",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 0.6s",
   "stdout_tail": "{\n  \"object\": \"response.input_tokens\",\n  \"input_tokens\": 10\n}\n{\n  \"object\": \"response.input_tokens\",\n  \"input_tokens\": 49\n}"
  },
  {
   "provider": "openai",
   "area": "responses",
   "file": "examples/openai/responses/token_counting.ts",
   "language": "typescript",
   "status": "LIVE_VERIFIED",
   "verified_at": "2026-09-18",
   "notes": "exit 0 in 1.4s",
   "stdout_tail": "response.input_tokens 10"
  }
 ]
}