def test_update_existing_call(self):
        """Ensures the existing tool call is updated when indices match."""
        tool_calls = [{"index": 0, "function": {"name": "tool", "arguments": "arg"}}]
        tool_calls_delta = [{"index": 0, "function": {"name": "1", "arguments": "1"}}]
        expected_result = [
            {
                "index": 0,
                "function": {"name": "tool1", "arguments": "arg1"},
                "id": "",
            }
        ]
        result = _update_tool_calls(tool_calls, tool_calls_delta)
        assert result[0]["function"]["name"] == "tool1"
        assert result[0]["function"]["arguments"] == "arg1"
Ensures the existing tool call is updated when indices match.
llama-index-integrations/llms/llama-index-llms-oci-data-science/tests/test_oci_data_science_utils.py