@ai-sdk/openai 3.0.14 → 3.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.js +1 -1
  3. package/dist/index.mjs +1 -1
  4. package/package.json +6 -5
  5. package/src/chat/__fixtures__/azure-model-router.1.chunks.txt +8 -0
  6. package/src/chat/__snapshots__/openai-chat-language-model.test.ts.snap +88 -0
  7. package/src/chat/convert-openai-chat-usage.ts +57 -0
  8. package/src/chat/convert-to-openai-chat-messages.test.ts +516 -0
  9. package/src/chat/convert-to-openai-chat-messages.ts +225 -0
  10. package/src/chat/get-response-metadata.ts +15 -0
  11. package/src/chat/map-openai-finish-reason.ts +19 -0
  12. package/src/chat/openai-chat-api.ts +198 -0
  13. package/src/chat/openai-chat-language-model.test.ts +3496 -0
  14. package/src/chat/openai-chat-language-model.ts +700 -0
  15. package/src/chat/openai-chat-options.ts +186 -0
  16. package/src/chat/openai-chat-prepare-tools.test.ts +322 -0
  17. package/src/chat/openai-chat-prepare-tools.ts +84 -0
  18. package/src/chat/openai-chat-prompt.ts +70 -0
  19. package/src/completion/convert-openai-completion-usage.ts +46 -0
  20. package/src/completion/convert-to-openai-completion-prompt.ts +93 -0
  21. package/src/completion/get-response-metadata.ts +15 -0
  22. package/src/completion/map-openai-finish-reason.ts +19 -0
  23. package/src/completion/openai-completion-api.ts +81 -0
  24. package/src/completion/openai-completion-language-model.test.ts +752 -0
  25. package/src/completion/openai-completion-language-model.ts +336 -0
  26. package/src/completion/openai-completion-options.ts +58 -0
  27. package/src/embedding/__snapshots__/openai-embedding-model.test.ts.snap +43 -0
  28. package/src/embedding/openai-embedding-api.ts +13 -0
  29. package/src/embedding/openai-embedding-model.test.ts +146 -0
  30. package/src/embedding/openai-embedding-model.ts +95 -0
  31. package/src/embedding/openai-embedding-options.ts +30 -0
  32. package/src/image/openai-image-api.ts +35 -0
  33. package/src/image/openai-image-model.test.ts +722 -0
  34. package/src/image/openai-image-model.ts +305 -0
  35. package/src/image/openai-image-options.ts +28 -0
  36. package/src/index.ts +9 -0
  37. package/src/internal/index.ts +19 -0
  38. package/src/openai-config.ts +18 -0
  39. package/src/openai-error.test.ts +34 -0
  40. package/src/openai-error.ts +22 -0
  41. package/src/openai-language-model-capabilities.test.ts +93 -0
  42. package/src/openai-language-model-capabilities.ts +54 -0
  43. package/src/openai-provider.test.ts +98 -0
  44. package/src/openai-provider.ts +270 -0
  45. package/src/openai-tools.ts +114 -0
  46. package/src/responses/__fixtures__/openai-apply-patch-tool-delete.1.chunks.txt +5 -0
  47. package/src/responses/__fixtures__/openai-apply-patch-tool.1.chunks.txt +38 -0
  48. package/src/responses/__fixtures__/openai-apply-patch-tool.1.json +69 -0
  49. package/src/responses/__fixtures__/openai-code-interpreter-tool.1.chunks.txt +393 -0
  50. package/src/responses/__fixtures__/openai-code-interpreter-tool.1.json +137 -0
  51. package/src/responses/__fixtures__/openai-error.1.chunks.txt +4 -0
  52. package/src/responses/__fixtures__/openai-error.1.json +8 -0
  53. package/src/responses/__fixtures__/openai-file-search-tool.1.chunks.txt +94 -0
  54. package/src/responses/__fixtures__/openai-file-search-tool.1.json +89 -0
  55. package/src/responses/__fixtures__/openai-file-search-tool.2.chunks.txt +93 -0
  56. package/src/responses/__fixtures__/openai-file-search-tool.2.json +112 -0
  57. package/src/responses/__fixtures__/openai-image-generation-tool.1.chunks.txt +16 -0
  58. package/src/responses/__fixtures__/openai-image-generation-tool.1.json +96 -0
  59. package/src/responses/__fixtures__/openai-local-shell-tool.1.chunks.txt +7 -0
  60. package/src/responses/__fixtures__/openai-local-shell-tool.1.json +70 -0
  61. package/src/responses/__fixtures__/openai-mcp-tool-approval.1.chunks.txt +11 -0
  62. package/src/responses/__fixtures__/openai-mcp-tool-approval.1.json +169 -0
  63. package/src/responses/__fixtures__/openai-mcp-tool-approval.2.chunks.txt +123 -0
  64. package/src/responses/__fixtures__/openai-mcp-tool-approval.2.json +176 -0
  65. package/src/responses/__fixtures__/openai-mcp-tool-approval.3.chunks.txt +11 -0
  66. package/src/responses/__fixtures__/openai-mcp-tool-approval.3.json +169 -0
  67. package/src/responses/__fixtures__/openai-mcp-tool-approval.4.chunks.txt +84 -0
  68. package/src/responses/__fixtures__/openai-mcp-tool-approval.4.json +182 -0
  69. package/src/responses/__fixtures__/openai-mcp-tool.1.chunks.txt +373 -0
  70. package/src/responses/__fixtures__/openai-mcp-tool.1.json +159 -0
  71. package/src/responses/__fixtures__/openai-reasoning-encrypted-content.1.chunks.txt +110 -0
  72. package/src/responses/__fixtures__/openai-reasoning-encrypted-content.1.json +117 -0
  73. package/src/responses/__fixtures__/openai-shell-tool.1.chunks.txt +182 -0
  74. package/src/responses/__fixtures__/openai-shell-tool.1.json +73 -0
  75. package/src/responses/__fixtures__/openai-web-search-tool.1.chunks.txt +185 -0
  76. package/src/responses/__fixtures__/openai-web-search-tool.1.json +266 -0
  77. package/src/responses/__snapshots__/openai-responses-language-model.test.ts.snap +10955 -0
  78. package/src/responses/convert-openai-responses-usage.ts +53 -0
  79. package/src/responses/convert-to-openai-responses-input.test.ts +2976 -0
  80. package/src/responses/convert-to-openai-responses-input.ts +578 -0
  81. package/src/responses/map-openai-responses-finish-reason.ts +22 -0
  82. package/src/responses/openai-responses-api.test.ts +89 -0
  83. package/src/responses/openai-responses-api.ts +1086 -0
  84. package/src/responses/openai-responses-language-model.test.ts +6927 -0
  85. package/src/responses/openai-responses-language-model.ts +1932 -0
  86. package/src/responses/openai-responses-options.ts +312 -0
  87. package/src/responses/openai-responses-prepare-tools.test.ts +924 -0
  88. package/src/responses/openai-responses-prepare-tools.ts +264 -0
  89. package/src/responses/openai-responses-provider-metadata.ts +39 -0
  90. package/src/speech/openai-speech-api.ts +38 -0
  91. package/src/speech/openai-speech-model.test.ts +202 -0
  92. package/src/speech/openai-speech-model.ts +137 -0
  93. package/src/speech/openai-speech-options.ts +22 -0
  94. package/src/tool/apply-patch.ts +141 -0
  95. package/src/tool/code-interpreter.ts +104 -0
  96. package/src/tool/file-search.ts +145 -0
  97. package/src/tool/image-generation.ts +126 -0
  98. package/src/tool/local-shell.test-d.ts +20 -0
  99. package/src/tool/local-shell.ts +72 -0
  100. package/src/tool/mcp.ts +125 -0
  101. package/src/tool/shell.ts +85 -0
  102. package/src/tool/web-search-preview.ts +139 -0
  103. package/src/tool/web-search.test-d.ts +13 -0
  104. package/src/tool/web-search.ts +179 -0
  105. package/src/transcription/openai-transcription-api.ts +37 -0
  106. package/src/transcription/openai-transcription-model.test.ts +507 -0
  107. package/src/transcription/openai-transcription-model.ts +232 -0
  108. package/src/transcription/openai-transcription-options.ts +50 -0
  109. package/src/transcription/transcription-test.mp3 +0 -0
  110. package/src/version.ts +6 -0
