{ "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-True]", "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": true, "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_chunk.ChatCompletionChunk", "__data__": { "id": "rec-311f61d4ec64", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 0, "model": "openai.gpt-oss-20b-1:0", "object": "chat.completion.chunk", "service_tier": "auto", "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-311f61d4ec64", "choices": [ { "delta": { "content": "We must use the function. Let's call get_weather with city: \"Tokyo\".", "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 0, "model": "openai.gpt-oss-20b-1:0", "object": "chat.completion.chunk", "service_tier": "auto", "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-311f61d4ec64", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": [ { "index": 0, "id": "chatcmpl-tool-4bc2a7f1c98946d3a54ef4802d320079", "function": { "arguments": "{\"city\":\"Tokyo\"}", "name": "get_weather" }, "type": "function" } ] }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 0, "model": "openai.gpt-oss-20b-1:0", "object": "chat.completion.chunk", "service_tier": "auto", "system_fingerprint": null, "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "rec-311f61d4ec64", "choices": [ { "delta": { "content": null, "function_call": null, "refusal": null, "role": null, "tool_calls": null }, "finish_reason": "tool_calls", "index": 0, "logprobs": null } ], "created": 0, "model": "openai.gpt-oss-20b-1:0", "object": "chat.completion.chunk", "service_tier": "auto", "system_fingerprint": null, "usage": null } } ], "is_streaming": true }, "id_normalization_mapping": {} }