Python 88.3%
TypeScript 7.6%
Shell 4.1%
1{2 "_generated_by": "tmp/openai-core/run_examples.py",3 "generated_at": "2026-09-18",4 "examples": [5 {6 "provider": "openai",7 "area": "chat",8 "file": "examples/openai/chat/image_input.py",9 "language": "python",10 "status": "LIVE_VERIFIED",11 "verified_at": "2026-09-18",12 "notes": "exit 0 in 0.7s",13 "stdout_tail": "OK 13 prompt tokens incl. image"14 },15 {16 "provider": "openai",17 "area": "chat",18 "file": "examples/openai/chat/legacy_completions.py",19 "language": "python",20 "status": "LIVE_VERIFIED",21 "verified_at": "2026-09-18",22 "notes": "exit 0 in 1.6s",23 "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}"24 },25 {26 "provider": "openai",27 "area": "chat",28 "file": "examples/openai/chat/legacy_completions.sh",29 "language": "bash/curl",30 "status": "LIVE_VERIFIED",31 "verified_at": "2026-09-18",32 "notes": "exit 0 in 1.5s",33 "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}"34 },35 {36 "provider": "openai",37 "area": "chat",38 "file": "examples/openai/chat/minimal.py",39 "language": "python",40 "status": "LIVE_VERIFIED",41 "verified_at": "2026-09-18",42 "notes": "exit 0 in 1.1s",43 "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"44 },45 {46 "provider": "openai",47 "area": "chat",48 "file": "examples/openai/chat/minimal.sh",49 "language": "bash/curl",50 "status": "LIVE_VERIFIED",51 "verified_at": "2026-09-18",52 "notes": "exit 0 in 0.7s",53 "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}}"54 },55 {56 "provider": "openai",57 "area": "chat",58 "file": "examples/openai/chat/minimal.ts",59 "language": "typescript",60 "status": "LIVE_VERIFIED",61 "verified_at": "2026-09-18",62 "notes": "exit 0 in 0.6s",63 "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}"64 },65 {66 "provider": "openai",67 "area": "chat",68 "file": "examples/openai/chat/stored_retrieve_delete.py",69 "language": "python",70 "status": "LIVE_VERIFIED",71 "verified_at": "2026-09-18",72 "notes": "exit 0 in 6.7s",73 "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"74 },75 {76 "provider": "openai",77 "area": "chat",78 "file": "examples/openai/chat/stored_retrieve_delete.ts",79 "language": "typescript",80 "status": "LIVE_VERIFIED",81 "verified_at": "2026-09-18",82 "notes": "exit 0 in 2.6s",83 "stdout_tail": "retrieved: true { atlas: 'example' }\nchat.completion.deleted true"84 },85 {86 "provider": "openai",87 "area": "chat",88 "file": "examples/openai/chat/streaming.py",89 "language": "python",90 "status": "LIVE_VERIFIED",91 "verified_at": "2026-09-18",92 "notes": "exit 0 in 0.7s",93 "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}}"94 },95 {96 "provider": "openai",97 "area": "chat",98 "file": "examples/openai/chat/streaming.sh",99 "language": "bash/curl",100 "status": "LIVE_VERIFIED",101 "verified_at": "2026-09-18",102 "notes": "exit 0 in 0.6s",103 "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]"104 },105 {106 "provider": "openai",107 "area": "chat",108 "file": "examples/openai/chat/streaming.ts",109 "language": "typescript",110 "status": "LIVE_VERIFIED",111 "verified_at": "2026-09-18",112 "notes": "exit 0 in 0.9s",113 "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}"114 },115 {116 "provider": "openai",117 "area": "chat",118 "file": "examples/openai/chat/structured_output.py",119 "language": "python",120 "status": "LIVE_VERIFIED",121 "verified_at": "2026-09-18",122 "notes": "exit 0 in 1.2s",123 "stdout_tail": "{'answer': 'OK.'}\nanswer='OK'"124 },125 {126 "provider": "openai",127 "area": "chat",128 "file": "examples/openai/chat/structured_output.ts",129 "language": "typescript",130 "status": "LIVE_VERIFIED",131 "verified_at": "2026-09-18",132 "notes": "exit 0 in 0.5s",133 "stdout_tail": "{ answer: 'OK.' }"134 },135 {136 "provider": "openai",137 "area": "conversations",138 "file": "examples/openai/conversations/lifecycle.py",139 "language": "python",140 "status": "LIVE_VERIFIED",141 "verified_at": "2026-09-18",142 "notes": "exit 0 in 4.2s",143 "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"144 },145 {146 "provider": "openai",147 "area": "conversations",148 "file": "examples/openai/conversations/lifecycle.sh",149 "language": "bash/curl",150 "status": "LIVE_VERIFIED",151 "verified_at": "2026-09-18",152 "notes": "exit 0 in 3.8s",153 "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"154 },155 {156 "provider": "openai",157 "area": "conversations",158 "file": "examples/openai/conversations/lifecycle.ts",159 "language": "typescript",160 "status": "LIVE_VERIFIED",161 "verified_at": "2026-09-18",162 "notes": "exit 0 in 4.1s",163 "stdout_tail": "true OK\n[\n [ 'message', 'user' ],\n [ 'message', 'user' ],\n [ 'message', 'assistant' ]\n]\nconversation.deleted true"164 },165 {166 "provider": "openai",167 "area": "responses",168 "file": "examples/openai/responses/background.py",169 "language": "python",170 "status": "LIVE_VERIFIED",171 "verified_at": "2026-09-18",172 "notes": "exit 0 in 9.4s",173 "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']"174 },175 {176 "provider": "openai",177 "area": "responses",178 "file": "examples/openai/responses/background.sh",179 "language": "bash/curl",180 "status": "LIVE_VERIFIED",181 "verified_at": "2026-09-18",182 "notes": "exit 0 in 8.4s",183 "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"184 },185 {186 "provider": "openai",187 "area": "responses",188 "file": "examples/openai/responses/background.ts",189 "language": "typescript",190 "status": "LIVE_VERIFIED",191 "verified_at": "2026-09-18",192 "notes": "exit 0 in 3.9s",193 "stdout_tail": "initial: queued\nfinal: completed \"OK.\"\ncancel: cancelled | cancel again: cancelled"194 },195 {196 "provider": "openai",197 "area": "responses",198 "file": "examples/openai/responses/compaction.py",199 "language": "python",200 "status": "LIVE_VERIFIED",201 "verified_at": "2026-09-18",202 "notes": "exit 0 in 4.9s",203 "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']"204 },205 {206 "provider": "openai",207 "area": "responses",208 "file": "examples/openai/responses/compaction.sh",209 "language": "bash/curl",210 "status": "LIVE_VERIFIED",211 "verified_at": "2026-09-18",212 "notes": "exit 0 in 1.9s",213 "stdout_tail": "response.compaction ['message', 'message', 'compaction'] 119 -> 204 tokens"214 },215 {216 "provider": "openai",217 "area": "responses",218 "file": "examples/openai/responses/compaction.ts",219 "language": "typescript",220 "status": "LIVE_VERIFIED",221 "verified_at": "2026-09-18",222 "notes": "exit 0 in 2.2s",223 "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\""224 },225 {226 "provider": "openai",227 "area": "responses",228 "file": "examples/openai/responses/image_input.py",229 "language": "python",230 "status": "LIVE_VERIFIED",231 "verified_at": "2026-09-18",232 "notes": "exit 0 in 1.7s",233 "stdout_tail": "completed OK 15 input tokens"234 },235 {236 "provider": "openai",237 "area": "responses",238 "file": "examples/openai/responses/image_input.sh",239 "language": "bash/curl",240 "status": "LIVE_VERIFIED",241 "verified_at": "2026-09-18",242 "notes": "exit 0 in 1.1s",243 "stdout_tail": "completed 15 input tokens incl. image"244 },245 {246 "provider": "openai",247 "area": "responses",248 "file": "examples/openai/responses/image_input.ts",249 "language": "typescript",250 "status": "LIVE_VERIFIED",251 "verified_at": "2026-09-18",252 "notes": "exit 0 in 1.5s",253 "stdout_tail": "completed OK 15"254 },255 {256 "provider": "openai",257 "area": "responses",258 "file": "examples/openai/responses/minimal.py",259 "language": "python",260 "status": "LIVE_VERIFIED",261 "verified_at": "2026-09-18",262 "notes": "exit 0 in 1.1s",263 "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}"264 },265 {266 "provider": "openai",267 "area": "responses",268 "file": "examples/openai/responses/minimal.sh",269 "language": "bash/curl",270 "status": "LIVE_VERIFIED",271 "verified_at": "2026-09-18",272 "notes": "exit 0 in 0.9s",273 "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}"274 },275 {276 "provider": "openai",277 "area": "responses",278 "file": "examples/openai/responses/minimal.ts",279 "language": "typescript",280 "status": "LIVE_VERIFIED",281 "verified_at": "2026-09-18",282 "notes": "exit 0 in 0.8s",283 "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}"284 },285 {286 "provider": "openai",287 "area": "responses",288 "file": "examples/openai/responses/previous_response_id.py",289 "language": "python",290 "status": "LIVE_VERIFIED",291 "verified_at": "2026-09-18",292 "notes": "exit 0 in 3.8s",293 "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"294 },295 {296 "provider": "openai",297 "area": "responses",298 "file": "examples/openai/responses/previous_response_id.sh",299 "language": "bash/curl",300 "status": "LIVE_VERIFIED",301 "verified_at": "2026-09-18",302 "notes": "exit 0 in 2.3s",303 "stdout_tail": "resp_0680ad9f2db8532c006aadeea626fc87d2a5a70682e5f578e1 26 input tokens (prior turn re-billed)\ninput_items: [('message', 'user'), ('message', 'assistant'), ('message', 'user')]"304 },305 {306 "provider": "openai",307 "area": "responses",308 "file": "examples/openai/responses/previous_response_id.ts",309 "language": "typescript",310 "status": "LIVE_VERIFIED",311 "verified_at": "2026-09-18",312 "notes": "exit 0 in 2.3s",313 "stdout_tail": "true OK 26\nretrieved status: completed"314 },315 {316 "provider": "openai",317 "area": "responses",318 "file": "examples/openai/responses/reasoning_summary.py",319 "language": "python",320 "status": "LIVE_VERIFIED",321 "verified_at": "2026-09-18",322 "notes": "exit 0 in 2.3s",323 "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"324 },325 {326 "provider": "openai",327 "area": "responses",328 "file": "examples/openai/responses/streaming.py",329 "language": "python",330 "status": "LIVE_VERIFIED",331 "verified_at": "2026-09-18",332 "notes": "exit 0 in 0.9s",333 "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']"334 },335 {336 "provider": "openai",337 "area": "responses",338 "file": "examples/openai/responses/streaming.sh",339 "language": "bash/curl",340 "status": "LIVE_VERIFIED",341 "verified_at": "2026-09-18",342 "notes": "exit 0 in 1.5s",343 "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"344 },345 {346 "provider": "openai",347 "area": "responses",348 "file": "examples/openai/responses/streaming.ts",349 "language": "typescript",350 "status": "LIVE_VERIFIED",351 "verified_at": "2026-09-18",352 "notes": "exit 0 in 0.9s",353 "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]"354 },355 {356 "provider": "openai",357 "area": "responses",358 "file": "examples/openai/responses/structured_output.py",359 "language": "python",360 "status": "LIVE_VERIFIED",361 "verified_at": "2026-09-18",362 "notes": "exit 0 in 1.3s",363 "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}"364 },365 {366 "provider": "openai",367 "area": "responses",368 "file": "examples/openai/responses/structured_output.sh",369 "language": "bash/curl",370 "status": "LIVE_VERIFIED",371 "verified_at": "2026-09-18",372 "notes": "exit 0 in 1.0s",373 "stdout_tail": "{\"answer\":\"OK\"}"374 },375 {376 "provider": "openai",377 "area": "responses",378 "file": "examples/openai/responses/structured_output.ts",379 "language": "typescript",380 "status": "LIVE_VERIFIED",381 "verified_at": "2026-09-18",382 "notes": "exit 0 in 1.0s",383 "stdout_tail": "{ answer: 'OK' }"384 },385 {386 "provider": "openai",387 "area": "responses",388 "file": "examples/openai/responses/token_counting.py",389 "language": "python",390 "status": "LIVE_VERIFIED",391 "verified_at": "2026-09-18",392 "notes": "exit 0 in 1.6s",393 "stdout_tail": "response.input_tokens 10\nwith instructions + tool: 44"394 },395 {396 "provider": "openai",397 "area": "responses",398 "file": "examples/openai/responses/token_counting.sh",399 "language": "bash/curl",400 "status": "LIVE_VERIFIED",401 "verified_at": "2026-09-18",402 "notes": "exit 0 in 0.6s",403 "stdout_tail": "{\n \"object\": \"response.input_tokens\",\n \"input_tokens\": 10\n}\n{\n \"object\": \"response.input_tokens\",\n \"input_tokens\": 49\n}"404 },405 {406 "provider": "openai",407 "area": "responses",408 "file": "examples/openai/responses/token_counting.ts",409 "language": "typescript",410 "status": "LIVE_VERIFIED",411 "verified_at": "2026-09-18",412 "notes": "exit 0 in 1.4s",413 "stdout_tail": "response.input_tokens 10"414 }415 ]416}