|
| 1 | +-- request -- |
| 2 | +{ |
| 3 | + "input": [ |
| 4 | + { |
| 5 | + "role": "user", |
| 6 | + "content": "Is 3 + 5 a prime number? Use the add function to calculate the sum." |
| 7 | + } |
| 8 | + ], |
| 9 | + "model": "gpt-4.1", |
| 10 | + "stream": false, |
| 11 | + "tools": [ |
| 12 | + { |
| 13 | + "type": "function", |
| 14 | + "name": "add", |
| 15 | + "description": "Add two numbers together.", |
| 16 | + "parameters": { |
| 17 | + "type": "object", |
| 18 | + "properties": { |
| 19 | + "a": { |
| 20 | + "type": "number" |
| 21 | + }, |
| 22 | + "b": { |
| 23 | + "type": "number" |
| 24 | + } |
| 25 | + }, |
| 26 | + "required": [ |
| 27 | + "a", |
| 28 | + "b" |
| 29 | + ] |
| 30 | + } |
| 31 | + } |
| 32 | + ] |
| 33 | +} |
| 34 | + |
| 35 | +-- non-streaming -- |
| 36 | +{ |
| 37 | + "id": "resp_0da6045a8b68fa5200695fa23dcc2c81a19c849f627abf8a31", |
| 38 | + "object": "response", |
| 39 | + "created_at": 1767875133, |
| 40 | + "status": "completed", |
| 41 | + "background": false, |
| 42 | + "billing": { |
| 43 | + "payer": "developer" |
| 44 | + }, |
| 45 | + "completed_at": 1767875134, |
| 46 | + "error": null, |
| 47 | + "incomplete_details": null, |
| 48 | + "instructions": null, |
| 49 | + "max_output_tokens": null, |
| 50 | + "max_tool_calls": null, |
| 51 | + "model": "gpt-4.1-2025-04-14", |
| 52 | + "output": [ |
| 53 | + { |
| 54 | + "id": "fc_0da6045a8b68fa5200695fa23e198081a19bf68887d47ae93d", |
| 55 | + "type": "function_call", |
| 56 | + "status": "completed", |
| 57 | + "arguments": "{\"a\":3,\"b\":5}", |
| 58 | + "call_id": "call_CJSaa2u51JG996575oVljuNq", |
| 59 | + "name": "add" |
| 60 | + } |
| 61 | + ], |
| 62 | + "parallel_tool_calls": true, |
| 63 | + "previous_response_id": null, |
| 64 | + "prompt_cache_key": null, |
| 65 | + "prompt_cache_retention": null, |
| 66 | + "reasoning": { |
| 67 | + "effort": null, |
| 68 | + "summary": null |
| 69 | + }, |
| 70 | + "safety_identifier": null, |
| 71 | + "service_tier": "default", |
| 72 | + "store": true, |
| 73 | + "temperature": 1.0, |
| 74 | + "text": { |
| 75 | + "format": { |
| 76 | + "type": "text" |
| 77 | + }, |
| 78 | + "verbosity": "medium" |
| 79 | + }, |
| 80 | + "tool_choice": "auto", |
| 81 | + "tools": [ |
| 82 | + { |
| 83 | + "type": "function", |
| 84 | + "description": "Add two numbers together.", |
| 85 | + "name": "add", |
| 86 | + "parameters": { |
| 87 | + "type": "object", |
| 88 | + "properties": { |
| 89 | + "a": { |
| 90 | + "type": "number" |
| 91 | + }, |
| 92 | + "b": { |
| 93 | + "type": "number" |
| 94 | + } |
| 95 | + }, |
| 96 | + "required": [ |
| 97 | + "a", |
| 98 | + "b" |
| 99 | + ], |
| 100 | + "additionalProperties": false |
| 101 | + }, |
| 102 | + "strict": true |
| 103 | + } |
| 104 | + ], |
| 105 | + "top_logprobs": 0, |
| 106 | + "top_p": 1.0, |
| 107 | + "truncation": "disabled", |
| 108 | + "usage": { |
| 109 | + "input_tokens": 58, |
| 110 | + "input_tokens_details": { |
| 111 | + "cached_tokens": 0 |
| 112 | + }, |
| 113 | + "output_tokens": 18, |
| 114 | + "output_tokens_details": { |
| 115 | + "reasoning_tokens": 0 |
| 116 | + }, |
| 117 | + "total_tokens": 76 |
| 118 | + }, |
| 119 | + "user": null, |
| 120 | + "metadata": {} |
| 121 | +} |
0 commit comments