{ "test_id": "tests/integration/inference/test_openai_completion.py::test_inference_store_tool_calls[client_with_models-txt=bedrock-inference/openai.gpt-oss-20b-1:0-False]", "request": { "method": "POST", "url": "https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1/v1/chat/completions", "headers": {}, "body": { "model": "openai.gpt-oss-20b-1:0", "messages": [ { "role": "user", "content": "What's the weather in Tokyo? Use the get_weather function to get the weather." } ], "stream": false, "tools": [ { "type": "function", "function": { "name": "get_weather", "description": "Get the weather in a given city", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "The city to get the weather for" } } } } } ] }, "endpoint": "/v1/chat/completions", "model": "openai.gpt-oss-20b-1:0" }, "response": { "body": { "__type__": "openai.types.chat.chat_completion.ChatCompletion", "__data__": { "id": "rec-44e059fd47e6", "choices": [ { "finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": { "content": "The user requests the weather in Tokyo and says to use get_weather function. So I should call the function.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": [ { "id": "chatcmpl-tool-2a1c21780929400d8311f566be9711bf", "function": { "arguments": "{\"city\":\"Tokyo\"}", "name": "get_weather" }, "type": "function" } ] } } ], "created": 0, "model": "openai.gpt-oss-20b-1:0", "object": "chat.completion", "service_tier": "auto", "system_fingerprint": null, "usage": { "completion_tokens": 46, "prompt_tokens": 145, "total_tokens": 191, "completion_tokens_details": null, "prompt_tokens_details": null } } }, "is_streaming": false }, "id_normalization_mapping": {} }