Files
langchaingo/agents/testdata/TestOpenAIFunctionsAgentWithHTTPRR.httprr
T
2026-01-24 02:07:00 +03:00

148 lines
5.1 KiB
Plaintext
Generated

httprr trace v1
738 1879
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 536
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4o","messages":[{"role":"system","content":"You are a helpful assistant that can perform calculations."},{"role":"user","content":"What is 15 multiplied by 4?"}],"tools":[{"type":"function","function":{"name":"calculator","description":"Useful for getting the result of a math expression. \n\tThe input to this tool should be a valid mathematical expression that could be executed by a starlark evaluator.","parameters":{"properties":{"__arg1":{"title":"__arg1","type":"string"}},"required":["__arg1"],"type":"object"}}}]}HTTP/2.0 200 OK
Content-Length: 1082
Access-Control-Expose-Headers: X-Request-ID
Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Content-Type: application/json
Date: Thu, 22 Jan 2026 11:36:30 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 608
Openai-Project: proj_pf0r5emOzUBDExmxgmWVPVjK
Openai-Version: 2020-10-01
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Envoy-Upstream-Service-Time: 849
X-Openai-Proxy-Wasm: v0.1
X-Ratelimit-Limit-Requests: 10000
X-Ratelimit-Limit-Tokens: 30000000
X-Ratelimit-Remaining-Requests: 9999
X-Ratelimit-Remaining-Tokens: 29999975
X-Ratelimit-Reset-Requests: 6ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_176d0b02c64e43499a56aedc6739ba74
{
"id": "chatcmpl-D0nHCRkjyQkR7KpDSKN6YFMQdrAxT",
"object": "chat.completion",
"created": 1769081790,
"model": "gpt-4o-2024-08-06",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "call_o2dTkUrpY6T0l3P88HyPatMG",
"type": "function",
"function": {
"name": "calculator",
"arguments": "{\"__arg1\":\"15 * 4\"}"
}
}
],
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 94,
"completion_tokens": 19,
"total_tokens": 113,
"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
}
},
"service_tier": "default",
"system_fingerprint": "fp_deacdd5f6f"
}
996 1625
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 794
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4o","messages":[{"role":"system","content":"You are a helpful assistant that can perform calculations."},{"role":"user","content":"What is 15 multiplied by 4?"},{"role":"assistant","content":"","tool_calls":[{"id":"call_o2dTkUrpY6T0l3P88HyPatMG","type":"function","function":{"name":"calculator","arguments":"15 * 4"}}]},{"role":"tool","content":"60","name":"calculator","tool_call_id":"call_o2dTkUrpY6T0l3P88HyPatMG"}],"tools":[{"type":"function","function":{"name":"calculator","description":"Useful for getting the result of a math expression. \n\tThe input to this tool should be a valid mathematical expression that could be executed by a starlark evaluator.","parameters":{"properties":{"__arg1":{"title":"__arg1","type":"string"}},"required":["__arg1"],"type":"object"}}}]}HTTP/2.0 200 OK
Content-Length: 829
Access-Control-Expose-Headers: X-Request-ID
Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Content-Type: application/json
Date: Thu, 22 Jan 2026 11:36:32 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 365
Openai-Project: proj_pf0r5emOzUBDExmxgmWVPVjK
Openai-Version: 2020-10-01
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Envoy-Upstream-Service-Time: 385
X-Openai-Proxy-Wasm: v0.1
X-Ratelimit-Limit-Requests: 10000
X-Ratelimit-Limit-Tokens: 30000000
X-Ratelimit-Remaining-Requests: 9999
X-Ratelimit-Remaining-Tokens: 29999973
X-Ratelimit-Reset-Requests: 6ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_d657d8f72f304f458952c993412e742b
{
"id": "chatcmpl-D0nHDcLQNmg95cwEroFZIeou6TlpM",
"object": "chat.completion",
"created": 1769081791,
"model": "gpt-4o-2024-08-06",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "15 multiplied by 4 is 60.",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 115,
"completion_tokens": 10,
"total_tokens": 125,
"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
}
},
"service_tier": "default",
"system_fingerprint": "fp_deacdd5f6f"
}