@@ -0,0 +1,123 @@
1
+ {"type":"response.created","sequence_number":0,"response":{"id":"resp_04a97b4fce127879006949a855fa68819598a2a379fd5b6c38","object":"response","created_at":1766434902,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
2
+ {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_04a97b4fce127879006949a855fa68819598a2a379fd5b6c38","object":"response","created_at":1766434902,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
3
+ {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"mcpl_04a97b4fce127879006949a856328881959cdd5fda3bc888e8","type":"mcp_list_tools","server_label":"zip1","tools":[]}}
4
+ {"type":"response.mcp_list_tools.in_progress","sequence_number":3,"output_index":0,"item_id":"mcpl_04a97b4fce127879006949a856328881959cdd5fda3bc888e8"}
5
+ {"type":"response.mcp_list_tools.completed","sequence_number":4,"output_index":0,"item_id":"mcpl_04a97b4fce127879006949a856328881959cdd5fda3bc888e8"}
6
+ {"type":"response.output_item.done","sequence_number":5,"output_index":0,"item":{"id":"mcpl_04a97b4fce127879006949a856328881959cdd5fda3bc888e8","type":"mcp_list_tools","server_label":"zip1","tools":[{"annotations":{"read_only":false},"description":"Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit","input_schema":{"properties":{"alias":{"description":"Custom alias for the short URL (optional, alphanumeric and hyphens only)","type":"string"},"description":{"description":"Description for the short URL (optional, max 100 characters)","type":"string"},"max_clicks":{"description":"Maximum number of clicks allowed before the link expires (optional)","minimum":1,"type":"integer"},"password":{"description":"Password to protect the short URL (optional)","type":"string"},"url":{"description":"The long URL to shorten (must include http:// or https://)","type":"string"}},"required":["url"],"type":"object"},"name":"create_short_url"},{"annotations":{"read_only":false},"description":"Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity","input_schema":{"properties":{"short_code":{"description":"The short code or custom alias of the URL to get stats for","type":"string"}},"required":["short_code"],"type":"object"},"name":"get_url_stats"},{"annotations":{"read_only":false},"description":"Check if a URL is valid and can be shortened by zip1.io","input_schema":{"properties":{"url":{"description":"The URL to validate","type":"string"}},"required":["url"],"type":"object"},"name":"validate_url"},{"annotations":{"read_only":false},"description":"Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)","input_schema":{"properties":{},"type":"object"},"name":"generate_short_code"}]}}
7
+ {"type":"response.output_item.added","sequence_number":6,"output_index":1,"item":{"id":"rs_04a97b4fce127879006949a857b7c88195818dab6d25ff091d","type":"reasoning","summary":[]}}
8
+ {"type":"response.output_item.done","sequence_number":7,"output_index":1,"item":{"id":"rs_04a97b4fce127879006949a857b7c88195818dab6d25ff091d","type":"reasoning","summary":[]}}
9
+ {"type":"response.output_item.added","sequence_number":8,"output_index":2,"item":{"id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","type":"message","status":"in_progress","content":[],"role":"assistant"}}
10
+ {"type":"response.content_part.added","sequence_number":9,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":""}}
11
+ {"type":"response.output_text.delta","sequence_number":10,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"I","logprobs":[],"obfuscation":"TeXlXAXxUsKjBlh"}
12
+ {"type":"response.output_text.delta","sequence_number":11,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" wasn","logprobs":[],"obfuscation":"0qzo8sBNtrS"}
13
+ {"type":"response.output_text.delta","sequence_number":12,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"’t","logprobs":[],"obfuscation":"rqdoVTE9nEy7xi"}
14
+ {"type":"response.output_text.delta","sequence_number":13,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" able","logprobs":[],"obfuscation":"d9R0QQL1HI8"}
15
+ {"type":"response.output_text.delta","sequence_number":14,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" to","logprobs":[],"obfuscation":"SiFx0VS0hYSMd"}
16
+ {"type":"response.output_text.delta","sequence_number":15,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" create","logprobs":[],"obfuscation":"OWfzqbrOI"}
17
+ {"type":"response.output_text.delta","sequence_number":16,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"3I6YHpq5r2aB"}
18
+ {"type":"response.output_text.delta","sequence_number":17,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" short","logprobs":[],"obfuscation":"wkrIoGTPeW"}
19
+ {"type":"response.output_text.delta","sequence_number":18,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" link","logprobs":[],"obfuscation":"arvuB21tauG"}
20
+ {"type":"response.output_text.delta","sequence_number":19,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" because","logprobs":[],"obfuscation":"30YM0079"}
21
+ {"type":"response.output_text.delta","sequence_number":20,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"vPtnpoGD0Nj4"}
22
+ {"type":"response.output_text.delta","sequence_number":21,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" URL","logprobs":[],"obfuscation":"qy9JQDhQPnNe"}
23
+ {"type":"response.output_text.delta","sequence_number":22,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-short","logprobs":[],"obfuscation":"34KILhSqIJ"}
24
+ {"type":"response.output_text.delta","sequence_number":23,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"ening","logprobs":[],"obfuscation":"q9Pq0h8c4Qd"}
25
+ {"type":"response.output_text.delta","sequence_number":24,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" tool","logprobs":[],"obfuscation":"cUULz3KTKIi"}
26
+ {"type":"response.output_text.delta","sequence_number":25,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" call","logprobs":[],"obfuscation":"m6CaFbmoXWV"}
27
+ {"type":"response.output_text.delta","sequence_number":26,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" was","logprobs":[],"obfuscation":"ZRckmUXujoeA"}
28
+ {"type":"response.output_text.delta","sequence_number":27,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" not","logprobs":[],"obfuscation":"U2dVy5cCaBdx"}
29
+ {"type":"response.output_text.delta","sequence_number":28,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" approved","logprobs":[],"obfuscation":"qTeEB7Q"}
30
+ {"type":"response.output_text.delta","sequence_number":29,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".","logprobs":[],"obfuscation":"O0SEi6FGaHi2AsE"}
31
+ {"type":"response.output_text.delta","sequence_number":30,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" I","logprobs":[],"obfuscation":"z7LULGlyEu2m1o"}
32
+ {"type":"response.output_text.delta","sequence_number":31,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" won","logprobs":[],"obfuscation":"DKB9SAJlFUF3"}
33
+ {"type":"response.output_text.delta","sequence_number":32,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"’t","logprobs":[],"obfuscation":"LSpsMA2bDgNTh6"}
34
+ {"type":"response.output_text.delta","sequence_number":33,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" retry","logprobs":[],"obfuscation":"XxHNRHroW0"}
35
+ {"type":"response.output_text.delta","sequence_number":34,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" it","logprobs":[],"obfuscation":"cGamGblUxU6uw"}
36
+ {"type":"response.output_text.delta","sequence_number":35,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" without","logprobs":[],"obfuscation":"APJy3XS1"}
37
+ {"type":"response.output_text.delta","sequence_number":36,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" your","logprobs":[],"obfuscation":"sdUkX0m6I51"}
38
+ {"type":"response.output_text.delta","sequence_number":37,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" permission","logprobs":[],"obfuscation":"JwliZ"}
39
+ {"type":"response.output_text.delta","sequence_number":38,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".\n\n","logprobs":[],"obfuscation":"6z9mSB1EZm4Wu"}
40
+ {"type":"response.output_text.delta","sequence_number":39,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"Options","logprobs":[],"obfuscation":"TWnGKQ6hw"}
41
+ {"type":"response.output_text.delta","sequence_number":40,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":":\n","logprobs":[],"obfuscation":"EMVNNk1kUtYSWm"}
42
+ {"type":"response.output_text.delta","sequence_number":41,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-","logprobs":[],"obfuscation":"F5B6LMDWvxW5HOc"}
43
+ {"type":"response.output_text.delta","sequence_number":42,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" Appro","logprobs":[],"obfuscation":"J7iaytzyJv"}
44
+ {"type":"response.output_text.delta","sequence_number":43,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"ve","logprobs":[],"obfuscation":"yLsE5IHxj7J9XM"}
45
+ {"type":"response.output_text.delta","sequence_number":44,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"QIybZMc8wcTl"}
46
+ {"type":"response.output_text.delta","sequence_number":45,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" tool","logprobs":[],"obfuscation":"p3gbGiBeK7g"}
47
+ {"type":"response.output_text.delta","sequence_number":46,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" call","logprobs":[],"obfuscation":"DESMME34Yq6"}
48
+ {"type":"response.output_text.delta","sequence_number":47,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" and","logprobs":[],"obfuscation":"DrdiEK7RDFry"}
49
+ {"type":"response.output_text.delta","sequence_number":48,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" I","logprobs":[],"obfuscation":"a9zlud64XtxZty"}
50
+ {"type":"response.output_text.delta","sequence_number":49,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"’ll","logprobs":[],"obfuscation":"F8aliYCwvTA8N"}
51
+ {"type":"response.output_text.delta","sequence_number":50,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" create","logprobs":[],"obfuscation":"1GpFjI9qE"}
52
+ {"type":"response.output_text.delta","sequence_number":51,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"OWOacMGRGLWL"}
53
+ {"type":"response.output_text.delta","sequence_number":52,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" short","logprobs":[],"obfuscation":"yRxHL5Hn6m"}
54
+ {"type":"response.output_text.delta","sequence_number":53,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" URL","logprobs":[],"obfuscation":"MF45NXllJWAv"}
55
+ {"type":"response.output_text.delta","sequence_number":54,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" with","logprobs":[],"obfuscation":"VZyF4n0Dmvx"}
56
+ {"type":"response.output_text.delta","sequence_number":55,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" max","logprobs":[],"obfuscation":"YoHgQAMieRWW"}
57
+ {"type":"response.output_text.delta","sequence_number":56,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" clicks","logprobs":[],"obfuscation":"RqFmfqMuV"}
58
+ {"type":"response.output_text.delta","sequence_number":57,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" =","logprobs":[],"obfuscation":"ZkML8lD3clGTDN"}
59
+ {"type":"response.output_text.delta","sequence_number":58,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" ","logprobs":[],"obfuscation":"tvk9pIMt8u0IQEk"}
60
+ {"type":"response.output_text.delta","sequence_number":59,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"100","logprobs":[],"obfuscation":"ndes26bIiztqh"}
61
+ {"type":"response.output_text.delta","sequence_number":60,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" now","logprobs":[],"obfuscation":"9iMUa8yjRAU7"}
62
+ {"type":"response.output_text.delta","sequence_number":61,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".\n","logprobs":[],"obfuscation":"4rCme2iA24We4t"}
63
+ {"type":"response.output_text.delta","sequence_number":62,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-","logprobs":[],"obfuscation":"SS1fOl1PhfAcWpP"}
64
+ {"type":"response.output_text.delta","sequence_number":63,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" I","logprobs":[],"obfuscation":"TKivDmnxNyhmuC"}
65
+ {"type":"response.output_text.delta","sequence_number":64,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" can","logprobs":[],"obfuscation":"vpAIQbjPDqJd"}
66
+ {"type":"response.output_text.delta","sequence_number":65,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" suggest","logprobs":[],"obfuscation":"FKi6mnLW"}
67
+ {"type":"response.output_text.delta","sequence_number":66,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" a","logprobs":[],"obfuscation":"gPxVSd178RkUx8"}
68
+ {"type":"response.output_text.delta","sequence_number":67,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" short","logprobs":[],"obfuscation":"fQJvkNLZdS"}
69
+ {"type":"response.output_text.delta","sequence_number":68,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" alias","logprobs":[],"obfuscation":"i9nIDmBwLo"}
70
+ {"type":"response.output_text.delta","sequence_number":69,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" (","logprobs":[],"obfuscation":"ra9Qq5EAEixVgE"}
71
+ {"type":"response.output_text.delta","sequence_number":70,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"e","logprobs":[],"obfuscation":"Gn03XLJ3vAi6Ixf"}
72
+ {"type":"response.output_text.delta","sequence_number":71,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".g","logprobs":[],"obfuscation":"JqU28MkMMzbTFy"}
73
+ {"type":"response.output_text.delta","sequence_number":72,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".,","logprobs":[],"obfuscation":"jkRD241UpguarE"}
74
+ {"type":"response.output_text.delta","sequence_number":73,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" ai","logprobs":[],"obfuscation":"fY2473Xcu8zbp"}
75
+ {"type":"response.output_text.delta","sequence_number":74,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-sdk","logprobs":[],"obfuscation":"wtERQRQOlr2u"}
76
+ {"type":"response.output_text.delta","sequence_number":75,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":",","logprobs":[],"obfuscation":"bq5Hlh1D0qlYYmM"}
77
+ {"type":"response.output_text.delta","sequence_number":76,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" ai","logprobs":[],"obfuscation":"bOrW9dG2iB38X"}
78
+ {"type":"response.output_text.delta","sequence_number":77,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-sdk","logprobs":[],"obfuscation":"ntjjYTNv2VQo"}
79
+ {"type":"response.output_text.delta","sequence_number":78,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-dev","logprobs":[],"obfuscation":"mvCgngrv8Qbt"}
80
+ {"type":"response.output_text.delta","sequence_number":79,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":")","logprobs":[],"obfuscation":"baEUm6T74oqU068"}
81
+ {"type":"response.output_text.delta","sequence_number":80,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" for","logprobs":[],"obfuscation":"51YuyT5OvQJZ"}
82
+ {"type":"response.output_text.delta","sequence_number":81,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" you","logprobs":[],"obfuscation":"Wk9d2sIIqssO"}
83
+ {"type":"response.output_text.delta","sequence_number":82,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" to","logprobs":[],"obfuscation":"7WcRTlH9JZkdl"}
84
+ {"type":"response.output_text.delta","sequence_number":83,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" use","logprobs":[],"obfuscation":"f0qwCtfXtlOW"}
85
+ {"type":"response.output_text.delta","sequence_number":84,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" when","logprobs":[],"obfuscation":"jiTWKpe8tG5"}
86
+ {"type":"response.output_text.delta","sequence_number":85,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" creating","logprobs":[],"obfuscation":"OvL5JY7"}
87
+ {"type":"response.output_text.delta","sequence_number":86,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"1iBDUFMN4eWZ"}
88
+ {"type":"response.output_text.delta","sequence_number":87,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" short","logprobs":[],"obfuscation":"6Ls6GKObPv"}
89
+ {"type":"response.output_text.delta","sequence_number":88,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" link","logprobs":[],"obfuscation":"0TYOIR8nOpn"}
90
+ {"type":"response.output_text.delta","sequence_number":89,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" yourself","logprobs":[],"obfuscation":"rY3mtXu"}
91
+ {"type":"response.output_text.delta","sequence_number":90,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".\n","logprobs":[],"obfuscation":"YvA37T7bXmue22"}
92
+ {"type":"response.output_text.delta","sequence_number":91,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-","logprobs":[],"obfuscation":"L27zc4ABz5N3XqC"}
93
+ {"type":"response.output_text.delta","sequence_number":92,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" I","logprobs":[],"obfuscation":"zPUAumT6xgcuBu"}
94
+ {"type":"response.output_text.delta","sequence_number":93,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" can","logprobs":[],"obfuscation":"3EQYWlU38AZR"}
95
+ {"type":"response.output_text.delta","sequence_number":94,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" give","logprobs":[],"obfuscation":"7mVNn7FUqu0"}
96
+ {"type":"response.output_text.delta","sequence_number":95,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" step","logprobs":[],"obfuscation":"wIAMENwkmcN"}
97
+ {"type":"response.output_text.delta","sequence_number":96,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-by","logprobs":[],"obfuscation":"p0kJk2kX2xrVr"}
98
+ {"type":"response.output_text.delta","sequence_number":97,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"-step","logprobs":[],"obfuscation":"AkBumZlDbhJ"}
99
+ {"type":"response.output_text.delta","sequence_number":98,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" instructions","logprobs":[],"obfuscation":"3M8"}
100
+ {"type":"response.output_text.delta","sequence_number":99,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" to","logprobs":[],"obfuscation":"fLJIhT2RMm5x0"}
101
+ {"type":"response.output_text.delta","sequence_number":100,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" create","logprobs":[],"obfuscation":"gptEYtK5k"}
102
+ {"type":"response.output_text.delta","sequence_number":101,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" the","logprobs":[],"obfuscation":"8LoNWrc6HxDJ"}
103
+ {"type":"response.output_text.delta","sequence_number":102,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" shortened","logprobs":[],"obfuscation":"afigk8"}
104
+ {"type":"response.output_text.delta","sequence_number":103,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" link","logprobs":[],"obfuscation":"wd1UgjVJ9RR"}
105
+ {"type":"response.output_text.delta","sequence_number":104,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" manually","logprobs":[],"obfuscation":"c9Z9M7I"}
106
+ {"type":"response.output_text.delta","sequence_number":105,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" on","logprobs":[],"obfuscation":"IkLUY87ZvEtsW"}
107
+ {"type":"response.output_text.delta","sequence_number":106,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" zip","logprobs":[],"obfuscation":"O98kBOsBdi3M"}
108
+ {"type":"response.output_text.delta","sequence_number":107,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"1","logprobs":[],"obfuscation":"NP1ToxQC6LGUbbt"}
109
+ {"type":"response.output_text.delta","sequence_number":108,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".io","logprobs":[],"obfuscation":"eWf6xoFO74CE0"}
110
+ {"type":"response.output_text.delta","sequence_number":109,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" or","logprobs":[],"obfuscation":"wOCs6l5EGdGjf"}
111
+ {"type":"response.output_text.delta","sequence_number":110,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" another","logprobs":[],"obfuscation":"8jjk4CtU"}
112
+ {"type":"response.output_text.delta","sequence_number":111,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" short","logprobs":[],"obfuscation":"d5cvuGbh6r"}
113
+ {"type":"response.output_text.delta","sequence_number":112,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"ener","logprobs":[],"obfuscation":"PLdeFETWJUuB"}
114
+ {"type":"response.output_text.delta","sequence_number":113,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":".\n\n","logprobs":[],"obfuscation":"LVy3ulZVoKktN"}
115
+ {"type":"response.output_text.delta","sequence_number":114,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"Which","logprobs":[],"obfuscation":"ubZDH0vLowR"}
116
+ {"type":"response.output_text.delta","sequence_number":115,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" would","logprobs":[],"obfuscation":"sztjyZuBEX"}
117
+ {"type":"response.output_text.delta","sequence_number":116,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" you","logprobs":[],"obfuscation":"goVasldIEXhf"}
118
+ {"type":"response.output_text.delta","sequence_number":117,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":" like","logprobs":[],"obfuscation":"QDn2CYf6Pnf"}
119
+ {"type":"response.output_text.delta","sequence_number":118,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"delta":"?","logprobs":[],"obfuscation":"UnjuC5PQEby8qB3"}
120
+ {"type":"response.output_text.done","sequence_number":119,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"text":"I wasn’t able to create the short link because the URL-shortening tool call was not approved. I won’t retry it without your permission.\n\nOptions:\n- Approve the tool call and I’ll create the short URL with max clicks = 100 now.\n- I can suggest a short alias (e.g., ai-sdk, ai-sdk-dev) for you to use when creating the short link yourself.\n- I can give step-by-step instructions to create the shortened link manually on zip1.io or another shortener.\n\nWhich would you like?","logprobs":[]}
121
+ {"type":"response.content_part.done","sequence_number":120,"item_id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","output_index":2,"content_index":0,"part":{"type":"output_text","annotations":[],"logprobs":[],"text":"I wasn’t able to create the short link because the URL-shortening tool call was not approved. I won’t retry it without your permission.\n\nOptions:\n- Approve the tool call and I’ll create the short URL with max clicks = 100 now.\n- I can suggest a short alias (e.g., ai-sdk, ai-sdk-dev) for you to use when creating the short link yourself.\n- I can give step-by-step instructions to create the shortened link manually on zip1.io or another shortener.\n\nWhich would you like?"}}
122
+ {"type":"response.output_item.done","sequence_number":121,"output_index":2,"item":{"id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"I wasn’t able to create the short link because the URL-shortening tool call was not approved. I won’t retry it without your permission.\n\nOptions:\n- Approve the tool call and I’ll create the short URL with max clicks = 100 now.\n- I can suggest a short alias (e.g., ai-sdk, ai-sdk-dev) for you to use when creating the short link yourself.\n- I can give step-by-step instructions to create the shortened link manually on zip1.io or another shortener.\n\nWhich would you like?"}],"role":"assistant"}}
123
+ {"type":"response.completed","sequence_number":122,"response":{"id":"resp_04a97b4fce127879006949a855fa68819598a2a379fd5b6c38","object":"response","created_at":1766434902,"status":"completed","background":false,"completed_at":1766434910,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[{"id":"mcpl_04a97b4fce127879006949a856328881959cdd5fda3bc888e8","type":"mcp_list_tools","server_label":"zip1","tools":[{"annotations":{"read_only":false},"description":"Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit","input_schema":{"properties":{"alias":{"description":"Custom alias for the short URL (optional, alphanumeric and hyphens only)","type":"string"},"description":{"description":"Description for the short URL (optional, max 100 characters)","type":"string"},"max_clicks":{"description":"Maximum number of clicks allowed before the link expires (optional)","minimum":1,"type":"integer"},"password":{"description":"Password to protect the short URL (optional)","type":"string"},"url":{"description":"The long URL to shorten (must include http:// or https://)","type":"string"}},"required":["url"],"type":"object"},"name":"create_short_url"},{"annotations":{"read_only":false},"description":"Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity","input_schema":{"properties":{"short_code":{"description":"The short code or custom alias of the URL to get stats for","type":"string"}},"required":["short_code"],"type":"object"},"name":"get_url_stats"},{"annotations":{"read_only":false},"description":"Check if a URL is valid and can be shortened by zip1.io","input_schema":{"properties":{"url":{"description":"The URL to validate","type":"string"}},"required":["url"],"type":"object"},"name":"validate_url"},{"annotations":{"read_only":false},"description":"Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)","input_schema":{"properties":{},"type":"object"},"name":"generate_short_code"}]},{"id":"rs_04a97b4fce127879006949a857b7c88195818dab6d25ff091d","type":"reasoning","summary":[]},{"id":"msg_04a97b4fce127879006949a85c36b08195b7527e9fb2f8569e","type":"message","status":"completed","content":[{"type":"output_text","annotations":[],"logprobs":[],"text":"I wasn’t able to create the short link because the URL-shortening tool call was not approved. I won’t retry it without your permission.\n\nOptions:\n- Approve the tool call and I’ll create the short URL with max clicks = 100 now.\n- I can suggest a short alias (e.g., ai-sdk, ai-sdk-dev) for you to use when creating the short link yourself.\n- I can give step-by-step instructions to create the shortened link manually on zip1.io or another shortener.\n\nWhich would you like?"}],"role":"assistant"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":{"input_tokens":553,"input_tokens_details":{"cached_tokens":0},"output_tokens":371,"output_tokens_details":{"reasoning_tokens":256},"total_tokens":924},"user":null,"metadata":{}}}
@@ -0,0 +1,176 @@
1
+ {
2
+ "id": "resp_04f6b17429cf2b02006949a673effc8196bc0d00ce027d3bdc",
3
+ "object": "response",
4
+ "created_at": 1766434419,
5
+ "status": "completed",
6
+ "background": false,
7
+ "billing": {
8
+ "payer": "developer"
9
+ },
10
+ "completed_at": 1766434427,
11
+ "error": null,
12
+ "incomplete_details": null,
13
+ "instructions": null,
14
+ "max_output_tokens": null,
15
+ "max_tool_calls": null,
16
+ "model": "gpt-5-mini-2025-08-07",
17
+ "output": [
18
+ {
19
+ "id": "mcpl_04f6b17429cf2b02006949a673fd08819695f8f57cdb9bed6f",
20
+ "type": "mcp_list_tools",
21
+ "server_label": "zip1",
22
+ "tools": [
23
+ {
24
+ "annotations": {
25
+ "read_only": false
26
+ },
27
+ "description": "Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit",
28
+ "input_schema": {
29
+ "properties": {
30
+ "alias": {
31
+ "description": "Custom alias for the short URL (optional, alphanumeric and hyphens only)",
32
+ "type": "string"
33
+ },
34
+ "description": {
35
+ "description": "Description for the short URL (optional, max 100 characters)",
36
+ "type": "string"
37
+ },
38
+ "max_clicks": {
39
+ "description": "Maximum number of clicks allowed before the link expires (optional)",
40
+ "minimum": 1,
41
+ "type": "integer"
42
+ },
43
+ "password": {
44
+ "description": "Password to protect the short URL (optional)",
45
+ "type": "string"
46
+ },
47
+ "url": {
48
+ "description": "The long URL to shorten (must include http:// or https://)",
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": [
53
+ "url"
54
+ ],
55
+ "type": "object"
56
+ },
57
+ "name": "create_short_url"
58
+ },
59
+ {
60
+ "annotations": {
61
+ "read_only": false
62
+ },
63
+ "description": "Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity",
64
+ "input_schema": {
65
+ "properties": {
66
+ "short_code": {
67
+ "description": "The short code or custom alias of the URL to get stats for",
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": [
72
+ "short_code"
73
+ ],
74
+ "type": "object"
75
+ },
76
+ "name": "get_url_stats"
77
+ },
78
+ {
79
+ "annotations": {
80
+ "read_only": false
81
+ },
82
+ "description": "Check if a URL is valid and can be shortened by zip1.io",
83
+ "input_schema": {
84
+ "properties": {
85
+ "url": {
86
+ "description": "The URL to validate",
87
+ "type": "string"
88
+ }
89
+ },
90
+ "required": [
91
+ "url"
92
+ ],
93
+ "type": "object"
94
+ },
95
+ "name": "validate_url"
96
+ },
97
+ {
98
+ "annotations": {
99
+ "read_only": false
100
+ },
101
+ "description": "Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)",
102
+ "input_schema": {
103
+ "properties": {},
104
+ "type": "object"
105
+ },
106
+ "name": "generate_short_code"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "id": "rs_04f6b17429cf2b02006949a67543c88196ad1f56cb7c8fe476",
112
+ "type": "reasoning",
113
+ "summary": []
114
+ },
115
+ {
116
+ "id": "msg_04f6b17429cf2b02006949a679f35c81968e9b234489fa32b8",
117
+ "type": "message",
118
+ "status": "completed",
119
+ "content": [
120
+ {
121
+ "type": "output_text",
122
+ "annotations": [],
123
+ "logprobs": [],
124
+ "text": "I couldn't create the short link because the shortening tool call was not approved. Do you want me to proceed and create a short URL on zip1.io with max clicks = 100? If yes, please confirm and optionally provide:\n- a custom alias (alphanumeric and hyphens only), and/or\n- a password, and/or\n- a short description.\n\nIf you don't want me to use the tool, I can give instructions so you can shorten it yourself."
125
+ }
126
+ ],
127
+ "role": "assistant"
128
+ }
129
+ ],
130
+ "parallel_tool_calls": true,
131
+ "previous_response_id": null,
132
+ "prompt_cache_key": null,
133
+ "prompt_cache_retention": null,
134
+ "reasoning": {
135
+ "effort": "medium",
136
+ "summary": null
137
+ },
138
+ "safety_identifier": null,
139
+ "service_tier": "default",
140
+ "store": true,
141
+ "temperature": 1,
142
+ "text": {
143
+ "format": {
144
+ "type": "text"
145
+ },
146
+ "verbosity": "medium"
147
+ },
148
+ "tool_choice": "auto",
149
+ "tools": [
150
+ {
151
+ "type": "mcp",
152
+ "allowed_tools": null,
153
+ "headers": null,
154
+ "require_approval": "always",
155
+ "server_description": "Link shortener",
156
+ "server_label": "zip1",
157
+ "server_url": "https://zip1.io/mcp"
158
+ }
159
+ ],
160
+ "top_logprobs": 0,
161
+ "top_p": 1,
162
+ "truncation": "disabled",
163
+ "usage": {
164
+ "input_tokens": 592,
165
+ "input_tokens_details": {
166
+ "cached_tokens": 0
167
+ },
168
+ "output_tokens": 421,
169
+ "output_tokens_details": {
170
+ "reasoning_tokens": 320
171
+ },
172
+ "total_tokens": 1013
173
+ },
174
+ "user": null,
175
+ "metadata": {}
176
+ }
@@ -0,0 +1,11 @@
1
+ {"type":"response.created","sequence_number":0,"response":{"id":"resp_04a97b4fce127879006949a864795c8195a77efd798149326b","object":"response","created_at":1766434916,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
2
+ {"type":"response.in_progress","sequence_number":1,"response":{"id":"resp_04a97b4fce127879006949a864795c8195a77efd798149326b","object":"response","created_at":1766434916,"status":"in_progress","background":false,"completed_at":null,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"auto","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}
3
+ {"type":"response.output_item.added","sequence_number":2,"output_index":0,"item":{"id":"mcpl_04a97b4fce127879006949a8648d5c8195b329dc93c3bad534","type":"mcp_list_tools","server_label":"zip1","tools":[]}}
4
+ {"type":"response.mcp_list_tools.in_progress","sequence_number":3,"output_index":0,"item_id":"mcpl_04a97b4fce127879006949a8648d5c8195b329dc93c3bad534"}
5
+ {"type":"response.mcp_list_tools.completed","sequence_number":4,"output_index":0,"item_id":"mcpl_04a97b4fce127879006949a8648d5c8195b329dc93c3bad534"}
6
+ {"type":"response.output_item.done","sequence_number":5,"output_index":0,"item":{"id":"mcpl_04a97b4fce127879006949a8648d5c8195b329dc93c3bad534","type":"mcp_list_tools","server_label":"zip1","tools":[{"annotations":{"read_only":false},"description":"Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit","input_schema":{"properties":{"alias":{"description":"Custom alias for the short URL (optional, alphanumeric and hyphens only)","type":"string"},"description":{"description":"Description for the short URL (optional, max 100 characters)","type":"string"},"max_clicks":{"description":"Maximum number of clicks allowed before the link expires (optional)","minimum":1,"type":"integer"},"password":{"description":"Password to protect the short URL (optional)","type":"string"},"url":{"description":"The long URL to shorten (must include http:// or https://)","type":"string"}},"required":["url"],"type":"object"},"name":"create_short_url"},{"annotations":{"read_only":false},"description":"Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity","input_schema":{"properties":{"short_code":{"description":"The short code or custom alias of the URL to get stats for","type":"string"}},"required":["short_code"],"type":"object"},"name":"get_url_stats"},{"annotations":{"read_only":false},"description":"Check if a URL is valid and can be shortened by zip1.io","input_schema":{"properties":{"url":{"description":"The URL to validate","type":"string"}},"required":["url"],"type":"object"},"name":"validate_url"},{"annotations":{"read_only":false},"description":"Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)","input_schema":{"properties":{},"type":"object"},"name":"generate_short_code"}]}}
7
+ {"type":"response.output_item.added","sequence_number":6,"output_index":1,"item":{"id":"rs_04a97b4fce127879006949a8660eec81959dfbe2481a912faf","type":"reasoning","summary":[]}}
8
+ {"type":"response.output_item.done","sequence_number":7,"output_index":1,"item":{"id":"rs_04a97b4fce127879006949a8660eec81959dfbe2481a912faf","type":"reasoning","summary":[]}}
9
+ {"type":"response.output_item.added","sequence_number":8,"output_index":2,"item":{"id":"mcpr_04a97b4fce127879006949a8672ac081959f95aa8ceedb7cd9","type":"mcp_approval_request","arguments":"{\"alias\":\"\",\"description\":\"Shortened link for ai-sdk.dev\",\"max_clicks\":100,\"password\":\"\",\"url\":\"https://ai-sdk.dev/\"}","name":"create_short_url","server_label":"zip1"}}
10
+ {"type":"response.output_item.done","sequence_number":9,"output_index":2,"item":{"id":"mcpr_04a97b4fce127879006949a8672ac081959f95aa8ceedb7cd9","type":"mcp_approval_request","arguments":"{\"alias\":\"\",\"description\":\"Shortened link for ai-sdk.dev\",\"max_clicks\":100,\"password\":\"\",\"url\":\"https://ai-sdk.dev/\"}","name":"create_short_url","server_label":"zip1"}}
11
+ {"type":"response.completed","sequence_number":10,"response":{"id":"resp_04a97b4fce127879006949a864795c8195a77efd798149326b","object":"response","created_at":1766434916,"status":"completed","background":false,"completed_at":1766434919,"error":null,"incomplete_details":null,"instructions":null,"max_output_tokens":null,"max_tool_calls":null,"model":"gpt-5-mini-2025-08-07","output":[{"id":"mcpl_04a97b4fce127879006949a8648d5c8195b329dc93c3bad534","type":"mcp_list_tools","server_label":"zip1","tools":[{"annotations":{"read_only":false},"description":"Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit","input_schema":{"properties":{"alias":{"description":"Custom alias for the short URL (optional, alphanumeric and hyphens only)","type":"string"},"description":{"description":"Description for the short URL (optional, max 100 characters)","type":"string"},"max_clicks":{"description":"Maximum number of clicks allowed before the link expires (optional)","minimum":1,"type":"integer"},"password":{"description":"Password to protect the short URL (optional)","type":"string"},"url":{"description":"The long URL to shorten (must include http:// or https://)","type":"string"}},"required":["url"],"type":"object"},"name":"create_short_url"},{"annotations":{"read_only":false},"description":"Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity","input_schema":{"properties":{"short_code":{"description":"The short code or custom alias of the URL to get stats for","type":"string"}},"required":["short_code"],"type":"object"},"name":"get_url_stats"},{"annotations":{"read_only":false},"description":"Check if a URL is valid and can be shortened by zip1.io","input_schema":{"properties":{"url":{"description":"The URL to validate","type":"string"}},"required":["url"],"type":"object"},"name":"validate_url"},{"annotations":{"read_only":false},"description":"Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)","input_schema":{"properties":{},"type":"object"},"name":"generate_short_code"}]},{"id":"rs_04a97b4fce127879006949a8660eec81959dfbe2481a912faf","type":"reasoning","summary":[]},{"id":"mcpr_04a97b4fce127879006949a8672ac081959f95aa8ceedb7cd9","type":"mcp_approval_request","arguments":"{\"alias\":\"\",\"description\":\"Shortened link for ai-sdk.dev\",\"max_clicks\":100,\"password\":\"\",\"url\":\"https://ai-sdk.dev/\"}","name":"create_short_url","server_label":"zip1"}],"parallel_tool_calls":true,"previous_response_id":null,"prompt_cache_key":null,"prompt_cache_retention":null,"reasoning":{"effort":"medium","summary":null},"safety_identifier":null,"service_tier":"default","store":true,"temperature":1,"text":{"format":{"type":"text"},"verbosity":"medium"},"tool_choice":"auto","tools":[{"type":"mcp","allowed_tools":null,"headers":null,"require_approval":"always","server_description":"Link shortener","server_label":"zip1","server_url":"https://zip1.io/mcp"}],"top_logprobs":0,"top_p":1,"truncation":"disabled","usage":{"input_tokens":609,"input_tokens_details":{"cached_tokens":0},"output_tokens":48,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":657},"user":null,"metadata":{}}}
@@ -0,0 +1,169 @@
1
+ {
2
+ "id": "resp_04f6b17429cf2b02006949a688b32881968e0f3ec6a9efe2da",
3
+ "object": "response",
4
+ "created_at": 1766434440,
5
+ "status": "completed",
6
+ "background": false,
7
+ "billing": {
8
+ "payer": "developer"
9
+ },
10
+ "completed_at": 1766434444,
11
+ "error": null,
12
+ "incomplete_details": null,
13
+ "instructions": null,
14
+ "max_output_tokens": null,
15
+ "max_tool_calls": null,
16
+ "model": "gpt-5-mini-2025-08-07",
17
+ "output": [
18
+ {
19
+ "id": "mcpl_04f6b17429cf2b02006949a688cc6481969f74af86ec648d15",
20
+ "type": "mcp_list_tools",
21
+ "server_label": "zip1",
22
+ "tools": [
23
+ {
24
+ "annotations": {
25
+ "read_only": false
26
+ },
27
+ "description": "Create a shortened URL using zip1.io with optional custom alias, password protection, and max clicks limit",
28
+ "input_schema": {
29
+ "properties": {
30
+ "alias": {
31
+ "description": "Custom alias for the short URL (optional, alphanumeric and hyphens only)",
32
+ "type": "string"
33
+ },
34
+ "description": {
35
+ "description": "Description for the short URL (optional, max 100 characters)",
36
+ "type": "string"
37
+ },
38
+ "max_clicks": {
39
+ "description": "Maximum number of clicks allowed before the link expires (optional)",
40
+ "minimum": 1,
41
+ "type": "integer"
42
+ },
43
+ "password": {
44
+ "description": "Password to protect the short URL (optional)",
45
+ "type": "string"
46
+ },
47
+ "url": {
48
+ "description": "The long URL to shorten (must include http:// or https://)",
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": [
53
+ "url"
54
+ ],
55
+ "type": "object"
56
+ },
57
+ "name": "create_short_url"
58
+ },
59
+ {
60
+ "annotations": {
61
+ "read_only": false
62
+ },
63
+ "description": "Get detailed statistics and analytics for a shortened URL including click counts, countries, and recent activity",
64
+ "input_schema": {
65
+ "properties": {
66
+ "short_code": {
67
+ "description": "The short code or custom alias of the URL to get stats for",
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": [
72
+ "short_code"
73
+ ],
74
+ "type": "object"
75
+ },
76
+ "name": "get_url_stats"
77
+ },
78
+ {
79
+ "annotations": {
80
+ "read_only": false
81
+ },
82
+ "description": "Check if a URL is valid and can be shortened by zip1.io",
83
+ "input_schema": {
84
+ "properties": {
85
+ "url": {
86
+ "description": "The URL to validate",
87
+ "type": "string"
88
+ }
89
+ },
90
+ "required": [
91
+ "url"
92
+ ],
93
+ "type": "object"
94
+ },
95
+ "name": "validate_url"
96
+ },
97
+ {
98
+ "annotations": {
99
+ "read_only": false
100
+ },
101
+ "description": "Generate a random 6-character alphanumeric short code suggestion (the actual code will be generated when creating the URL)",
102
+ "input_schema": {
103
+ "properties": {},
104
+ "type": "object"
105
+ },
106
+ "name": "generate_short_code"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "id": "rs_04f6b17429cf2b02006949a68a9c7c8196b850018869363b06",
112
+ "type": "reasoning",
113
+ "summary": []
114
+ },
115
+ {
116
+ "id": "mcpr_04f6b17429cf2b02006949a68bf5808196b6f2008a315c9aa4",
117
+ "type": "mcp_approval_request",
118
+ "arguments": "{\"alias\":\"\",\"description\":\"\",\"max_clicks\":100,\"password\":\"\",\"url\":\"https://ai-sdk.dev/\"}",
119
+ "name": "create_short_url",
120
+ "server_label": "zip1"
121
+ }
122
+ ],
123
+ "parallel_tool_calls": true,
124
+ "previous_response_id": null,
125
+ "prompt_cache_key": null,
126
+ "prompt_cache_retention": null,
127
+ "reasoning": {
128
+ "effort": "medium",
129
+ "summary": null
130
+ },
131
+ "safety_identifier": null,
132
+ "service_tier": "default",
133
+ "store": true,
134
+ "temperature": 1,
135
+ "text": {
136
+ "format": {
137
+ "type": "text"
138
+ },
139
+ "verbosity": "medium"
140
+ },
141
+ "tool_choice": "auto",
142
+ "tools": [
143
+ {
144
+ "type": "mcp",
145
+ "allowed_tools": null,
146
+ "headers": null,
147
+ "require_approval": "always",
148
+ "server_description": "Link shortener",
149
+ "server_label": "zip1",
150
+ "server_url": "https://zip1.io/mcp"
151
+ }
152
+ ],
153
+ "top_logprobs": 0,
154
+ "top_p": 1,
155
+ "truncation": "disabled",
156
+ "usage": {
157
+ "input_tokens": 587,
158
+ "input_tokens_details": {
159
+ "cached_tokens": 0
160
+ },
161
+ "output_tokens": 104,
162
+ "output_tokens_details": {
163
+ "reasoning_tokens": 64
164
+ },
165
+ "total_tokens": 691
166
+ },
167
+ "user": null,
168
+ "metadata": {}
169
+ }